|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.AbstractFeature
com.sdm.quasar.client.swing.dialogbase.features.OptionDialogServiceFeature
Default implementation of the
OptionDialogService
that uses a Component as a
parent for the modal dialogs.
| Field Summary |
| Fields inherited from interface com.sdm.quasar.client.swing.dialogbase.services.OptionDialogService |
CANCEL_OPTION, CLOSED_OPTION, DEFAULT_OPTION, ERROR_MESSAGE, INFORMATION_MESSAGE, NO_OPTION, OK_CANCEL_OPTION, OK_OPTION, PLAIN_MESSAGE, QUESTION_MESSAGE, UNINITIALIZED_VALUE, WARNING_MESSAGE, YES_NO_CANCEL_OPTION, YES_NO_OPTION, YES_OPTION |
| Constructor Summary | |
OptionDialogServiceFeature()
Creates an instance that tries to find any suitable frame shown. |
|
OptionDialogServiceFeature(java.awt.Component component)
Creates an instance that uses a component as a parent for the option dialogs. |
|
| Method Summary | |
protected void |
dispose()
Called when the feature or dialog is disposed. |
protected java.awt.Component |
getParentComponent()
|
protected void |
init()
Called when the feature is initializing. |
protected void |
prepare()
Called when the dialog is prepared. |
protected void |
release()
Called when the dialog is released. |
int |
showConfirmDialog(java.lang.Object message)
|
int |
showConfirmDialog(java.lang.Object message,
java.lang.String title,
int optionType)
|
int |
showConfirmDialog(java.lang.Object message,
java.lang.String title,
int optionType,
int messageType)
|
int |
showConfirmDialog(java.lang.Object message,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon)
|
java.lang.String |
showInputDialog(java.lang.Object message)
|
java.lang.String |
showInputDialog(java.lang.Object message,
java.lang.Object initialSelectionValue)
|
java.lang.String |
showInputDialog(java.lang.Object message,
java.lang.String title,
int messageType)
|
java.lang.Object |
showInputDialog(java.lang.Object message,
java.lang.String title,
int messageType,
javax.swing.Icon icon,
java.lang.Object[] selectionValues,
java.lang.Object initialSelectionValue)
|
void |
showMessageDialog(java.lang.Object message)
|
void |
showMessageDialog(java.lang.Object message,
java.lang.String title,
int messageType)
|
void |
showMessageDialog(java.lang.Object message,
java.lang.String title,
int messageType,
javax.swing.Icon icon)
|
int |
showOptionDialog(java.lang.Object message,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon,
java.lang.Object[] options,
java.lang.Object initialValue)
|
| Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature |
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OptionDialogServiceFeature()
OptionDialogService available. But since it might
not use the correct parent window it is better if all windows and portals register
an instance with themselves as parent.
public OptionDialogServiceFeature(java.awt.Component component)
component - the parent component| Method Detail |
protected void init()
AbstractFeatureDialogControl installed to. To access the
DialogControl use the AbstractFeature.getDialogControl() method.
Override this method to perform some action on initialization e.g. register public services.
init in class AbstractFeaturecom.sdm.quasar.client.core.dialog.features.AbstractFeature#init()
protected void dispose()
throws DisposeException
AbstractFeature
dispose in class AbstractFeatureDisposeExceptioncom.sdm.quasar.client.core.dialog.features.AbstractFeature#dispose()protected void prepare()
AbstractFeatureLifeCycle.prepare(),
e.g. gain resource and provide services for childs.
The default implementation in AbstractFeature does nothing.
prepare in class AbstractFeaturecom.sdm.quasar.client.core.dialog.features.AbstractFeature#prepare()protected void release()
AbstractFeatureLifeCycle.release()(),
e.g. unregister services.
The default implementation in AbstractFeature does nothing.
release in class AbstractFeaturecom.sdm.quasar.client.core.dialog.features.AbstractFeature#release()protected java.awt.Component getParentComponent()
#parentComponent if not null or tries to find one, may return nullpublic int showConfirmDialog(java.lang.Object message)
showConfirmDialog in interface OptionDialogServiceJOptionPane.showConfirmDialog(java.awt.Component, java.lang.Object)
public int showConfirmDialog(java.lang.Object message,
java.lang.String title,
int optionType)
showConfirmDialog in interface OptionDialogServiceJOptionPane.showConfirmDialog(java.awt.Component, java.lang.Object, java.lang.String, int)
public int showConfirmDialog(java.lang.Object message,
java.lang.String title,
int optionType,
int messageType)
showConfirmDialog in interface OptionDialogServiceJOptionPane.showConfirmDialog(java.awt.Component, java.lang.Object, java.lang.String, int, int)
public int showConfirmDialog(java.lang.Object message,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon)
showConfirmDialog in interface OptionDialogServiceJOptionPane.showConfirmDialog(java.awt.Component, java.lang.Object, java.lang.String, int, int, javax.swing.Icon)public java.lang.String showInputDialog(java.lang.Object message)
showInputDialog in interface OptionDialogServiceJOptionPane.showInputDialog(java.awt.Component, java.lang.Object)
public java.lang.String showInputDialog(java.lang.Object message,
java.lang.Object initialSelectionValue)
showInputDialog in interface OptionDialogServiceJOptionPane.showInputDialog(java.awt.Component, java.lang.Object, java.lang.Object)
public java.lang.String showInputDialog(java.lang.Object message,
java.lang.String title,
int messageType)
showInputDialog in interface OptionDialogServiceJOptionPane.showInputDialog(java.awt.Component, java.lang.Object, java.lang.String, int)
public java.lang.Object showInputDialog(java.lang.Object message,
java.lang.String title,
int messageType,
javax.swing.Icon icon,
java.lang.Object[] selectionValues,
java.lang.Object initialSelectionValue)
showInputDialog in interface OptionDialogServiceJOptionPane.showInputDialog(java.awt.Component, java.lang.Object, java.lang.String, int, javax.swing.Icon, java.lang.Object[], java.lang.Object)public void showMessageDialog(java.lang.Object message)
showMessageDialog in interface OptionDialogServiceJOptionPane.showMessageDialog(java.awt.Component, java.lang.Object)
public void showMessageDialog(java.lang.Object message,
java.lang.String title,
int messageType)
showMessageDialog in interface OptionDialogServiceJOptionPane.showMessageDialog(java.awt.Component, java.lang.Object, java.lang.String, int)
public void showMessageDialog(java.lang.Object message,
java.lang.String title,
int messageType,
javax.swing.Icon icon)
showMessageDialog in interface OptionDialogServiceJOptionPane.showMessageDialog(java.awt.Component, java.lang.Object, java.lang.String, int, javax.swing.Icon)
public int showOptionDialog(java.lang.Object message,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon,
java.lang.Object[] options,
java.lang.Object initialValue)
showOptionDialog in interface OptionDialogServiceJOptionPane.showOptionDialog(java.awt.Component, java.lang.Object, java.lang.String, int, int, javax.swing.Icon, java.lang.Object[], java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||