Package com.nomagic.magicdraw.ui
Class WindowComponentInfo
java.lang.Object
com.nomagic.magicdraw.ui.WindowComponentInfo
Stores information about window component - id, name, icon and etc.
-
Constructor Summary
ConstructorDescriptionWindowComponentInfo
(String id, String tabTitle, String name, Icon icon, int side, int state, boolean removeOnHide) Constructor.WindowComponentInfo
(String id, String name, Icon icon, int side, int state, boolean removeOnHide) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()
Returns icon of the window component.getId()
Returns id of the window component.int
getIndex()
Returns the window component index in the JIDE interface style.getName()
Returns name (title) of the window component.int
getSide()
Returns the window component side in the JIDE interface style.int
getState()
Returns the window component initial docking state in the JIDE interface style.Returns window's tab's title.boolean
boolean
Returns if the window component should be removed on hide.void
setDockable
(boolean dockable) Set dockable initial state of the windowvoid
Set icon for the window.void
Set id for the window component.void
setIndex
(int index) Set the window component initial docking index in JIDE interface style.void
setInitialFloatingBounds
(Rectangle initialFloatingBounds) Sets initial bounds for floating window.void
Set name (title) for the window component.void
setRemoveOnHide
(boolean removeOnHide) Set if remove the window component onvoid
setSide
(int side) Set the window component side in JIDE interface style.void
setState
(int state) Set the window component initial docking state in JIDE interface style.void
setTabTitle
(String tabTitle) Sets title of window's tab.
-
Constructor Details
-
WindowComponentInfo
public WindowComponentInfo(String id, String name, @CheckForNull Icon icon, int side, int state, boolean removeOnHide) Constructor.- Parameters:
id
- id of the window component.name
- name (title) of the window.icon
- icon of the window.side
- indicates the side to place the window component in the JIDE interface style.state
- indicates the docking state of the window component in the JIDE interface style.removeOnHide
- true if the window should be removed on hide, false if it should be just hide.- See Also:
-
WindowComponentInfo
public WindowComponentInfo(String id, String tabTitle, String name, @CheckForNull Icon icon, int side, int state, boolean removeOnHide) Constructor.- Parameters:
id
- id of the window component.tabTitle
- the title of window's tab.name
- name (title) of the window.icon
- icon of the window.side
- indicates the side to place the window component in the JIDE interface style.state
- indicates the docking state of the window component in the JIDE interface style.removeOnHide
- true if the window should be removed on hide, false if it should be just hide.- See Also:
-
-
Method Details
-
getId
Returns id of the window component.- Returns:
- id of the component.
-
getTabTitle
Returns window's tab's title.- Returns:
- tab's title.
-
getName
Returns name (title) of the window component.- Returns:
- title of the window.
-
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
Set icon for the window.- Parameters:
icon
- window component icon.
-
setId
Set id for the window component.- Parameters:
id
- id
-
setTabTitle
Sets title of window's tab.- Parameters:
tabTitle
- tab's title
-
setName
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
- Returns:
- initial bounds for floating window or null if default must be used.
-
setInitialFloatingBounds
Sets initial bounds for floating window. Default bounds will be used if not specified.- Parameters:
initialFloatingBounds
- bounds
-