public abstract class AbstractDialogPage extends AbstractPage
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected ButtonEvent |
_buttonEvent |
protected java.lang.String |
_description |
protected javax.swing.Icon |
_icon |
protected boolean |
_pageEnabled |
protected AbstractDialogPage |
_parentPage |
protected java.lang.String |
_title |
static java.lang.String |
DESCRIPTION_PROPERTY |
static java.lang.String |
ICON_PROPERTY |
static java.lang.String |
PROPERTY_PAGE_ENABLED |
static java.lang.String |
TITLE_PROPERTY |
_pageEvent, INVOKE_ON_ALL, INVOKE_ON_NONE, INVOKE_ON_PAINT, INVOKE_ON_REPAINT, INVOKE_ON_UPDATE, INVOKE_ON_VALIDATElistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDialogPage()
Creates an AbstractDialogPage.
|
|
AbstractDialogPage(java.lang.String title)
Creates an AbstractDialogPage with title.
|
|
AbstractDialogPage(java.lang.String title,
javax.swing.Icon icon)
Creates an AbstractDialogPage with title and icon.
|
|
AbstractDialogPage(java.lang.String title,
java.lang.String description)
Creates an AbstractDialogPage with title and icon.
|
|
AbstractDialogPage(java.lang.String title,
java.lang.String description,
javax.swing.Icon icon)
Creates an AbstractDialogPage with title, icon and description.
|
|
AbstractDialogPage(java.lang.String title,
java.lang.String description,
javax.swing.Icon icon,
AbstractDialogPage parentPage)
/** Creates an AbstractDialogPage with title, icon, description and its parent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addButtonListener(ButtonListener l)
Adds a
ButtonListener to the page. |
void |
fireButtonEvent(int id)
Fire button event with id.
|
void |
fireButtonEvent(int id,
java.lang.String buttonName)
Fire button event with id and button name.
|
void |
fireButtonEvent(int id,
java.lang.String buttonName,
java.lang.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
ButtonListeners added to this Page with
ButtonListener. |
java.awt.Component |
getDefaultFocusComponent()
Gets the default focus component.
|
java.lang.String |
getDescription()
Gets the description of the page.
|
java.lang.String |
getFullTitle()
Gets the full title.
|
javax.swing.Icon |
getIcon()
Gets the icon of the page.
|
AbstractDialogPage |
getParentPage()
Gets the parent page.
|
java.lang.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(java.awt.Component defaultFocusComponent)
Sets the default focus component.
|
void |
setDescription(java.lang.String description)
Sets the description of the page.
|
void |
setIcon(javax.swing.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(java.lang.String title)
Sets the title of the page.
|
addPageListener, allowClosing, firePageEvent, firePageEvent, getInvokeCondition, getPageListeners, initialize, invalidate, paint, paintAll, paintComponents, removePageListener, repaint, repaint, repaint, repaint, reset, revalidate, setAllowClosing, setInvokeCondition, updategetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardActionadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlazyInitializeprotected transient ButtonEvent _buttonEvent
protected java.lang.String _title
protected java.lang.String _description
protected javax.swing.Icon _icon
protected boolean _pageEnabled
protected AbstractDialogPage _parentPage
public static final java.lang.String TITLE_PROPERTY
public static final java.lang.String DESCRIPTION_PROPERTY
public static final java.lang.String ICON_PROPERTY
public static final java.lang.String PROPERTY_PAGE_ENABLED
protected AbstractDialogPage()
public AbstractDialogPage(java.lang.String title)
title - the title of the pagepublic AbstractDialogPage(java.lang.String title,
java.lang.String description)
title - the title of the pagedescription - the description for the pagepublic AbstractDialogPage(java.lang.String title,
javax.swing.Icon icon)
title - the title of the pageicon - the icon of the pagepublic AbstractDialogPage(java.lang.String title,
java.lang.String description,
javax.swing.Icon icon)
title - the title of the pageicon - the icon of the pagedescription - the description for the pagepublic AbstractDialogPage(java.lang.String title,
java.lang.String description,
javax.swing.Icon icon,
AbstractDialogPage parentPage)
title - the title of the pageicon - the icon of the pagedescription - the description for the pageparentPage - the parent of the pagepublic 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()
ButtonListeners added to this Page with
ButtonListener.ButtonListeners 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,
java.lang.String buttonName)
id - buttonName - public void fireButtonEvent(int id,
java.lang.String buttonName,
java.lang.String userObject)
id - buttonName - userObject - public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - the new titlepublic javax.swing.Icon getIcon()
public void setIcon(javax.swing.Icon icon)
icon - the new iconpublic boolean isPageEnabled()
public void setPageEnabled(boolean pageEnabled)
pageEnabled - public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new descriptionpublic AbstractDialogPage getParentPage()
public void setParentPage(AbstractDialogPage parentPage)
parentPage - the parent pagepublic java.lang.String getFullTitle()
public java.awt.Component getDefaultFocusComponent()
public void setDefaultFocusComponent(java.awt.Component defaultFocusComponent)
defaultFocusComponent - a component inside the page.public void focusDefaultFocusComponent()