|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object WizardPanelBase uic.widgets.WizardPanel
A Wizard in Java; This is the old wizard implementation, and is still here for backwards compatibility. It is preferred to use the UICWizard instead.
UICWizard
,
Serialized FormField Summary | |
static int |
CANCEL_OPTION
Returned by showWizard when exited with cancel button |
static int |
FINISH_OPTION
Returned by showWizard when exited with finish button |
protected JDialog |
parentDialog
|
Constructor Summary | |
WizardPanel()
|
|
WizardPanel(JDialog parentDialog)
|
Method Summary | |
void |
addPanel(String title,
JPanel panel)
Adds the specified panel with the specified title at the end of the panel list. |
void |
bBackPressedSlot()
Called when bBack is pressed. |
void |
bCancelPressedSlot()
Called when bCancel is pressed. |
void |
bNextPressedSlot()
Called when bNext is pressed. |
void |
enteringPanel(int justLeftIndex,
int enteredPanelIndex)
Called when entering a panel. |
protected char |
getFinishButtonMnemonic()
Returns the mnemonic for the next button when in finish mode (last panel is reached). |
protected String |
getFinishButtonText()
Returns the text for the next button when in finish mode (last panel is reached). |
int |
getIndexOfPanel(JPanel panel)
Returns the index in the panel list of the first occurence of the specified panel or -1 if the panel list does not contain this panel. |
int |
getIndexOfPanel(String title)
Returns the index in the panel list of the first occurence of the panel with the specified title, or -1 if there is no panel with this title. |
JPanel |
getPanel(int index)
Returns the panel at the specified postition in the panel list, or null
if the index is out of bounds. |
JPanel |
getPanel(String title)
Returns the panel with the specified title, or null if there is no panel
with this title. |
int |
getPanelCount()
Returns the number of panels. |
boolean |
getPanelVerified(int panelIndex)
Returns true if the panel at the specified index is marked as verified, or
false otherwise. |
String |
getTitleOfPanel(int index)
Returns the title for the panel at the specified postition in the panel list, or null if the index is out of bounds. |
void |
insertPanel(int index,
String title,
JPanel panel)
Inserts the specified panel with the specified title at the specified index in the panel list. |
void |
leavingPanel(int leavingPanelIndex,
int aboutToEnterIndex)
Called when leaving a panel. |
void |
leavingWizard(boolean finish)
Called when leaving the wizard. |
void |
removePanel(int index)
Removes the panel at the specified position in the panel list. |
void |
removePanel(JPanel panel)
Removes the specified panel from the panel list. |
void |
removePanel(String title)
Removes the first panel with the specified title from the panel list. |
void |
setPanel(int index,
JPanel panel)
Replaces the panel at the specified position with the specified panel. |
void |
setPanelVerified(int panelIndex,
boolean verified)
Replaces the boolean at the specified index with the new boolean. |
void |
setTitle(int index,
String title)
Replaces the title at the specified position with the specified title. |
int |
showWizard()
Shows the wizard dialog and returns the exit option. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JDialog parentDialog
public static final int CANCEL_OPTION
public static final int FINISH_OPTION
Constructor Detail |
public WizardPanel()
public WizardPanel(JDialog parentDialog)
Method Detail |
public void enteringPanel(int justLeftIndex, int enteredPanelIndex)
justLeftIndex
- the index for the panel that was just left.enteredPanelIndex
- the index for the panel that is entered.public void leavingPanel(int leavingPanelIndex, int aboutToEnterIndex)
leavingPanelIndex
- the index for the panel we are leaving.aboutToEnterIndex
- the index for the panel that is about to be entered.public void leavingWizard(boolean finish)
finish
- true
if the wizard is left on finish, false
otherwisepublic void bCancelPressedSlot()
public void bBackPressedSlot()
public void bNextPressedSlot()
protected String getFinishButtonText()
protected char getFinishButtonMnemonic()
public void addPanel(String title, JPanel panel)
title
- title for panel to be added.panel
- panel to be added.public void insertPanel(int index, String title, JPanel panel)
index
- index at which specified panel is to be inserted.title
- title for panel to be inserted.panel
- panel to be inserted.
IndexOutOfBoundsException
- - if the index is out of range
(index i < 0 || index i > size()).public int getPanelCount()
public void setTitle(int index, String title)
index
- index of panel to replace.title
- title to be stored at specified position.public void setPanel(int index, JPanel panel)
index
- index of panel to replace.panel
- panel to be stored at specified postition.public void setPanelVerified(int panelIndex, boolean verified)
panelIndex
- index for panel to change verification value.verified
- value for panel verification.public void removePanel(int index)
index
- index of panel to be removed.public void removePanel(String title)
title
- title of panel to remove.public void removePanel(JPanel panel)
panel
- panel to be removed.public int getIndexOfPanel(String title)
title
- title to search for.
public int getIndexOfPanel(JPanel panel)
panel
- panel to search for.
public String getTitleOfPanel(int index)
null
if the index is out of bounds.
index
- index of panel to return
null
if index is out of bounds.
ArrayIndexOutOfBoundsException
- when index is out of range of contents.public JPanel getPanel(int index)
null
if the index is out of bounds.
index
- index of panel to return
null
if index is
out of bounds.
ArrayIndexOutOfBoundsException
- when index is out of range of contents.public JPanel getPanel(String title)
null
if there is no panel
with this title.
title
- title to search for
null
if there is no panel with this
title.public boolean getPanelVerified(int panelIndex)
true
if the panel at the specified index is marked as verified, or
false
otherwise.
panelIndex
- index of panel to check for verification.
public int showWizard()
CANCEL_OPTION
, if exited with the finish button it
returns FINISH_OPTION
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |