|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Dialog javax.swing.JDialog com.jidesoft.dialog.StandardDialog
public abstract class StandardDialog
StandardDialog is a dialog template. However several things are added to it to make it easier to use.
Nested Class Summary | |
---|---|
protected class |
StandardDialog.DefaultStandardDialogPane
|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
com.jidesoft.dialog.StandardDialog.StandardDialogPropertyChangeListener |
_propertyChangeListener
|
protected StandardDialogPane |
_standardDialogPane
|
static int |
RESULT_AFFIRMED
Dialog result. |
static int |
RESULT_CANCELLED
Dialog result. |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface com.jidesoft.dialog.ButtonNames |
---|
APPLY, BACK, BROWSE, CANCEL, CLEAR, CLOSE, DETAILS, EDIT, EXIT, FIND, FIND_NEXT, FINISH, FORWARD, HELP, NEW, NEXT, NO, OK, OPEN, PRINT, REPLACE, RESET, RETRY, RUN, SAVE, SAVE_AS, STOP, YES |
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 | |
---|---|
StandardDialog()
|
|
StandardDialog(Dialog owner,
boolean modal)
|
|
StandardDialog(Dialog owner,
String title)
|
|
StandardDialog(Dialog owner,
String title,
boolean modal)
|
|
StandardDialog(Dialog owner,
String title,
boolean modal,
GraphicsConfiguration gc)
|
|
StandardDialog(Frame owner)
|
|
StandardDialog(Frame owner,
boolean modal)
|
|
StandardDialog(Frame owner,
String title)
|
|
StandardDialog(Frame owner,
String title,
boolean modal)
|
|
StandardDialog(Window owner)
|
|
StandardDialog(Window owner,
String title)
|
Method Summary | |
---|---|
abstract JComponent |
createBannerPanel()
Subclasses should implement this method to create the banner panel. |
abstract ButtonPanel |
createButtonPanel()
Subclasses should implement this method to create the button panel. |
abstract JComponent |
createContentPanel()
Subclasses should implement this method to create the content panel. |
ButtonPanel |
createOKCancelButtonPanel()
Creates a standard OK/Cancel button panel. |
protected StandardDialogPane |
createStandardDialogPane()
|
JComponent |
getBannerPanel()
Gets the banner panel created by createBannerPanel. |
ButtonPanel |
getButtonPanel()
Gets the banner panel created by createButtonPanel. |
JComponent |
getContentPanel()
Gets the banner panel created by createContentPanel. |
Action |
getDefaultAction()
Gets the default action. |
Action |
getDefaultCancelAction()
Get default cancel action. |
int |
getDialogResult()
Gets the result. |
Component |
getInitFocusedComponent()
Gets the initial focused component when dialog is shown. |
StandardDialogPane |
getStandardDialogPane()
|
protected void |
initComponents()
Call three createXxxPanel methods and layout them using BorderLayout. |
void |
initialize()
Force the initComponent() method implemented in the child class to be called. |
void |
pack()
|
void |
setDefaultAction(Action defaultAction)
Sets the default action. |
void |
setDefaultCancelAction(Action defaultCancelAction)
Set default cancel action. |
void |
setDialogResult(int dialogResult)
Sets the dialog result. |
void |
setInitFocusedComponent(Component initFocusedComponent)
Sets the initial focused component when dialog is shown. |
void |
show()
Deprecated. As of JDK version 1.5, replaced by Component.setVisible(boolean) . |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected StandardDialogPane _standardDialogPane
public static final int RESULT_CANCELLED
public static final int RESULT_AFFIRMED
public com.jidesoft.dialog.StandardDialog.StandardDialogPropertyChangeListener _propertyChangeListener
Constructor Detail |
---|
public StandardDialog() throws HeadlessException
HeadlessException
public StandardDialog(Frame owner) throws HeadlessException
HeadlessException
public StandardDialog(Frame owner, boolean modal) throws HeadlessException
HeadlessException
public StandardDialog(Frame owner, String title) throws HeadlessException
HeadlessException
public StandardDialog(Frame owner, String title, boolean modal) throws HeadlessException
HeadlessException
public StandardDialog(Window owner) throws HeadlessException
HeadlessException
public StandardDialog(Window owner, String title) throws HeadlessException
HeadlessException
public StandardDialog(Dialog owner, boolean modal) throws HeadlessException
HeadlessException
public StandardDialog(Dialog owner, String title) throws HeadlessException
HeadlessException
public StandardDialog(Dialog owner, String title, boolean modal) throws HeadlessException
HeadlessException
public StandardDialog(Dialog owner, String title, boolean modal, GraphicsConfiguration gc) throws HeadlessException
HeadlessException
Method Detail |
---|
public int getDialogResult()
public void setDialogResult(int dialogResult)
dialogResult
- the new dialog result.public Action getDefaultCancelAction()
public void setDefaultCancelAction(Action defaultCancelAction)
defaultCancelAction
- the default cancel actionpublic Action getDefaultAction()
public void setDefaultAction(Action defaultAction)
defaultAction
- the default action.public void pack()
pack
in class Window
@Deprecated public void show()
Component.setVisible(boolean)
.
show
in class Dialog
public final void initialize()
protected void initComponents()
public Component getInitFocusedComponent()
public void setInitFocusedComponent(Component initFocusedComponent)
initFocusedComponent
- the initial focused component.public JComponent getBannerPanel()
public JComponent getContentPanel()
public ButtonPanel getButtonPanel()
public StandardDialogPane getStandardDialogPane()
public abstract JComponent createBannerPanel()
BannerPanel
If subclass doesn't want to have a banner panel, just return null.
public abstract JComponent createContentPanel()
public abstract ButtonPanel createButtonPanel()
ButtonPanel
.
ButtonPanel
public ButtonPanel createOKCancelButtonPanel()
protected StandardDialogPane createStandardDialogPane()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |