|
RSE Release 2.0 |
|||||||||
| 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
org.eclipse.rse.ui.dialogs.SystemPromptDialog
org.eclipse.rse.ui.dialogs.SystemSimpleSelectDialog
public class SystemSimpleSelectDialog
Dialog that uses a checkbox tree viewer to prompt users to select hierarchical items.
Works in concert with SystemSimpleContentElement
and SystemSimpleContentProvider.
The setInputObject(SystemSimpleContentElement) method is used to populate the selection tree:
The trick to using this is to first populate a hierarchy of SystemSimpleContentElement elements, each one wrapping one of your own model objects, and then passing to this constructor the root element.
Upon successful completion of this dialog (wasCancelled() returns false), the model is
updated to reflect the selections. Call getUpdatedContent() to return the root node, if need be,
and then walk the nodes. The selected items are those that return true
to SystemSimpleContentElement.isSelected().
SystemSimpleContentElement,
SystemSimpleContentProvider| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
Window.IExceptionHandler |
| Field Summary |
|---|
| 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 |
| Fields inherited from interface org.eclipse.jface.dialogs.IDialogConstants |
|---|
ABORT_ID, ABORT_LABEL, BACK_ID, BACK_LABEL, BUTTON_BAR_HEIGHT, BUTTON_HEIGHT, BUTTON_MARGIN, BUTTON_WIDTH, CANCEL_ID, CANCEL_LABEL, CLIENT_ID, CLOSE_ID, CLOSE_LABEL, DESELECT_ALL_ID, ENTRY_FIELD_WIDTH, FINISH_ID, FINISH_LABEL, HELP_ID, HELP_LABEL, HIDE_DETAILS_LABEL, HORIZONTAL_MARGIN, HORIZONTAL_SPACING, IGNORE_ID, IGNORE_LABEL, INDENT, INTERNAL_ID, LEFT_MARGIN, MINIMUM_MESSAGE_AREA_WIDTH, NEXT_ID, NEXT_LABEL, NO_ID, NO_LABEL, NO_TO_ALL_ID, NO_TO_ALL_LABEL, OK_ID, OK_LABEL, OPEN_ID, OPEN_LABEL, PROCEED_ID, PROCEED_LABEL, RETRY_ID, RETRY_LABEL, SELECT_ALL_ID, SELECT_TYPES_ID, SHOW_DETAILS_LABEL, SKIP_ID, SKIP_LABEL, SMALL_INDENT, STOP_ID, STOP_LABEL, VERTICAL_MARGIN, VERTICAL_SPACING, YES_ID, YES_LABEL, YES_TO_ALL_ID, YES_TO_ALL_LABEL |
| Constructor Summary | |
|---|---|
SystemSimpleSelectDialog(Shell shell,
String title,
String prompt)
Constructor |
|
| Method Summary | |
|---|---|
void |
checkStateChanged(CheckStateChangedEvent event)
ICheckStateChangedListener method. |
protected Control |
createInner(Composite parent)
Called by createContents method. |
protected ISystemMessageLine |
createMessageLine(Composite c)
Create message line. |
protected Control |
getInitialFocusControl()
Return the Control to be given initial focus. |
boolean |
getShouldBeChecked(SystemSimpleContentElement parent)
Dynamically determine checked state of parent element |
boolean |
getShouldBeGrayed(SystemSimpleContentElement parent)
Dynamically determine grayed state of parent element |
SystemSimpleContentElement |
getUpdatedContent()
Return updated input model |
boolean |
isPageComplete()
This method can be called by the dialog or wizard page host, to decide whether to enable or disable the next, final or ok buttons. |
protected boolean |
processOK()
Called when user presses OK button. |
void |
setInputObject(Object inputObject)
Override of parent. |
void |
setInputObject(SystemSimpleContentElement inputObject)
Override of parent. |
void |
setPageComplete()
Inform caller of page-complete status of this form |
void |
setRootToPreselect(SystemSimpleContentElement preSelectedRoot)
Set the root to preselect |
boolean |
verify()
Verifies all input. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemSimpleSelectDialog(Shell shell,
String title,
String prompt)
| Method Detail |
|---|
public void setRootToPreselect(SystemSimpleContentElement preSelectedRoot)
protected ISystemMessageLine createMessageLine(Composite c)
createMessageLine in class SystemPromptDialogprotected Control getInitialFocusControl()
SystemPromptDialog
getInitialFocusControl in class SystemPromptDialogSystemPromptDialog.getInitialFocusControl()protected Control createInner(Composite parent)
SystemPromptDialog
createInner in class SystemPromptDialogSystemPromptDialog.createInner(Composite)public void checkStateChanged(CheckStateChangedEvent event)
checkStateChanged in interface ICheckStateListenerpublic void setInputObject(Object inputObject)
setInputObject in interface ISystemPromptDialogsetInputObject in class SystemPromptDialogpublic void setInputObject(SystemSimpleContentElement inputObject)
public boolean getShouldBeGrayed(SystemSimpleContentElement parent)
public boolean getShouldBeChecked(SystemSimpleContentElement parent)
public SystemSimpleContentElement getUpdatedContent()
protected boolean processOK()
processOK in class SystemPromptDialogpublic boolean verify()
public boolean isPageComplete()
public void setPageComplete()
|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||