|
||||||||||
| 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
edu.neu.ccs.gui.JPTDialog
Dialog box containing
a
and an TypedView
that contains actions that interact with the view.ActionsPanel
| 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 ActionsPanel |
actions
The actions panel containing actions that interact with the view in this dialog. |
protected TypedView |
view
The input view contained in this dialog. |
| Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
| 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 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 | |
JPTDialog(TypedView viewObject)
Constructs an input dialog containing the given view but with no title or parent window. |
|
JPTDialog(TypedView viewObject,
String title)
Constructor for an input dialog containing the given view and the given title, but with no parent window. |
|
JPTDialog(TypedView viewObject,
String title,
Dialog owner,
boolean modal)
Constructor for an input dialog containing the given view, with the given title, parent dialog, and modality. |
|
JPTDialog(TypedView viewObject,
String title,
Frame owner,
boolean modal)
Constructor for an input dialog containing the given view, with the provided title, parent frame, and modality. |
|
| Method Summary | |
JButton |
addAction(Action a)
Adds the given action to the actions panel contained by this dialog. |
JButton |
addDefaultAction(Action action)
Adds the given action to the actions panel contained by this dialog, as the default action for the dialog. |
void |
center()
Centers this dialog on the user screen. |
ActionsPanel |
getActionsPanel()
Returns the actions panel for this dialog. |
TypedView |
getTypedView()
Returns the input component contained by this dialog. |
private void |
initialize(TypedView viewObject)
Performs the common tasks required for constructors of this class. |
void |
setActionsPanel(ActionsPanel p)
Sets the actions panel for this dialog to the provided actions panel. |
| 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 |
protected TypedView view
protected ActionsPanel actions
| Constructor Detail |
public JPTDialog(TypedView viewObject)
viewObject - the input component to be used
NullPointerException - if the given input component
is nullJPTDialog(TypedView, String),
JPTDialog(TypedView, String, Dialog, boolean),
JPTDialog(TypedView, String, Frame, boolean)
public JPTDialog(TypedView viewObject,
String title)
viewObject - the input component to be usedtitle - the title text for this dialog
NullPointerException - if the given input component
is nullJPTDialog(TypedView),
JPTDialog(TypedView, String, Dialog, boolean),
JPTDialog(TypedView, String, Frame, boolean)
public JPTDialog(TypedView viewObject,
String title,
Dialog owner,
boolean modal)
viewObject - the input component to be usedtitle - the title text for this dialogowner - the parent dialog for this dialogmodal - whether or not this dialog is modal
NullPointerException - if the given input component
is nullJPTDialog(TypedView),
JPTDialog(TypedView, String),
JPTDialog(TypedView, String, Frame, boolean)
public JPTDialog(TypedView viewObject,
String title,
Frame owner,
boolean modal)
viewObject - the input component to be usedtitle - the title text for this dialogowner - the parent frame for this dialogmodal - whether or not this dialog is modal
NullPointerException - if the given input component
is nullJPTDialog(TypedView),
JPTDialog(TypedView, String),
JPTDialog(TypedView, String, Dialog, boolean)| Method Detail |
public TypedView getTypedView()
public JButton addAction(Action a)
null,
no action is added to the actions panel,
and the method returns null.
a - the action to be added
addDefaultAction(Action)public JButton addDefaultAction(Action action)
null,
no action is added to the actions panel,
and the method returns null.
The given action replaces the current default action
for the dialog, if one exists.
action - the action to be added
addAction(Action)public void setActionsPanel(ActionsPanel p)
null,
the current actions panel is not changed.
p - the new actions panelgetActionsPanel()public ActionsPanel getActionsPanel()
setActionsPanel(ActionsPanel)public void center()
Window.pack()private void initialize(TypedView viewObject)
viewObject - the desired input view
NullPointerException - if the given input component
is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||