|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.customcontrols.wizard.WizardModel
public class WizardModel
The model for the Wizard component, which tracks the text, icons, and enabled state of each of the buttons, as well as the current panel that is displayed. Note that the model, in its current form, is not intended to be sub-classed.
| Field Summary | |
|---|---|
static String |
BACK_BUTTON_ENABLED_PROPERTY
Property identification String for the Back button's enabled state |
static String |
BACK_BUTTON_ICON_PROPERTY
Property identification String for the Back button's icon |
static String |
BACK_BUTTON_TEXT_PROPERTY
Property identification String for the Back button's text |
static String |
CANCEL_BUTTON_ENABLED_PROPERTY
Property identification String for the Cancel button's enabled state |
static String |
CANCEL_BUTTON_ICON_PROPERTY
Property identification String for the Cancel button's icon |
static String |
CANCEL_BUTTON_TEXT_PROPERTY
Property identification String for the Cancel button's text |
static String |
CURRENT_PAGE_PROPERTY
Identification string for the current panel. |
static String |
NEXT_FINISH_BUTTON_ENABLED_PROPERTY
Property identification String for the Next button's enabled state |
static String |
NEXT_FINISH_BUTTON_ICON_PROPERTY
Property identification String for the Next button's icon |
static String |
NEXT_FINISH_BUTTON_TEXT_PROPERTY
Property identification String for the Next button's text |
| Constructor Summary | |
|---|---|
WizardModel()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener p)
Adds a PropertyChangeListener |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Informs allPropertyChangeListeners that the a given property has changed. |
(package private) Iterator<Map.Entry<Object,WizardPage>> |
getAllPages()
|
(package private) Boolean |
getBackButtonEnabled()
Checks if the Back button is enabled. |
(package private) Icon |
getBackButtonIcon()
Returns the icon for the Back button. |
(package private) Object |
getBackButtonText()
Returns the text for the Back button. |
(package private) Boolean |
getCancelButtonEnabled()
Checks if the Cancel button is enabled. |
(package private) Icon |
getCancelButtonIcon()
Returns the icon for the Cancel button. |
(package private) Object |
getCancelButtonText()
Returns the text for the Cancel button. |
(package private) WizardPage |
getCurrentWizardPage()
Returns the currently displayed WizardPage. |
(package private) Boolean |
getNextFinishButtonEnabled()
Checks if the Next/Finish button is enabled. |
(package private) Icon |
getNextFinishButtonIcon()
Returns the icon for the Next/Finish button. |
(package private) Object |
getNextFinishButtonText()
Returns the text for the Next/Finish button. |
(package private) WizardPage |
getWizardPage(Object id)
Returns the WizardPage corresponding to the given identifier. |
(package private) void |
registerPage(Object id,
WizardPage page)
Registers the WizardPage in the model using the Object-identifier specified. |
void |
removePropertyChangeListener(PropertyChangeListener p)
Removes a PropertyChangeListener |
(package private) void |
setBackButtonEnabled(boolean enabled)
Enables or disables the Back button. |
(package private) void |
setBackButtonIcon(Icon newIcon)
Sets the icon for the Back button. |
(package private) void |
setBackButtonText(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(Icon newIcon)
Sets the icon for the Cancel button. |
(package private) void |
setCancelButtonText(Object newText)
Sets the text for the Cancel button. |
(package private) boolean |
setCurrentPanel(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(Icon newIcon)
Sets the icon for the Next/Finish button. |
(package private) void |
setNextFinishButtonText(Object newText)
|
(package private) void |
unregisterPage(Object id)
Unregisters the WizardPage corresponding to the given id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CURRENT_PAGE_PROPERTY
public static final String BACK_BUTTON_TEXT_PROPERTY
public static final String BACK_BUTTON_ICON_PROPERTY
public static final String BACK_BUTTON_ENABLED_PROPERTY
public static final String NEXT_FINISH_BUTTON_TEXT_PROPERTY
public static final String NEXT_FINISH_BUTTON_ICON_PROPERTY
public static final String NEXT_FINISH_BUTTON_ENABLED_PROPERTY
public static final String CANCEL_BUTTON_TEXT_PROPERTY
public static final String CANCEL_BUTTON_ICON_PROPERTY
public static final String CANCEL_BUTTON_ENABLED_PROPERTY
| Constructor Detail |
|---|
public WizardModel()
| Method Detail |
|---|
WizardPage getCurrentWizardPage()
void registerPage(Object id,
WizardPage page)
id - Object-based identifierpage - WizardPage that describes the panelvoid unregisterPage(Object id)
id - The id of the WizardPage.WizardPage getWizardPage(Object id)
id - The identifier of the page.
Iterator<Map.Entry<Object,WizardPage>> getAllPages()
boolean setCurrentPanel(Object id)
id - Object-based panel identifier
Object getBackButtonText()
void setBackButtonText(Object newText)
newText - The text to set.Object getNextFinishButtonText()
void setNextFinishButtonText(Object newText)
Object getCancelButtonText()
void setCancelButtonText(Object newText)
newText - The text to set.Icon getBackButtonIcon()
void setBackButtonIcon(Icon newIcon)
newIcon - The new icon to set.Icon getNextFinishButtonIcon()
public void setNextFinishButtonIcon(Icon newIcon)
newIcon - The new icon to set.Icon getCancelButtonIcon()
void setCancelButtonIcon(Icon newIcon)
newIcon - The new icon to set.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.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.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(PropertyChangeListener p)
p - The PropertyChangeListener to add.public void removePropertyChangeListener(PropertyChangeListener p)
p - The PropertyChangeListener to remove.
protected void firePropertyChange(String propertyName,
Object oldValue,
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. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||