Class AccountPasswordCommand
java.lang.Object
com.realtime.crossfire.jxclient.gui.commands.AccountPasswordCommand
- All Implemented Interfaces:
GUICommand
A
GUICommand sending an account password change request.-
Constructor Summary
ConstructorsConstructorDescriptionAccountPasswordCommand(@NotNull CommandCallback commandCallback, @NotNull AbstractGUIElement button, @NotNull GuiFactory guiFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this command may be executed.voidexecute()Executes the command.
-
Constructor Details
-
AccountPasswordCommand
public AccountPasswordCommand(@NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull AbstractGUIElement button, @NotNull @NotNull GuiFactory guiFactory) Creates a new instance.- Parameters:
commandCallback- what to inform of various changesbutton- the item to link to find the Gui from which to get informationguiFactory- the global GUI factory instance
-
-
Method Details
-
canExecute
public boolean canExecute()Description copied from interface:GUICommandReturns whether this command may be executed.- Specified by:
canExecutein interfaceGUICommand- Returns:
- whether this command may be executed
-
execute
public void execute()Description copied from interface:GUICommandExecutes the command. Does nothing if called whileGUICommand.canExecute()returnsfalse.- Specified by:
executein interfaceGUICommand
-