Package adams.gui.core
Class MultiPagePane.PageContainer
- java.lang.Object
-
- adams.gui.core.MultiPagePane.PageContainer
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- MultiPagePane
public static class MultiPagePane.PageContainer extends Object implements Serializable
Container for page component and title.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected MultiPagePane.DetachablePagem_DetachablePagethe detachable panel.protected ImageIconm_Iconthe current icon (can be null).protected Map<String,Object>m_MetaDatafor storing meta-data.protected Componentm_Pagethe page.protected booleanm_RemovalAllowedwhether this page can be removed, even if readonly.protected Stringm_Titlethe title.
-
Constructor Summary
Constructors Constructor Description PageContainer(String title, Component page)Initializes the container with no icon.PageContainer(String title, Component page, ImageIcon icon)Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiPagePane.DetachablePagegetDetachablePage()Returns the detachable page.ImageIcongetIcon()Returns the icon.Map<String,Object>getMetaData()Returns the meta-data associated with the page.ComponentgetPage()Returns the page.StringgetTitle()Returns the title.booleanisRemovalAllowed()Returns whether removal is allowed despite read-only pane.voidsetIcon(ImageIcon value)Sets the icon.voidsetPage(Component value)Sets the page.voidsetRemovalAllowed(boolean value)Sets whether removal allowed despite read-only pane.voidsetTitle(String value)Sets the title.StringtoString()Just returns the title.
-
-
-
Field Detail
-
m_Title
protected String m_Title
the title.
-
m_Page
protected Component m_Page
the page.
-
m_DetachablePage
protected MultiPagePane.DetachablePage m_DetachablePage
the detachable panel.
-
m_Icon
protected ImageIcon m_Icon
the current icon (can be null).
-
m_RemovalAllowed
protected boolean m_RemovalAllowed
whether this page can be removed, even if readonly.
-
-
Method Detail
-
getTitle
public String getTitle()
Returns the title.- Returns:
- the title
-
setTitle
public void setTitle(String value)
Sets the title.- Parameters:
value- the title
-
getPage
public Component getPage()
Returns the page.- Returns:
- the page
-
setPage
public void setPage(Component value)
Sets the page.- Parameters:
value- the page
-
getMetaData
public Map<String,Object> getMetaData()
Returns the meta-data associated with the page.- Returns:
- the meta-data
-
setRemovalAllowed
public void setRemovalAllowed(boolean value)
Sets whether removal allowed despite read-only pane.- Parameters:
value- true if allowed
-
isRemovalAllowed
public boolean isRemovalAllowed()
Returns whether removal is allowed despite read-only pane.- Returns:
- true if allowed
-
getDetachablePage
public MultiPagePane.DetachablePage getDetachablePage()
Returns the detachable page.- Returns:
- the page
-
toString
public String toString()
Just returns the title.
-
getIcon
public ImageIcon getIcon()
Returns the icon.- Returns:
- the icon
-
setIcon
public void setIcon(ImageIcon value)
Sets the icon.- Parameters:
value- the icon
-
-