Class ExpanderSkin

    • Constructor Detail

      • ExpanderSkin

        public ExpanderSkin()
    • 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 ContainerSkin
        Parameters:
        component - The component to which the skin is being attached.
      • titleChanged

        public void titleChanged​(Expander expander,
                                 java.lang.String previousTitle)
        Description copied from interface: ExpanderListener
        Called when an expander's title has changed.
        Specified by:
        titleChanged in interface ExpanderListener
        Parameters:
        expander - The expander that has changed.
        previousTitle - The previous title for the expander.
      • collapsibleChanged

        public void collapsibleChanged​(Expander expander)
        Description copied from interface: ExpanderListener
        Called when an expander's collapsible flag has changed.
        Specified by:
        collapsibleChanged in interface ExpanderListener
        Parameters:
        expander - The expander that has changed.
      • previewExpandedChange

        public Vote previewExpandedChange​(Expander expander)
        Description copied from interface: ExpanderListener
        Called to preview an expanded change event.
        Specified by:
        previewExpandedChange in interface ExpanderListener
        Parameters:
        expander - The expander that is about to expand or collapse.
        Returns:
        The consensus vote as to whether to allow the change.
      • expandedChangeVetoed

        public void expandedChangeVetoed​(Expander expander,
                                         Vote reason)
        Description copied from interface: ExpanderListener
        Called when an expanded change event has been vetoed.
        Specified by:
        expandedChangeVetoed in interface ExpanderListener
        Parameters:
        expander - The expander that is not going to change.
        reason - The consensus vote that disallowed the change.
      • expandedChanged

        public void expandedChanged​(Expander expander)
        Description copied from interface: ExpanderListener
        Called when an expander's expanded state has changed.
        Specified by:
        expandedChanged in interface ExpanderListener
        Parameters:
        expander - The expander that has now expanded or collapsed.
      • contentChanged

        public void contentChanged​(Expander expander,
                                   Component previousContent)
        Description copied from interface: ExpanderListener
        Called when an expander's content component has changed.
        Specified by:
        contentChanged in interface ExpanderListener
        Parameters:
        expander - The expander that has changed content.
        previousContent - The previous content of the expander.