Class DockedTabGroupState

java.lang.Object
lu.kbra.modelizer_next.layout.DockedTabGroupState

public class DockedTabGroupState extends Object
Persistent state of one docked tab group and the panels it contains.
  • Constructor Details

    • DockedTabGroupState

      public DockedTabGroupState()
      Creates a docked tab group state instance.
  • Method Details

    • createDefault

      public static DockedTabGroupState createDefault()
      Creates a default.
      Returns:
      the created default
    • getHeight

      public double getHeight()
      Returns the height.
      Returns:
      the height
    • getId

      public String getId()
      Returns the ID.
      Returns:
      the ID
    • getSelectedTab

      public PanelType getSelectedTab()
      Returns the selected tab.
      Returns:
      the selected tab
    • getTabs

      public List<PanelType> getTabs()
      Returns the tabs.
      Returns:
      the tabs
    • getWidth

      public double getWidth()
      Returns the width.
      Returns:
      the width
    • getX

      public double getX()
      Returns the x.
      Returns:
      the x
    • getY

      public double getY()
      Returns the y.
      Returns:
      the y
    • setHeight

      public void setHeight(double height)
      Sets the height.
      Parameters:
      height - height value
    • setId

      public void setId(String id)
      Sets the ID.
      Parameters:
      id - stable id of the model element
    • setSelectedTab

      public void setSelectedTab(PanelType selectedTab)
      Sets the selected tab.
      Parameters:
      selectedTab - selected tab value used by the operation
    • setTabs

      public void setTabs(List<PanelType> tabs)
      Sets the tabs.
      Parameters:
      tabs - values for tabs
    • setWidth

      public void setWidth(double width)
      Sets the width.
      Parameters:
      width - width value
    • setX

      public void setX(double x)
      Sets the x.
      Parameters:
      x - x coordinate
    • setY

      public void setY(double y)
      Sets the y.
      Parameters:
      y - y coordinate
    • toString

      public String toString()
      Builds a debug string for this docked tab group state.
      Overrides:
      toString in class Object
      Returns:
      a debug string for this object