Class TerraRollupSkin

    • Constructor Detail

      • TerraRollupSkin

        public TerraRollupSkin()
    • Method Detail

      • install

        public void install​(Component component)
        Description copied from class: ComponentSkin
        Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.
        Specified by:
        install in interface Skin
        Overrides:
        install in class RollupSkin
        Parameters:
        component - The component to which the skin is being attached.
      • getPreferredWidth

        public int getPreferredWidth​(int height)
        Description copied from interface: ConstrainedVisual
        Returns the visual's preferred width given the provided height constraint.
        Specified by:
        getPreferredWidth in interface ConstrainedVisual
        Overrides:
        getPreferredWidth in class ContainerSkin
        Parameters:
        height - The height by which to constrain the preferred width, or -1 for no constraint.
        Returns:
        The preferred width given the height constraint.
      • getPreferredHeight

        public int getPreferredHeight​(int width)
        Description copied from interface: ConstrainedVisual
        Returns the visual's preferred height given the provided width constraint.
        Specified by:
        getPreferredHeight in interface ConstrainedVisual
        Overrides:
        getPreferredHeight in class ContainerSkin
        Parameters:
        width - The width by which to constrain the preferred height, or -1 for no constraint.
        Returns:
        The preferred height given the width constraint.
      • getBaseline

        public int getBaseline​(int width,
                               int height)
        Description copied from class: ComponentSkin
        Should be implemented in every subclass.

        The default implementation here simply returns -1 (no baseline).

        Specified by:
        getBaseline in interface ConstrainedVisual
        Overrides:
        getBaseline in class ComponentSkin
        Parameters:
        width - Constrained width to compute the baseline for.
        height - Constrained height to compute the baseline for.
        Returns:
        The baseline relative to the origin of this visual, or -1 if this visual does not have a baseline.
      • layout

        public void layout()
        Description copied from interface: Skin
        If the component on which the skin is installed is a container, lays out the container's children.
      • getButtonColor

        public java.awt.Color getButtonColor()
      • setButtonColor

        public final void setButtonColor​(int color)
      • setButtonColor

        public void setButtonColor​(java.awt.Color buttonColor)
      • setButtonColor

        public final void setButtonColor​(java.lang.String buttonColor)
      • getDisabledButtonColor

        public java.awt.Color getDisabledButtonColor()
      • setDisabledButtonColor

        public final void setDisabledButtonColor​(int color)
      • setDisabledButtonColor

        public void setDisabledButtonColor​(java.awt.Color buttonColor)
      • setDisabledButtonColor

        public final void setDisabledButtonColor​(java.lang.String buttonColor)
      • getSpacing

        public int getSpacing()
      • setSpacing

        public void setSpacing​(int spacing)
      • setSpacing

        public void setSpacing​(java.lang.Number spacing)
      • getBuffer

        public int getBuffer()
      • setBuffer

        public void setBuffer​(int buffer)
      • getFill

        public boolean getFill()
      • setFill

        public void setFill​(boolean fill)
      • getHeadingToggles

        public boolean getHeadingToggles()
      • setHeadingToggles

        public void setHeadingToggles​(boolean headingToggles)
      • getExpandDuration

        public int getExpandDuration()
      • setExpandDuration

        public void setExpandDuration​(int expandDuration)
      • getExpandRate

        public int getExpandRate()
      • setExpandRate

        public void setExpandRate​(int expandRate)
      • headingChanged

        public void headingChanged​(Rollup rollup,
                                   Component previousHeading)
        Description copied from interface: RollupListener
        Called when a rollup's heading component changed.
        Parameters:
        rollup - The rollup whose heading changed.
        previousHeading - What the heading used to be.
      • contentChanged

        public void contentChanged​(Rollup rollup,
                                   Component previousContent)
        Description copied from interface: RollupListener
        Called when a rollup's content component changed.
        Parameters:
        rollup - The rollup that has new content.
        previousContent - What the content used to be.
      • expandedChanged

        public void expandedChanged​(Rollup rollup)
        Description copied from interface: RollupStateListener
        Called when a rollup's expanded state changed.
        Parameters:
        rollup - The rollup that did change.
      • collapsibleChanged

        public void collapsibleChanged​(Rollup rollup)
        Description copied from interface: RollupListener
        Called when a rollup's collapsible flag has changed.
        Parameters:
        rollup - The rollup that changed.