Class PanelSettingsPropCnr

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable

public class PanelSettingsPropCnr extends DesignerPropCnr
Custom settings for the panel, only used in the Designer.
Author:
Christopher Mindus
  • Constructor Details

    • PanelSettingsPropCnr

      public PanelSettingsPropCnr()
      The constructor without name.
    • PanelSettingsPropCnr

      public PanelSettingsPropCnr(Atom name)
      The constructor with a name.
      Parameters:
      name - The Atom name.
  • Method Details

    • getDevices

      public List<GSimpleDevice> getDevices()
      Get the devices selected for display.
    • setDevices

      public void setDevices(Collection<GSimpleDevice> devices)
      Sets the devices displayed.
    • getThemes

      public String[] getThemes()
      Gets the desktop and theme names displayed.
      Returns:
      The desktop theme in [0], mobile theme in [1], (future in [2]...). Entries can be empty that is the same as null input themes.
    • setThemes

      public void setThemes(String[] themes)
      Saves the themes.
      Parameters:
      themes - The themes array, [0]=desktop, [1]=mobile, ... Null themes are replaced by empty strings at read using getThemes().
    • setZoom

      public void setZoom(int zoom)
      Sets the zoom factor.
      Parameters:
      zoom - The zoom factor (minimum 10).
    • getZoom

      public int getZoom()
      Gets the zoom factor.
      Returns:
      The zoom factor, or 100 if not set (or less than 10).