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.
    • getTopScroll

      protected Scroller getTopScroll()
      Returns the top Scroller.
    • getTopScrollRow

      public RowView getTopScrollRow()
      Returns the view that holds the TopScroll scroller view and corner view(s).
    • getTopScrollCol

      public ColView getTopScrollCol()
      Returns the view that holds the TopScrollRow and a divider line view.
    • getLeftView

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

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

      protected Scroller getLeftScroll()
      Returns the left Scroller.
    • getLeftScrollCol

      public ColView getLeftScrollCol()
      Returns the view that holds the LeftScroll scroller view and CornerSW.
    • getLeftScrollRow

      public RowView getLeftScrollRow()
      Returns the view that holds the LeftScrollCol and divider line.
    • getCornerNE

      public BoxView getCornerNE()
      Returns the Corner view (NE).
    • isShowCornerNE

      public boolean isShowCornerNE()
      Returns whether NE Corner view is showing (true when TopView set and ScrollView.VBarShowing).
    • setShowCornerNE

      protected void setShowCornerNE(boolean aValue)
      Sets whether NE Corner view is showing (true when TopView set and ScrollView.VBarShowing).
    • getCornerNW

      public BoxView getCornerNW()
      Returns the Corner view (NW).
    • isShowCornerNW

      public boolean isShowCornerNW()
      Returns whether NW Corner view is showing (true when TopView set and LeftView set).
    • setShowCornerNW

      protected void setShowCornerNW(boolean aValue)
      Sets whether NW Corner view is showing (true when TopView set and LeftView set).
    • getCornerSW

      public BoxView getCornerSW()
      Returns the Corner view (SW).
    • isShowCornerSW

      public boolean isShowCornerSW()
      Returns whether SW Corner view is showing (true when LeftView set and ScrollView.HBarShowing).
    • setShowCornerSW

      protected void setShowCornerSW(boolean aValue)
      Sets whether NW Corner view is showing (true when LeftView set and ScrollView.HBarShowing).
    • 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