Class MultiPagePane.PageContainer

    • Field Detail

      • m_Title

        protected String m_Title
        the title.
      • m_Page

        protected Component m_Page
        the page.
      • m_Icon

        protected ImageIcon m_Icon
        the current icon (can be null).
      • m_MetaData

        protected Map<String,​Object> m_MetaData
        for storing meta-data.
      • m_RemovalAllowed

        protected boolean m_RemovalAllowed
        whether this page can be removed, even if readonly.
    • Constructor Detail

      • PageContainer

        public PageContainer​(String title,
                             Component page)
        Initializes the container with no icon.
        Parameters:
        title - the title
        page - the page
      • PageContainer

        public PageContainer​(String title,
                             Component page,
                             ImageIcon icon)
        Initializes the container.
        Parameters:
        title - the title
        page - the page
        icon - the icon
    • 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
      • toString

        public String toString()
        Just returns the title.
        Overrides:
        toString in class Object
        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