public class ShowCommand extends java.lang.Object implements GUICommand
GUICommand
which shows a target GUIElement
.Constructor and Description |
---|
ShowCommand(@NotNull java.awt.Component target)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
public ShowCommand(@NotNull @NotNull java.awt.Component target)
target
- the gui element to showpublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand