Package snap.view

Class ColViewProxy<T extends View>

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
BorderViewProxy

public class ColViewProxy<T extends View> extends ParentViewProxy<T>
A ViewProxy subclass to layout child views vertically, from top to bottom.
  • Constructor Details

    • ColViewProxy

      public ColViewProxy(View aParent)
      Constructor for given parent view.
  • Method Details

    • getPrefWidthImpl

      protected double getPrefWidthImpl(double aH)
      Returns preferred width of given parent proxy using ColView layout.
      Specified by:
      getPrefWidthImpl in class ParentViewProxy<T extends View>
    • getPrefHeightImpl

      protected double getPrefHeightImpl(double aW)
      Returns preferred height of given parent proxy using ColView layout.
      Specified by:
      getPrefHeightImpl in class ParentViewProxy<T extends View>
    • layoutProxy

      public void layoutProxy()
      Performs layout for given ViewProxy.
      Specified by:
      layoutProxy in class ParentViewProxy<T extends View>