Class DialogToggleCommand

  • All Implemented Interfaces:
    GUICommand

    public class DialogToggleCommand
    extends java.lang.Object
    implements GUICommand
    A GUICommand which toggles the visibility of a dialog.
    • Constructor Summary

      Constructors 
      Constructor Description
      DialogToggleCommand​(@NotNull CommandCallback commandCallback, @NotNull java.lang.String dialog)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Constructor Detail

      • DialogToggleCommand

        public DialogToggleCommand​(@NotNull
                                   @NotNull CommandCallback commandCallback,
                                   @NotNull
                                   @NotNull java.lang.String dialog)
        Creates a new instance.
        Parameters:
        commandCallback - the command callback to use
        dialog - the dialog to toggle
    • Method Detail

      • canExecute

        public boolean canExecute()
        Description copied from interface: GUICommand
        Returns whether this command may be executed.
        Specified by:
        canExecute in interface GUICommand
        Returns:
        whether this command may be executed