Package snap.view

Class ScrollGroup

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable

public class ScrollGroup extends ParentView
A view that encapsulates multiple scroll views (center, top, left) and keeps them in sync to provide scroll headers.
  • Constructor Details

    • ScrollGroup

      public ScrollGroup()
      Creates a ScrollGroup.
    • ScrollGroup

      public ScrollGroup(View aView)
      Creates a ScrollGroup.
  • Method Details

    • getContent

      public View getContent()
      Returns the primary content.
    • setContent

      public void setContent(View aView)
      Sets the primary content.
    • getScrollView

      public ScrollView getScrollView()
      Returns the primary scroll view.
    • getTopView

      public View getTopView()
      Returns the top view.
    • setTopView

      public void setTopView(View aView)
      Sets the top view.
    • getTopScroller

      protected Scroller getTopScroller()
      Returns the top Scroller.
    • getLeftView

      public View getLeftView()
      Returns the left view.
    • setLeftView

      public void setLeftView(View aView)
      Sets the left view.
    • getLeftScroller

      protected Scroller getLeftScroller()
      Returns the left Scroller.
    • getPrefWidthImpl

      protected double getPrefWidthImpl(double aH)
      Calculates the preferred width.
      Overrides:
      getPrefWidthImpl in class View
    • getPrefHeightImpl

      protected double getPrefHeightImpl(double aW)
      Calculates the preferred height.
      Overrides:
      getPrefHeightImpl in class View
    • layoutImpl

      protected void layoutImpl()
      Override to layout children.
      Overrides:
      layoutImpl in class ParentView