Class BaseSplitPane

    • Field Detail

      • m_HiddenTopComponent

        protected Component m_HiddenTopComponent
        the hidden top/left component.
      • m_HiddenBottomComponent

        protected Component m_HiddenBottomComponent
        the hidden bottom/right component.
      • m_DividerLocationBeforeHiding

        protected Integer m_DividerLocationBeforeHiding
        the divider location before hiding a component.
      • m_SettingsClass

        protected Class m_SettingsClass
        the settings class for storing the divider location.
      • m_SettingsProperty

        protected String m_SettingsProperty
        the settings property for storing the divider location.
    • Constructor Detail

      • BaseSplitPane

        public BaseSplitPane()
        Creates a new BaseSplitPane configured to arrange the child components side-by-side horizontally with no continuous layout, using two buttons for the components.
      • BaseSplitPane

        public BaseSplitPane​(int newOrientation)
        Creates a new BaseSplitPane configured with the specified orientation and no continuous layout.
        Parameters:
        newOrientation - BaseSplitPane.HORIZONTAL_SPLIT or BaseSplitPane.VERTICAL_SPLIT
        Throws:
        IllegalArgumentException - if orientation is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT.
      • BaseSplitPane

        public BaseSplitPane​(int newOrientation,
                             boolean newContinuousLayout)
        Creates a new BaseSplitPane with the specified orientation and redrawing style.
        Parameters:
        newOrientation - BaseSplitPane.HORIZONTAL_SPLIT or BaseSplitPane.VERTICAL_SPLIT
        newContinuousLayout - a boolean, true for the components to redraw continuously as the divider changes position, false to wait until the divider position stops changing to redraw
        Throws:
        IllegalArgumentException - if orientation is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT
      • BaseSplitPane

        public BaseSplitPane​(int newOrientation,
                             Component newLeftComponent,
                             Component newRightComponent)
        Creates a new BaseSplitPane with the specified orientation and with the specified components that do not do continuous redrawing.
        Parameters:
        newOrientation - BaseSplitPane.HORIZONTAL_SPLIT or BaseSplitPane.VERTICAL_SPLIT
        newLeftComponent - the Component that will appear on the left of a horizontally-split pane, or at the top of a vertically-split pane
        newRightComponent - the Component that will appear on the right of a horizontally-split pane, or at the bottom of a vertically-split pane
        Throws:
        IllegalArgumentException - if orientation is not one of: HORIZONTAL_SPLIT or VERTICAL_SPLIT
      • BaseSplitPane

        public BaseSplitPane​(int newOrientation,
                             boolean newContinuousLayout,
                             Component newLeftComponent,
                             Component newRightComponent)
        Creates a new BaseSplitPane with the specified orientation and redrawing style, and with the specified components.
        Parameters:
        newOrientation - BaseSplitPane.HORIZONTAL_SPLIT or BaseSplitPane.VERTICAL_SPLIT
        newContinuousLayout - a boolean, true for the components to redraw continuously as the divider changes position, false to wait until the divider position stops changing to redraw
        newLeftComponent - the Component that will appear on the left of a horizontally-split pane, or at the top of a vertically-split pane
        newRightComponent - the Component that will appear on the right of a horizontally-split pane, or at the bottom of a vertically-split pane
        Throws:
        IllegalArgumentException - if orientation is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT
    • Method Detail

      • initialize

        protected void initialize()
        Initializes members.
      • setUISettingsParameters

        public void setUISettingsParameters​(Class cls,
                                            String property)
        Sets the parameters for storing the divider location.
        Specified by:
        setUISettingsParameters in interface UISettingsSupporter
        Parameters:
        cls - the class
        property - the property
      • isTopComponentHidden

        public boolean isTopComponentHidden()
        Returns whether the top component is hidden.
        Returns:
        true if the top component is hidden
      • setTopComponentHidden

        public void setTopComponentHidden​(boolean value)
        Sets the hidden status of the top component. Has no effect if the top or bottom component are already hidden.
        Parameters:
        value - if true then the top component is to be hidden
      • isLeftComponentHidden

        public boolean isLeftComponentHidden()
        Returns whether the left component is hidden.
        Returns:
        true if the left component is hidden
      • setLeftComponentHidden

        public void setLeftComponentHidden​(boolean value)
        Sets the hidden status of the left component. Has no effect if the left or right component are already hidden.
        Parameters:
        value - if true then the left component is to be hidden
      • isBottomComponentHidden

        public boolean isBottomComponentHidden()
        Returns whether the bottom component is hidden.
        Returns:
        true if the bottom component is hidden
      • setBottomComponentHidden

        public void setBottomComponentHidden​(boolean value)
        Sets the hidden status of the bottom component. Has no effect if the bottom or bottom component are already hidden.
        Parameters:
        value - if true then the bottom component is to be hidden
      • isRightComponentHidden

        public boolean isRightComponentHidden()
        Returns whether the right component is hidden.
        Returns:
        true if the right component is hidden
      • setRightComponentHidden

        public void setRightComponentHidden​(boolean value)
        Sets the hidden status of the right component. Has no effect if the right or right component are already hidden.
        Parameters:
        value - if true then the right component is to be hidden