|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
semorg.gui.util.ConfigureListDlg
public class ConfigureListDlg
Provides a dialog to configure the appearance of the GUI tables, i.e. the shown columns, their sizes and so on.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
org.eclipse.jface.window.Window.IExceptionHandler |
| Field Summary | |
|---|---|
private ConfigureListWidget |
chooseWidget
The SWT widget to configure the appearance of the GUI tables. |
(package private) int[] |
columnOrder
The order of the columns of a GUI table. |
private org.eclipse.swt.widgets.TableColumn[] |
columns
The columns of a GUI table. |
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| Constructor Summary | |
|---|---|
ConfigureListDlg(org.eclipse.swt.widgets.Shell parent,
org.eclipse.swt.widgets.TableColumn[] columns,
int[] columnOrder)
Creates a ConfigureListDlg instance with the given parameters. |
|
| Method Summary | |
|---|---|
protected void |
buttonPressed(int buttonId)
Notifies that this dialog's button with the given id has been pressed. |
protected void |
cancelPressed()
Is invoked if the cancel button is pressed. |
protected void |
configureShell(org.eclipse.swt.widgets.Shell shell)
Configures the given shell. |
protected void |
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Adds buttons to this dialog's button bar. |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
Creates the chooseWidget using the values of columns,
columnOrder and the parameter. |
TableColumnProperty[] |
getColumnProperties()
|
protected void |
okPressed()
Is invoked if the ok button is pressed. |
| Methods inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
applyDialogFont, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
| Methods inherited from class org.eclipse.jface.window.Window |
|---|
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.eclipse.swt.widgets.TableColumn[] columns
int[] columnOrder
private ConfigureListWidget chooseWidget
| Constructor Detail |
|---|
public ConfigureListDlg(org.eclipse.swt.widgets.Shell parent,
org.eclipse.swt.widgets.TableColumn[] columns,
int[] columnOrder)
ConfigureListDlg instance with the given parameters.
parent - the parent shell of this dialog.columns - array of columns get manage.columnOrder - the order of the columns.| Method Detail |
|---|
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
createButtonsForButtonBar in class org.eclipse.jface.dialogs.Dialogparent - the button bar compositeDialog.createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)protected void buttonPressed(int buttonId)
buttonPressed in class org.eclipse.jface.dialogs.DialogbuttonId - the id of the button that was pressed (see
IDialogConstants.*_ID constants)Dialog.buttonPressed(int)protected void okPressed()
okPressed in class org.eclipse.jface.dialogs.DialogDialog.okPressed()protected void cancelPressed()
cancelPressed in class org.eclipse.jface.dialogs.DialogDialog.cancelPressed()protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
chooseWidget using the values of columns,
columnOrder and the parameter.
createDialogArea in class org.eclipse.jface.dialogs.Dialogparent - the parent composite.
chooseWidget.public TableColumnProperty[] getColumnProperties()
TableColumnProperty instances which contains the
properties for each column.protected void configureShell(org.eclipse.swt.widgets.Shell shell)
configureShell in class org.eclipse.jface.window.Windowshell - the Shell to configure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||