|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
ice.ri.common.dialog.swing.AbstractJSettingsDialog
This class creates a skeletal implementation of the
SettingsDialogInterface to minimize the effort required to
implement this interface.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
| Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
| Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected JButton |
applyButton
|
protected JButton |
cancelButton
|
protected int |
displayType
|
static int |
OK_CANCEL
Display the "OK" and "Cancel" buttons on the dialog. |
static int |
OK_CANCEL_APPLY
Default button model. |
protected JButton |
okButton
|
protected Vector |
panelGroups
|
protected Vector |
panels
|
| Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
AbstractJSettingsDialog(JDialog parent,
String title,
int width,
int height)
Create a new AbstractJSettingsDialog object. |
|
AbstractJSettingsDialog(JFrame parent,
String title,
int width,
int height)
Create a new AbstractJSettingsDialog object. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
Responds to the menu items and buttons. |
void |
add(AbstractJSettingsDialogPanel panel)
add JControlPanelPanel to control panel |
void |
add(SettingsDialogPanelGroup group)
Add JControlPanelGroup to control panel |
boolean |
cancel()
Iterate through JControlPanelPanel and call cancel method. |
protected JRootPane |
createRootPane()
Override createRootPane so that "escape" key can be used to close this window. |
int |
getButtonDisplay()
Return the value of the button display model. |
boolean |
hasChanged()
Return the state of the data represented by the dialog. |
boolean |
save()
Iterate through JControlPanelPanels and call save method. |
void |
setButtonDisplay(int displayType)
Sets the button display model. |
abstract void |
setGui()
Create the screen elements for the settings dialog |
void |
setHasChanged(boolean value)
Set the has changed flag. |
void |
setVisible(boolean isVisible)
Sets the visible state of the dialog window. |
void |
showDialog()
Display the dialog. |
| Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int OK_CANCEL_APPLY
public static final int OK_CANCEL
protected Vector panelGroups
protected Vector panels
protected int displayType
protected JButton okButton
protected JButton applyButton
protected JButton cancelButton
| Constructor Detail |
public AbstractJSettingsDialog(JFrame parent,
String title,
int width,
int height)
AbstractJSettingsDialog object.
parent - parent frame used to center dialogtitle - title text for dialog windowwidth - width of dialog windowheight - height of dialog window
public AbstractJSettingsDialog(JDialog parent,
String title,
int width,
int height)
AbstractJSettingsDialog object.
parent - parent dialog windowtitle - title text for dialog windowwidth - width of dialog windowheight - height of dialog window| Method Detail |
public void showDialog()
public void setVisible(boolean isVisible)
isVisible - true if visible, false otherwisepublic void setButtonDisplay(int displayType)
displayType - an integer that specifies the button layout modelgetButtonDisplay()public int getButtonDisplay()
setButtonDisplay(int)public abstract void setGui()
public void setHasChanged(boolean value)
value - true if state has changed, false otherwise.hasChanged()public boolean hasChanged()
public void add(SettingsDialogPanelGroup group)
group - group to be added to dialog.public void add(AbstractJSettingsDialogPanel panel)
panel - panel to be added to the dialogpublic boolean save()
save in interface SettingsDialogInterfacepublic boolean cancel()
cancel in interface SettingsDialogInterfacepublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerprotected JRootPane createRootPane()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||