|
S-PLUS Connect/Java v1.0 | ||||||||
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
com.insightful.controls.SplusDialog
Standard dialog used by the S-PLUS GUI. Has a main center pane and a button pane. The SplusDialog takes care of performing actions when the standard buttons are pressed. Other dialogs extend this one by creating a main pane with controls and defining an SplusFunctionInfo object specifying how to write out the command when OK or Apply is pressed. Use setCenterPanel() to add the main center pane to the dialog, and setFunctionInfo() to add the SplusFunctionInfo object.
Nested Class Summary | |
static interface |
SplusDialog.SplusDialogButtonListener
|
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 | |
static String |
APPLY_ACTION_CMD
|
static String |
CANCEL_ACTION_CMD
|
static String |
HELP_ACTION_CMD
|
static String |
OK_ACTION_CMD
|
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 | |
SplusDialog()
Dialog with default Frame as parent and no title. |
|
SplusDialog(Frame frame,
String title)
Dialog with the specified parent and the specified title. |
|
SplusDialog(String text)
Dialog with default Frame as parent and the specified title. |
Method Summary | |
void |
addButtonListener(SplusDialog.SplusDialogButtonListener listener)
|
static void |
centerComponent(Component child,
Component parent)
Center a Component relative to another component. |
SplusFunctionInfo |
getFunctionInfo()
Get the SplusFunctionInfo object. |
static ActionListener |
getMainActionListener()
The standard SplusGui has an SplusMainActionListener that can be used to launch a new dialog. |
static JMenuBar |
getMainMenuBar()
Get the main menu bar from SplusSystem. |
boolean |
isComplete()
Called by performOk() and performApply(). |
void |
notifyButtonListeners(String actionID)
|
void |
performApply()
Called when Apply button is pressed. |
void |
performCancel()
Called when Cancel button is pressed. |
void |
performHelp()
Called when Help button is pressed. |
void |
performOk()
Called when OK button is pressed. |
void |
removeButtonListener(SplusDialog.SplusDialogButtonListener listener)
|
void |
sendCommand()
Called by performOk() and performApply(). |
void |
setApplyVisible(boolean isVisible)
Some dialogs don't have an Apply button. |
void |
setCenterPanel(JComponent centerPanel)
Add component to center panel and size the dialog. |
void |
setFunctionInfo(SplusFunctionInfo info)
Set the SplusFunctionInfo object. |
void |
show()
Override show() method to set focus to the first focusable component in the first component added to the content pane when the dialog is shown. |
static void |
showNewDialog(String className)
Utility method to create and show a new dialog given the class name. |
boolean |
warnIfEmpty(SplusControlMethods field)
This method can be used by isComplete() to check whether a required field is empty. |
void |
windowActivated(WindowEvent e)
|
void |
windowClosed(WindowEvent e)
|
void |
windowClosing(WindowEvent e)
|
void |
windowDeactivated(WindowEvent e)
|
void |
windowDeiconified(WindowEvent e)
|
void |
windowIconified(WindowEvent e)
|
void |
windowOpened(WindowEvent e)
|
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String OK_ACTION_CMD
public static final String CANCEL_ACTION_CMD
public static final String HELP_ACTION_CMD
public static final String APPLY_ACTION_CMD
Constructor Detail |
public SplusDialog()
public SplusDialog(String text)
public SplusDialog(Frame frame, String title)
Method Detail |
public SplusFunctionInfo getFunctionInfo()
public void setFunctionInfo(SplusFunctionInfo info)
public void setCenterPanel(JComponent centerPanel)
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
public void show()
public void addButtonListener(SplusDialog.SplusDialogButtonListener listener)
public void removeButtonListener(SplusDialog.SplusDialogButtonListener listener)
public void notifyButtonListeners(String actionID)
public void performOk()
public void performApply()
public void performCancel()
public boolean isComplete()
public boolean warnIfEmpty(SplusControlMethods field)
public void performHelp()
public void sendCommand()
public void setApplyVisible(boolean isVisible)
public static JMenuBar getMainMenuBar()
public static ActionListener getMainActionListener()
public static void showNewDialog(String className) throws ClassNotFoundException
ClassNotFoundException
public static final void centerComponent(Component child, Component parent)
|
S-PLUS Connect/Java v1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |