|
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.AbstractPage com.jidesoft.dialog.AbstractDialogPage
public abstract class AbstractDialogPage
AbstractDialogPage is an abstract base class extends AbstractPage. In addition to AbstractPage, this class has some
new properties so that it can be used in dialog.
For example, it can support ButtonEvent which is used by
ButtonPanel. In addition, it has title, icon, description and parent attribute.
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 ButtonEvent |
_buttonEvent
|
protected String |
_description
|
protected Icon |
_icon
|
protected boolean |
_pageEnabled
|
protected AbstractDialogPage |
_parentPage
|
protected String |
_title
|
static String |
DESCRIPTION_PROPERTY
|
static String |
ICON_PROPERTY
|
static String |
PROPERTY_PAGE_ENABLED
|
static String |
TITLE_PROPERTY
|
Fields inherited from class com.jidesoft.dialog.AbstractPage |
---|
_pageEvent, INVOKE_ON_ALL, INVOKE_ON_NONE, INVOKE_ON_PAINT, INVOKE_ON_REPAINT, INVOKE_ON_UPDATE, INVOKE_ON_VALIDATE |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
protected |
AbstractDialogPage()
Creates an AbstractDialogPage. |
|
AbstractDialogPage(String title)
Creates an AbstractDialogPage with title. |
|
AbstractDialogPage(String title,
Icon icon)
Creates an AbstractDialogPage with title and icon. |
|
AbstractDialogPage(String title,
String description)
Creates an AbstractDialogPage with title and icon. |
|
AbstractDialogPage(String title,
String description,
Icon icon)
Creates an AbstractDialogPage with title, icon and description. |
|
AbstractDialogPage(String title,
String description,
Icon icon,
AbstractDialogPage parentPage)
/** Creates an AbstractDialogPage with title, icon, description and its parent. |
Method Summary | |
---|---|
void |
addButtonListener(ButtonListener l)
Adds a ButtonListener to the page. |
void |
fireButtonEvent(int id)
Fire button event with id. |
void |
fireButtonEvent(int id,
String buttonName)
Fire button event with id and button name. |
void |
fireButtonEvent(int id,
String buttonName,
String userObject)
Fire button event with id, button name and user object if needed. |
void |
focusDefaultFocusComponent()
Focus the default focus component if not null. |
ButtonListener[] |
getButtonListeners()
Returns an array of all the ButtonListener s added to this Page with
ButtonListener . |
Component |
getDefaultFocusComponent()
Gets the default focus component. |
String |
getDescription()
Gets the description of the page. |
String |
getFullTitle()
Gets the full title. |
Icon |
getIcon()
Gets the icon of the page. |
AbstractDialogPage |
getParentPage()
Gets the parent page. |
String |
getTitle()
Gets the title of the page. |
boolean |
isPageEnabled()
Checks if the page is enabled. |
void |
removeButtonListener(ButtonListener l)
Removes a ButtonListener from the page. |
void |
setDefaultFocusComponent(Component defaultFocusComponent)
Sets the default focus component. |
void |
setDescription(String description)
Sets the description of the page. |
void |
setIcon(Icon icon)
Sets the icon of the page. |
void |
setPageEnabled(boolean pageEnabled)
Sets page enabled or disabled. |
void |
setParentPage(AbstractDialogPage parentPage)
Sets the parent page. |
void |
setTitle(String title)
Sets the title of the page. |
Methods inherited from class com.jidesoft.dialog.AbstractPage |
---|
addPageListener, allowClosing, firePageEvent, firePageEvent, getInvokeCondition, getPageListeners, initialize, invalidate, paint, paintAll, paintComponents, removePageListener, repaint, repaint, repaint, repaint, reset, revalidate, setAllowClosing, setInvokeCondition, update |
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 |
Methods inherited from interface com.jidesoft.dialog.Laziness |
---|
lazyInitialize |
Field Detail |
---|
protected transient ButtonEvent _buttonEvent
protected String _title
protected String _description
protected Icon _icon
protected boolean _pageEnabled
protected AbstractDialogPage _parentPage
public static final String TITLE_PROPERTY
public static final String DESCRIPTION_PROPERTY
public static final String ICON_PROPERTY
public static final String PROPERTY_PAGE_ENABLED
Constructor Detail |
---|
protected AbstractDialogPage()
public AbstractDialogPage(String title)
title
- the title of the pagepublic AbstractDialogPage(String title, String description)
title
- the title of the pagedescription
- the description for the pagepublic AbstractDialogPage(String title, Icon icon)
title
- the title of the pageicon
- the icon of the pagepublic AbstractDialogPage(String title, String description, Icon icon)
title
- the title of the pageicon
- the icon of the pagedescription
- the description for the pagepublic AbstractDialogPage(String title, String description, Icon icon, AbstractDialogPage parentPage)
title
- the title of the pageicon
- the icon of the pagedescription
- the description for the pageparentPage
- the parent of the pageMethod Detail |
---|
public void addButtonListener(ButtonListener l)
ButtonListener
to the page.
l
- the ButtonListener
to be addedpublic void removeButtonListener(ButtonListener l)
ButtonListener
from the page.
l
- the ButtonListener
to be removedpublic ButtonListener[] getButtonListeners()
ButtonListener
s added to this Page
with
ButtonListener
.
ButtonListener
s added, or an empty array if no listeners have been addedpublic void fireButtonEvent(int id)
ButtonEvent.CLEAR_DEFAULT_BUTTON
event.
id
- public void fireButtonEvent(int id, String buttonName)
id
- buttonName
- public void fireButtonEvent(int id, String buttonName, String userObject)
id
- buttonName
- userObject
- public String getTitle()
public void setTitle(String title)
title
- the new titlepublic Icon getIcon()
public void setIcon(Icon icon)
icon
- the new iconpublic boolean isPageEnabled()
public void setPageEnabled(boolean pageEnabled)
pageEnabled
- public String getDescription()
public void setDescription(String description)
description
- the new descriptionpublic AbstractDialogPage getParentPage()
public void setParentPage(AbstractDialogPage parentPage)
parentPage
- the parent pagepublic String getFullTitle()
public Component getDefaultFocusComponent()
public void setDefaultFocusComponent(Component defaultFocusComponent)
defaultFocusComponent
- a component inside the page.public void focusDefaultFocusComponent()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |