Class Rollup

  • All Implemented Interfaces:
    java.lang.Iterable<Component>, Sequence<Component>, ConstrainedVisual, Visual

    @DefaultProperty("content")
    public class Rollup
    extends Container
    Container that can be expanded or collapsed to respectively show or hide its content. A rollup has a heading component that is always visible, and when the user expands the rollup, its content component will be shown beneath the heading.
    • Constructor Detail

      • Rollup

        public Rollup()
      • Rollup

        public Rollup​(boolean expanded)
      • Rollup

        public Rollup​(Component content)
      • Rollup

        public Rollup​(boolean expanded,
                      Component content)
    • Method Detail

      • setHeading

        public void setHeading​(Component heading)
      • setContent

        public void setContent​(Component content)
      • isExpanded

        public boolean isExpanded()
      • setExpanded

        public void setExpanded​(boolean expanded)
      • isCollapsible

        public boolean isCollapsible()
      • setCollapsible

        public void setCollapsible​(boolean collapsible)
      • remove

        public Sequence<Component> remove​(int index,
                                          int count)
        Description copied from interface: Sequence
        Removes one or more items from the sequence.
        Specified by:
        remove in interface Sequence<Component>
        Overrides:
        remove in class Container
        Parameters:
        index - The starting index to remove.
        count - The number of items to remove, beginning with index.
        Returns:
        A sequence containing the items that were removed.