public class WizardModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BACK_BUTTON_ENABLED_PROPERTY
Property identification String for the Back button's enabled state
|
static java.lang.String |
BACK_BUTTON_ICON_PROPERTY
Property identification String for the Back button's icon
|
static java.lang.String |
BACK_BUTTON_TEXT_PROPERTY
Property identification String for the Back button's text
|
static java.lang.String |
CANCEL_BUTTON_ENABLED_PROPERTY
Property identification String for the Cancel button's enabled state
|
static java.lang.String |
CANCEL_BUTTON_ICON_PROPERTY
Property identification String for the Cancel button's icon
|
static java.lang.String |
CANCEL_BUTTON_TEXT_PROPERTY
Property identification String for the Cancel button's text
|
static java.lang.String |
CURRENT_PAGE_PROPERTY
Identification string for the current panel.
|
static java.lang.String |
NEXT_FINISH_BUTTON_ENABLED_PROPERTY
Property identification String for the Next button's enabled state
|
static java.lang.String |
NEXT_FINISH_BUTTON_ICON_PROPERTY
Property identification String for the Next button's icon
|
static java.lang.String |
NEXT_FINISH_BUTTON_TEXT_PROPERTY
Property identification String for the Next button's text
|
Constructor and Description |
---|
WizardModel()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener p)
Adds a PropertyChangeListener
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Informs allPropertyChangeListeners that the a given property
has changed.
|
(package private) java.util.Iterator<java.util.Map.Entry<java.lang.Object,WizardPage>> |
getAllPages() |
(package private) java.lang.Boolean |
getBackButtonEnabled()
Checks if the Back button is enabled.
|
(package private) javax.swing.Icon |
getBackButtonIcon()
Returns the icon for the Back button.
|
(package private) java.lang.Object |
getBackButtonText()
Returns the text for the Back button.
|
(package private) java.lang.Boolean |
getCancelButtonEnabled()
Checks if the Cancel button is enabled.
|
(package private) javax.swing.Icon |
getCancelButtonIcon()
Returns the icon for the Cancel button.
|
(package private) java.lang.Object |
getCancelButtonText()
Returns the text for the Cancel button.
|
(package private) WizardPage |
getCurrentWizardPage()
Returns the currently displayed WizardPage.
|
(package private) java.lang.Boolean |
getNextFinishButtonEnabled()
Checks if the Next/Finish button is enabled.
|
(package private) javax.swing.Icon |
getNextFinishButtonIcon()
Returns the icon for the Next/Finish button.
|
(package private) java.lang.Object |
getNextFinishButtonText()
Returns the text for the Next/Finish button.
|
(package private) WizardPage |
getWizardPage(java.lang.Object id)
Returns the WizardPage corresponding to the given identifier.
|
(package private) void |
registerPage(java.lang.Object id,
WizardPage page)
Registers the WizardPage in the model using the
Object-identifier specified.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener p)
Removes a PropertyChangeListener
|
(package private) void |
setBackButtonEnabled(boolean enabled)
Enables or disables the Back button.
|
(package private) void |
setBackButtonIcon(javax.swing.Icon newIcon)
Sets the icon for the Back button.
|
(package private) void |
setBackButtonText(java.lang.Object newText)
Sets the text for the back button.
|
(package private) void |
setCancelButtonEnabled(boolean enabled)
Enables or disables the Cancel button.
|
(package private) void |
setCancelButtonIcon(javax.swing.Icon newIcon)
Sets the icon for the Cancel button.
|
(package private) void |
setCancelButtonText(java.lang.Object newText)
Sets the text for the Cancel button.
|
(package private) boolean |
setCurrentPanel(java.lang.Object id)
Sets the current panel to that identified by the Object passed in.
|
(package private) void |
setNextFinishButtonEnabled(boolean enabled)
Enables or disables the Next/Finish button.
|
void |
setNextFinishButtonIcon(javax.swing.Icon newIcon)
Sets the icon for the Next/Finish button.
|
(package private) void |
setNextFinishButtonText(java.lang.Object newText) |
(package private) void |
unregisterPage(java.lang.Object id)
Unregisters the WizardPage corresponding to the given id.
|
public static final java.lang.String CURRENT_PAGE_PROPERTY
public static final java.lang.String BACK_BUTTON_TEXT_PROPERTY
public static final java.lang.String BACK_BUTTON_ICON_PROPERTY
public static final java.lang.String BACK_BUTTON_ENABLED_PROPERTY
public static final java.lang.String NEXT_FINISH_BUTTON_TEXT_PROPERTY
public static final java.lang.String NEXT_FINISH_BUTTON_ICON_PROPERTY
public static final java.lang.String NEXT_FINISH_BUTTON_ENABLED_PROPERTY
public static final java.lang.String CANCEL_BUTTON_TEXT_PROPERTY
public static final java.lang.String CANCEL_BUTTON_ICON_PROPERTY
public static final java.lang.String CANCEL_BUTTON_ENABLED_PROPERTY
WizardPage getCurrentWizardPage()
void registerPage(java.lang.Object id, WizardPage page)
id
- Object-based identifierpage
- WizardPage that describes the panelvoid unregisterPage(java.lang.Object id)
id
- The id of the WizardPage.WizardPage getWizardPage(java.lang.Object id)
id
- The identifier of the page.java.util.Iterator<java.util.Map.Entry<java.lang.Object,WizardPage>> getAllPages()
boolean setCurrentPanel(java.lang.Object id)
id
- Object-based panel identifierjava.lang.Object getBackButtonText()
void setBackButtonText(java.lang.Object newText)
newText
- The text to set.java.lang.Object getNextFinishButtonText()
void setNextFinishButtonText(java.lang.Object newText)
java.lang.Object getCancelButtonText()
void setCancelButtonText(java.lang.Object newText)
newText
- The text to set.javax.swing.Icon getBackButtonIcon()
void setBackButtonIcon(javax.swing.Icon newIcon)
newIcon
- The new icon to set.javax.swing.Icon getNextFinishButtonIcon()
public void setNextFinishButtonIcon(javax.swing.Icon newIcon)
newIcon
- The new icon to set.javax.swing.Icon getCancelButtonIcon()
void setCancelButtonIcon(javax.swing.Icon newIcon)
newIcon
- The new icon to set.java.lang.Boolean getBackButtonEnabled()
true
if the Back button is enabled,
false
otherwise.void setBackButtonEnabled(boolean enabled)
enabled
- true
to enable the Back button,
false
to disable it.java.lang.Boolean getNextFinishButtonEnabled()
true
if the Next/Finish button is enabled,
false
otherwise.void setNextFinishButtonEnabled(boolean enabled)
enabled
- true
to enable the Next/Finish button,
false
to disable it.java.lang.Boolean getCancelButtonEnabled()
true
if the Cancel button is enabled,
false
otherwise.void setCancelButtonEnabled(boolean enabled)
enabled
- true
to enable the Cancel button,
false
to disable it.public void addPropertyChangeListener(java.beans.PropertyChangeListener p)
p
- The PropertyChangeListener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener p)
p
- The PropertyChangeListener to remove.protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- The name of the property.oldValue
- The old property value.newValue
- The new property value.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.