|
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 javax.swing.JComponent javax.swing.JPanel com.jidesoft.dialog.StandardDialogPane
public abstract class StandardDialogPane
StandardDialogPane is the content pane of StandardDialog. It can also be used when you want the template of StandardDialog but you don't want to use JDialog.
StandardDialogPane
has lazy loading feature. So when you are done setup the page list, you need to call initComponents()
to initialize everything. This method will be called
automatically if the dialog pane is added to StandardDialog. Basically, if you want to add StandardDialogPane without StandardDialog, the following code are required for the pane to be ready to add
to its parent container.
pane = new StandardDialogPane() {
public JComponent createBannerPanel() {
return null;
}
public JComponent createContentPanel() {
return null;
}
public ButtonPanel createButtonPanel() {
return null;
}
};
pane.initComponents();
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
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 | |
---|---|
protected JComponent |
_bannerPanel
|
protected ButtonPanel |
_buttonPanel
|
protected JComponent |
_contentPanel
|
static String |
PROPERTY_CANCEL_ACTION
|
static String |
PROPERTY_DEFAULT_ACTION
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
StandardDialogPane()
|
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. |
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. |
Component |
getInitFocusedComponent()
Gets the initial focused component when dialog is shown. |
void |
initComponents()
Call three createXxxPanel methods and layout them using BorderLayout. |
protected void |
layoutComponents(Component bannerPanel,
Component contentPanel,
ButtonPanel buttonPanel)
Setups the layout for the three panels - banner panel, content panel and button panel. |
void |
setDefaultAction(Action defaultAction)
Sets the default action. |
void |
setDefaultCancelAction(Action defaultCancelAction)
Set default cancel action. |
void |
setInitFocusedComponent(Component initFocusedComponent)
Sets the initial focused component when dialog is shown. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected JComponent _bannerPanel
protected JComponent _contentPanel
protected ButtonPanel _buttonPanel
public static final String PROPERTY_CANCEL_ACTION
public static final String PROPERTY_DEFAULT_ACTION
Constructor Detail |
---|
public StandardDialogPane() throws HeadlessException
HeadlessException
Method Detail |
---|
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 initComponents()
protected void layoutComponents(Component bannerPanel, Component contentPanel, ButtonPanel buttonPanel)
bannerPanel
- the banner panelcontentPanel
- the content panelbuttonPanel
- the button panelpublic Component getInitFocusedComponent()
public void setInitFocusedComponent(Component initFocusedComponent)
initFocusedComponent
- the initial focused componentpublic JComponent getBannerPanel()
public JComponent getContentPanel()
public ButtonPanel getButtonPanel()
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
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |