Class WindowToggle

All Implemented Interfaces:
ItemSelectable, Serializable, ButtonModel

public abstract class WindowToggle extends ToggleButtonModel
ToggleButtonModel subclass that will lazily create and show/hide a window.
Since:
20 Jul 2017
Author:
Mark Taylor
See Also:
  • Constructor Details

    • WindowToggle

      public WindowToggle(String name, Icon icon, String descrip)
      Constructor.
      Parameters:
      name - toggle button name
      icon - toggle button icon
      descrip - toggle button description
  • Method Details

    • createWindow

      protected abstract Window createWindow()
      This method is called to create the window to be shown when it is first required.
      Returns:
      window to display when toggle button is selected