Class OneTouchPanel

    • Field Detail

      • m_IconVisible

        protected String m_IconVisible
        the icon when the content is visible.
      • m_IconHidden

        protected String m_IconHidden
        the icon when the content is hidden.
      • m_ToolTipVisible

        protected String m_ToolTipVisible
        the tooltip when open.
      • m_ToolTipHidden

        protected String m_ToolTipHidden
        the tooltip when hidden.
      • m_PanelContent

        protected BasePanel m_PanelContent
        the panel for adding the actual content.
      • m_ButtonVisibility

        protected BaseButton m_ButtonVisibility
        the button for hiding/showing the content.
    • Constructor Detail

      • OneTouchPanel

        public OneTouchPanel​(OneTouchPanel.Location location)
        Initializes the panel.
        Parameters:
        location - the location of the button when content is hidden
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the members.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Finalizes the initialization.
        Overrides:
        finishInit in class BasePanel
      • getContentPanel

        public BasePanel getContentPanel()
        The panel for adding the actual content.
        Returns:
        the panel
      • setContentVisible

        public void setContentVisible​(boolean value)
        Sets whether to show the content or hide it.
        Parameters:
        value - true if to show the content, false to hide it
      • isContentVisible

        public boolean isContentVisible()
        Returns whether the content is visible.
        Returns:
        true if visible
      • updateToolTip

        protected void updateToolTip()
        Updates the tooltip.
      • setToolTipVisible

        public void setToolTipVisible​(String value)
        Sets the button tooltip to use when the content is visible.
        Parameters:
        value - the tooltip, null to turn off tooltip
      • getToolTipVisible

        public String getToolTipVisible()
        Returns the button tooltip in use when the content is visible.
        Returns:
        the tooltip, null if turned off
      • setToolTipHidden

        public void setToolTipHidden​(String value)
        Sets the button tooltip to use when the content is hidden.
        Parameters:
        value - the tooltip, null to turn off tooltip
      • getToolTipHidden

        public String getToolTipHidden()
        Returns the button tooltip in use when the content is hidden.
        Returns:
        the tooltip, null if turned off