public class PNewAccountAction extends PBASAction
Modifier and Type | Field and Description |
---|---|
protected PAccountCreationWizard |
mCreateAccountWizard |
ACCEL, ICON_DISABLED, ICON_DISABLED_SELECTED, ICON_PRESSED, ICON_ROLLOVER, ICON_ROLLOVER_SELECTED, ICON_SELECTED, MNEM, TOOL_TITLE, TOOLBAR_LABEL
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
PNewAccountAction(PClientComponent comp,
String tag)
Creates a new instance of a Create Account action that will
launch an Account Creation wizard.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Puts up an account creation wizard,
(
PAccountCreationWizard ). |
protected void |
cancelled()
Called when the wizard is cancelled
|
protected void |
displayWizard()
Displays the wizard.
|
protected void |
finished(PModelHandle model)
Sets the current account to be the newly-created account, first
checking that opening the new account won't exceed the maximum
number of accounts allowed open at one time.
|
protected void |
initWizard()
Prepares the wizard for display.
|
equals, getComponent, getHelpID, getPreferredMenu, getTag, handleError, setActionHelpOn, setPreferredMenu
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected PAccountCreationWizard mCreateAccountWizard
public PNewAccountAction(PClientComponent comp, String tag)
comp
- The component this action will create a new account for.tag
- The tag identifying the type of account creation wizard to
create.public void actionPerformed(ActionEvent e)
PAccountCreationWizard
). The variant of the wizard that
is put up is determined by the tag that was passed in to the
constructor.PAccountCreationWizard
protected void initWizard()
protected void displayWizard()
protected void finished(PModelHandle model)
model
- The model handle returned from a successful account
creation attempt.protected void cancelled()
Copyright © 2003, 2023, Oracle and/or its affiliates.