|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Dialog
com.tensegrity.gui.swt.dialog.AbstractOkCancelDialog
com.tensegrity.gui.swt.dialog.PaintItemDialog
This dialog presents all available paint items and let the user choose one.
As with almost any SWT dialog use the open() method to make the instantiated dialog visible. This will block the current thread until the user either confirmed or canceled the dialog.
Internally a
PatternSelectionBox is
used for displaying the different paint items.
| Field Summary |
| Fields inherited from class com.tensegrity.gui.swt.dialog.AbstractOkCancelDialog |
uiManager |
| Constructor Summary | |
PaintItemDialog(org.eclipse.swt.widgets.Shell parent,
PaintItemLabel pi,
UIManager uiManager)
Constructor which requires a PaintItemLabel instance for initialization. |
|
| Method Summary | |
protected void |
createDialogContent(org.eclipse.swt.widgets.Composite parent)
Creates the dialog content which is shown above the button panel |
protected java.lang.Object |
getCancelResult()
Returns the result in case the user pressed the cancel button. |
protected java.lang.String |
getDialogTitle()
Returns the title text for this dialog. |
protected java.lang.Object |
getOkResult()
Returns the result in case the user pressed the ok button. |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
|
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent e)
|
| Methods inherited from class com.tensegrity.gui.swt.dialog.AbstractOkCancelDialog |
close, open, setLocation |
| Methods inherited from class org.eclipse.swt.widgets.Dialog |
checkSubclass, getParent, getStyle, getText, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PaintItemDialog(org.eclipse.swt.widgets.Shell parent,
PaintItemLabel pi,
UIManager uiManager)
parent - Composite to add this PaintItemDialog topi - PaintItemLabel which defines the initial PaintItem as well
as the initial background and foreground colorsuiManager - reference to the globally used UIManager instance| Method Detail |
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerpublic void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenerprotected final java.lang.String getDialogTitle()
AbstractOkCancelDialog
getDialogTitle in class AbstractOkCancelDialogprotected final void createDialogContent(org.eclipse.swt.widgets.Composite parent)
AbstractOkCancelDialog
createDialogContent in class AbstractOkCancelDialogparent - this dialog to which the content could be addedprotected final java.lang.Object getOkResult()
AbstractOkCancelDialog
getOkResult in class AbstractOkCancelDialogprotected java.lang.Object getCancelResult()
AbstractOkCancelDialog
getCancelResult in class AbstractOkCancelDialog
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||