Class WindowComponentInfo

java.lang.Object
com.nomagic.magicdraw.ui.WindowComponentInfo

@OpenApiAll public class WindowComponentInfo extends Object
Stores information about window component - id, name, icon and etc.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Returns id of the window component.
      Returns:
      id of the component.
    • getTabTitle

      public String getTabTitle()
      Returns window's tab's title.
      Returns:
      tab's title.
    • getName

      public String getName()
      Returns name (title) of the window component.
      Returns:
      title of the window.
    • getIcon

      @CheckForNull public Icon getIcon()
      Returns icon of the window component.
      Returns:
      icon of the window.
    • getSide

      public int getSide()
      Returns the window component side in the JIDE interface style.
      Returns:
      side constant.
    • getState

      public int getState()
      Returns the window component initial docking state in the JIDE interface style.
      Returns:
      side constant.
    • isRemoveOnHide

      public boolean isRemoveOnHide()
      Returns if the window component should be removed on hide.
      Returns:
      true if window is removed on hide, otherwise - false.
    • setIcon

      public void setIcon(@CheckForNull Icon icon)
      Set icon for the window.
      Parameters:
      icon - window component icon.
    • setId

      public void setId(String id)
      Set id for the window component.
      Parameters:
      id - id
    • setTabTitle

      public void setTabTitle(String tabTitle)
      Sets title of window's tab.
      Parameters:
      tabTitle - tab's title
    • setName

      public void setName(String name)
      Set name (title) for the window component.
      Parameters:
      name - name
    • setRemoveOnHide

      public void setRemoveOnHide(boolean removeOnHide)
      Set if remove the window component on
      Parameters:
      removeOnHide - remove on hide
    • setSide

      public void setSide(int side)
      Set the window component side in JIDE interface style.
      Parameters:
      side - side
    • setState

      public void setState(int state)
      Set the window component initial docking state in JIDE interface style.
      Parameters:
      state - state
    • getIndex

      public int getIndex()
      Returns the window component index in the JIDE interface style.
      Returns:
      index
    • setIndex

      public void setIndex(int index)
      Set the window component initial docking index in JIDE interface style.
      Parameters:
      index - index
    • isDockable

      public boolean isDockable()
      Returns:
      true if window is dockable
    • setDockable

      public void setDockable(boolean dockable)
      Set dockable initial state of the window
      Parameters:
      dockable - true if window is dockable
    • getInitialFloatingBounds

      @CheckForNull public Rectangle getInitialFloatingBounds()
      Returns:
      initial bounds for floating window or null if default must be used.
    • setInitialFloatingBounds

      public void setInitialFloatingBounds(@CheckForNull Rectangle initialFloatingBounds)
      Sets initial bounds for floating window. Default bounds will be used if not specified.
      Parameters:
      initialFloatingBounds - bounds