|
|||||||||||
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.bws42.wizard.AbstractWizardPanel
Extend this class to create a panel for a Wizard.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
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 | |
AbstractWizardPanel()
Creates a new AbstractWizardPanel. |
Method Summary | |
JComponent |
getComponent()
Returns this panel. |
protected String |
getString(String key)
Gets the string for the given key if it exists. |
protected String |
getString(String key,
String[] values)
Gets the string for the given key if it exists and returns it with any variables replaced by the appropriate string in the String[]. |
boolean |
isNextAvailable()
Returns true, the user can proceed forward from this panel. |
boolean |
isPrevAvailable()
Returns true, the user can proceed backwards from this panel. |
void |
panelInstalled()
Called after a panel has been displayed to the user. |
protected abstract void |
setLanguage()
Called to notify the subclass that a new LanguageLoader is installed and that it should update any strings it has to the new language. |
void |
setLanguageLoader(LanguageLoader lang)
Sets the new language loader and tells the subclass that a new LanguageLoader has been installed. |
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.bws42.wizard.WizardPanel |
getWizardObject, setWizardObject, validateContents |
Constructor Detail |
public AbstractWizardPanel()
Method Detail |
public boolean isPrevAvailable()
isPrevAvailable
in interface WizardPanel
public boolean isNextAvailable()
isNextAvailable
in interface WizardPanel
public void panelInstalled()
panelInstalled
in interface WizardPanel
protected final String getString(String key)
key
- the key to search for.
MissingResourceException
- if the key does not existprotected final String getString(String key, String[] values)
key
- the key to search forvalues
- the strings to replace the variables with
MissingResourceException
- if the key does not existprotected abstract void setLanguage()
public final void setLanguageLoader(LanguageLoader lang)
setLanguageLoader
in interface WizardPanel
lang
- the new LanguageLoader.public final JComponent getComponent()
getComponent
in interface WizardPanel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |