public abstract class BaliWizard extends Wizard
Children should:
Modifier and Type | Field and Description |
---|---|
protected oracle.bali.ewt.dialog.JEWTDialog |
_dlg |
protected javax.swing.Icon |
largeIcon
Deprecated.
since 11.0 override
getIcon() instead. |
protected BaliWizardState |
state |
protected java.lang.String |
wizName |
Constructor and Description |
---|
BaliWizard()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected oracle.bali.ewt.dialog.JEWTDialog |
buildDialog(Context context,
BaliWizardState state)
Create and fill in JEWTDialog instances.
|
protected abstract BaliWizardPanel |
buildPanel(Context context,
BaliWizardState state)
The returned Panel should be a JPanel that implements the
BaliWizardPanel interface.
|
protected BaliWizardState |
buildState(Context context)
Create a new state object.
|
protected void |
cancel() |
void |
commitAndFinish()
Commits the changes and closes the dialog.
|
protected void |
displayErrorMessage(java.lang.String title,
java.lang.String msg,
java.lang.String helpID) |
protected void |
finish() |
protected java.lang.String |
getDialogTitle() |
protected java.lang.String |
getHeaderDescription() |
protected java.awt.Image |
getHeaderImage() |
protected java.lang.String |
getHeaderTitle() |
javax.swing.Icon |
getIcon()
Gets the
Icon to use in the Object Gallery. |
java.lang.String |
getShortLabel()
Gets the name of the Wizard; the code can be inherited, as it returns
the abstracted variable wizName.
|
boolean |
invoke(Context context)
Invokes the wizard.
|
boolean |
isAvailable(Context context)
Called when the sensitivity of the menu item that opens this
wizard must be determined.
|
getLegacyParams, getLongLabel, getMenuSpecification, getToolTipText, getWizardId, setLegacyParams, setWizardId, toString
protected oracle.bali.ewt.dialog.JEWTDialog _dlg
@Deprecated protected javax.swing.Icon largeIcon
getIcon()
instead.protected BaliWizardState state
protected java.lang.String wizName
public BaliWizard()
protected BaliWizardState buildState(Context context)
context
- The Context describing the conditions of the call.Context
protected oracle.bali.ewt.dialog.JEWTDialog buildDialog(Context context, BaliWizardState state)
Important note: All panels must implement the BaliWizardPanel interface in order for this BaliWizard to work!
context
- The Context describing the conditions of the call.state
- The state.Context
,
JEWTDialog
protected abstract BaliWizardPanel buildPanel(Context context, BaliWizardState state)
public boolean invoke(Context context)
Invokable
context
- The context of the wizard. All parameters required
by the wizard must be set on the context. The wizard may also
return values to the caller by setting them into the Context for
the caller to retrieve.public javax.swing.Icon getIcon()
Wizard
Icon
to use in the Object Gallery. If this Wizard
is not accessed from the Object Gallery, the Wizard should return
null
.public java.lang.String getShortLabel()
getShortLabel
in class Wizard
public boolean isAvailable(Context context)
Wizard
isAvailable
in class Wizard
context
- The Context
to use when invoking this
Wizard
.true
if the wizard can be invoked, or
false
otherwise.public void commitAndFinish()
protected void finish()
protected void cancel()
protected java.awt.Image getHeaderImage()
protected java.lang.String getHeaderTitle()
protected java.lang.String getHeaderDescription()
protected java.lang.String getDialogTitle()
protected final void displayErrorMessage(java.lang.String title, java.lang.String msg, java.lang.String helpID)