public abstract class TitleAreaDialog extends org.eclipse.jface.dialogs.TitleAreaDialog implements IDialog
This dialog utilizes all the functionality available within the JFace org.eclipse.jface.dialogs.TitleAreaDialog, but it gives the IBM Sales Center extension definitions a TitleAreaDialog with a zero-argument constructor for registry instantiation.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
protected java.util.Map | data_
Data hashmap.
|
Constructor and Description |
---|
TitleAreaDialog()
This method creates a dialog instance.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.swt.widgets.Control | createButtonBar(org.eclipse.swt.widgets.Composite parent)
This method creates and returns the contents of this dialog's button bar.
|
protected org.eclipse.swt.widgets.Control | createDialogArea(org.eclipse.swt.widgets.Composite parent)
This method creates and returns the contents of the upper part of this dialog (above the button bar).
|
java.lang.Object | getData(java.lang.String key)
This method get the data associated with the given key.
|
void | setData(java.lang.String key, java.lang.Object value)
This method sets the data associated with the given key.
|
public static final java.lang.String COPYRIGHT
protected java.util.Map data_
public TitleAreaDialog()
This is the only constructor to create an IBM Sales Center TitleAreaDialog. This zero-argument constructor calls the JFace TitleAreaDialog's constructor that takes a shell as the single argument. Since an IBM Sales Center dialog is really an IDialog, its constructor is called by the createExecutableExtension method when the extension is needed to be opened. Only zero-argument constructors are allowed by this dynamic instantiation mechanism.
So the shell that needs to be passed as the parent shell of this dialog is obtained using TelesalesUIPlugin.getTopMostShell().
Subclasses need not implement a constructor. However, if the subclass wants to override the default shell style bits, then it must implement a zero-argument constructor. This constructor should first call super constructor and then the setShellStyle method. (Note: Shell style bits can only be set in the constructor.)
Note that the window will have no visual representation (no widgets) until it is told to open.
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
This implementation of this framework method removes the title area from the tab order.
Subclasses should override.
protected org.eclipse.swt.widgets.Control createButtonBar(org.eclipse.swt.widgets.Composite parent)
The implementation of this framework method lays out a scrollable button bar and calls the createButtonsForButtonBar framework method to populate it. Subclasses may override. The returned control's layout data must be an instance of GridData.
public java.lang.Object getData(java.lang.String key)
public void setData(java.lang.String key, java.lang.Object value)