public class InventoryFilterCommand extends java.lang.Object implements GUICommand
GUICommand
for setting the inventory filter.Constructor and Description |
---|
InventoryFilterCommand(@NotNull InventoryView view,
@NotNull InventoryFilter filter)
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 InventoryFilterCommand(@NotNull @NotNull InventoryView view, @NotNull @NotNull InventoryFilter filter)
view
- the inventory view to updatefilter
- the inventory filter to setpublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand