public class SelectCommand extends java.lang.Object implements GUICommand
GUICommand for selecting or deselecting a GUIElement.| Constructor and Description |
|---|
SelectCommand(@NotNull GUISelectable element,
boolean selected)
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 SelectCommand(@NotNull
@NotNull GUISelectable element,
boolean selected)
element - the element to affectselected - whether to select the elementpublic boolean canExecute()
GUICommandcanExecute in interface GUICommandpublic void execute()
GUICommandGUICommand.canExecute()
returns false.execute in interface GUICommand