public class AccountPasswordCommand extends java.lang.Object implements GUICommand
GUICommand
sending an account password change request.Modifier and Type | Field and Description |
---|---|
private CommandCallback |
commandCallback
The
CommandCallback to use. |
private java.awt.Component |
element
The
Component to find the Gui containing the fields. |
Constructor and Description |
---|
AccountPasswordCommand(CommandCallback commandCallback,
java.awt.Component button)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
@NotNull private final CommandCallback commandCallback
CommandCallback
to use.@NotNull private final java.awt.Component element
Component
to find the Gui containing the fields.public AccountPasswordCommand(@NotNull CommandCallback commandCallback, @NotNull java.awt.Component button)
commandCallback
- what to inform of various changesbutton
- the item to link to to find the Gui from which to get
informationpublic boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.execute
in interface GUICommand