|
|||||||||||
| 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
ice.ri.common.dialog.awt.AbstractSettingsDialog
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 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 Button |
applyButton
|
protected Button |
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 Button |
okButton
|
protected Vector |
panelGroups
|
protected Vector |
panels
|
protected Frame |
parentFrame
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
AbstractSettingsDialog(Frame parent,
String title)
Create a new AbstractSettingsDialog object. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
Responds to the menu items and buttons. |
void |
add(AbstractSettingsDialogPanel panel)
add ControlPanelPanel to control panel |
void |
add(SettingsDialogPanelGroup group)
Add ControlPanelGroup to control panel |
boolean |
cancel()
Iterate through ControlPanelPanel and call cancel method. |
protected void |
center()
|
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 ControlPanelPanels 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, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, 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 Frame parentFrame
protected Button okButton
protected Button applyButton
protected Button cancelButton
| Constructor Detail |
public AbstractSettingsDialog(Frame parent,
String title)
AbstractSettingsDialog object.
parent - parent frame used to center dialogtitle - title text for 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(AbstractSettingsDialogPanel 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 void center()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||