|
|||||||||||
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
wt.clients.gui.OkCancelPreferenceDialog
Nested Class Summary | |
(package private) class |
OkCancelPreferenceDialog.SymAction
|
(package private) class |
OkCancelPreferenceDialog.SymKey
|
(package private) class |
OkCancelPreferenceDialog.SymWindow
|
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 | |
private int |
action
|
(package private) Panel |
buttonPanel
|
static int |
CANCEL
|
static String |
CANCEL_COMMAND
Defined constant which indicates a negative response by the user to the displayed message |
(package private) Button |
cancelButton
|
(package private) Panel |
checkboxPanel
|
private ThreadGroup |
contextGroup
|
(package private) boolean |
fComponentsAdjusted
|
(package private) symantec.itools.awt.shape.HorizontalLine |
horizontalLine1
|
private Vector |
listeners
|
(package private) symantec.itools.awt.WrappingLabel |
messageLabel
|
(package private) Panel |
messagePanel
|
static int |
OK
|
static String |
OK_COMMAND
Defined constant which indicates a positive response by the user to the displayed message |
(package private) Button |
okButton
|
private String |
preference
|
(package private) Checkbox |
promptCheckbox
|
protected static String |
RESOURCES
|
private boolean |
useOppositeState
|
private boolean |
usePreferenceForDefault
|
Fields inherited from class java.awt.Dialog |
|
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
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 | |
OkCancelPreferenceDialog(Frame parent)
|
|
OkCancelPreferenceDialog(Frame parent,
boolean modal)
|
|
OkCancelPreferenceDialog(Frame parent,
boolean modal,
String preference)
|
|
OkCancelPreferenceDialog(Frame parent,
String title,
boolean modal)
|
Method Summary | |
void |
addActionListener(ActionListener l)
Method addActionListener adds listeners to receive
notification of ActionEvents on this dialog. |
void |
addNotify()
|
(package private) void |
cancelButton_ActionPerformed(ActionEvent event)
|
(package private) void |
cancelButton_KeyPressed(KeyEvent event)
|
int |
getAction()
Method getAction returns the action invoked by the
user on this dialog. |
private WTContext |
getContext()
|
boolean |
getPreference()
|
String |
getPreferenceName()
Returns the String name of the preference used by this dialog when prompting the user. |
private void |
initializeCheckboxState()
Initializes the state of the checkbox with the value of the user preference. |
boolean |
isShowPrompt()
|
protected void |
localize()
Localize the button labels |
private void |
notifyActionListeners(ActionEvent evt)
|
(package private) void |
okButton_ActionPerformed(ActionEvent event)
|
(package private) void |
okButton_KeyPressed(KeyEvent event)
|
(package private) void |
OkCancelPreferenceDialog_WindowClosing(WindowEvent event)
|
private void |
processCancelAction()
|
private void |
processOkAction()
|
(package private) void |
promptCheckbox_KeyPressed(KeyEvent event)
|
void |
removeActionListener(ActionListener l)
Method removeActionListener removes the given
listener from receiving notification of ActionEvents
on this dialog. |
void |
setCheckboxDefault(boolean default_state)
Sets the default state of the checkbox. |
private void |
setContext(boolean context_on)
|
void |
setDisplayMessage(String message)
Sets the message to display as the message of this dialog |
void |
setPreferenceName(String preference)
Sets the String name of the preference to be used by this dialog when prompting the user. |
void |
setPromptCheckboxLabel(String label)
Sets the label to display with the checkbox. |
void |
setUseOppositeState(boolean use_opposite)
Specifies whether the preference should be set based on the state of the checkbox or the opposite of the state of the checkbox. |
void |
setVisible(boolean b)
Shows or hides the component depending on the boolean flag b. |
Methods inherited from class java.awt.Dialog |
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 |
boolean fComponentsAdjusted
Panel messagePanel
symantec.itools.awt.WrappingLabel messageLabel
Panel checkboxPanel
Checkbox promptCheckbox
symantec.itools.awt.shape.HorizontalLine horizontalLine1
Panel buttonPanel
Button okButton
Button cancelButton
public static final int OK
public static final int CANCEL
private ThreadGroup contextGroup
private int action
private Vector listeners
private String preference
private boolean usePreferenceForDefault
private boolean useOppositeState
protected static String RESOURCES
public static String OK_COMMAND
public static String CANCEL_COMMAND
Constructor Detail |
public OkCancelPreferenceDialog(Frame parent)
public OkCancelPreferenceDialog(Frame parent, boolean modal)
public OkCancelPreferenceDialog(Frame parent, String title, boolean modal)
public OkCancelPreferenceDialog(Frame parent, boolean modal, String preference) throws WTException
Method Detail |
public void addNotify()
public void setVisible(boolean b)
b
- if true, show the component; otherwise, hide the component.Component.isVisible()
void OkCancelPreferenceDialog_WindowClosing(WindowEvent event)
public boolean isShowPrompt() throws WTException
WTException
public boolean getPreference() throws WTException
WTException
private void processOkAction() throws WTException
WTException
private void setContext(boolean context_on)
private WTContext getContext()
private void notifyActionListeners(ActionEvent evt) throws WTException
WTException
public void addActionListener(ActionListener l)
addActionListener
adds listeners to receive
notification of ActionEvents
on this dialog.
ActionEvents
are generated on this dialog when the
user invokes the OK or Cancel buttons.
l
- the ActionListener
to be notified of
ActionEvents
on this dialogActionListener
,
removeActionListener(java.awt.event.ActionListener)
public void removeActionListener(ActionListener l)
removeActionListener
removes the given
listener from receiving notification of ActionEvents
on this dialog. If the given listener is not found as a current
listener, no changes are made.
l
- the ActionListener
to be removed from
being notified of ActionEvents
on this
dialogActionListener
,
addActionListener(java.awt.event.ActionListener)
public int getAction()
getAction
returns the action invoked by the
user on this dialog.
private void processCancelAction() throws WTException
WTException
void okButton_ActionPerformed(ActionEvent event) throws WTException
WTException
void cancelButton_ActionPerformed(ActionEvent event) throws WTException
WTException
void okButton_KeyPressed(KeyEvent event) throws WTException
WTException
void cancelButton_KeyPressed(KeyEvent event) throws WTException
WTException
public void setPreferenceName(String preference) throws WTException
preference
- the String name of the preference which
could be set or modified by this dialog
WTException
public String getPreferenceName()
public void setPromptCheckboxLabel(String label)
label
- the String label to display as the
text of the checkboxpublic void setCheckboxDefault(boolean default_state)
default_state
- the default state of the checkbox.public void setDisplayMessage(String message)
message
- the String message to displayprivate void initializeCheckboxState() throws WTException
WTException
public void setUseOppositeState(boolean use_opposite) throws WTException
use_opposite
- if true, the preference is set using the
logical not of the state of the checkbox; otherwise,
the preference is using the state of the checkbox
WTException
protected void localize()
void promptCheckbox_KeyPressed(KeyEvent event) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |