java.lang.Object com.realtime.crossfire.jxclient.gui.commands.HideCommand
public class HideCommand
A GUICommand
which hides a target GUIElement
.
Field Summary | |
---|---|
private GUIElement |
target
The gui element to hide. |
Constructor Summary | |
---|---|
HideCommand(GUIElement target)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
canExecute()
Returns whether this command may be executed. |
void |
execute()
Executes the command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final GUIElement target
Constructor Detail |
---|
public HideCommand(@NotNull GUIElement target)
target
- the gui element to hideMethod Detail |
---|
public boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.
execute
in interface GUICommand