Package snap.view

Class DrawerView

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable

public class DrawerView extends ParentView
A View that slides in/out of another view.
  • Field Details

  • Constructor Details

    • DrawerView

      public DrawerView()
      Constructor.
    • DrawerView

      public DrawerView(View aView)
      Constructor for given view.
  • Method Details

    • getContent

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

      public void setContent(View aView)
      Sets the box content.
    • getTabButton

      public Button getTabButton()
      Returns the tab button.
    • getTabLabel

      public Label getTabLabel()
      Returns the tab label.
    • getDrawerLabel

      public Label getDrawerLabel()
      Returns the drawer label.
    • getCloseBox

      protected View getCloseBox()
      Returns the close box view.
    • setCloseBoxHighlight

      protected void setCloseBoxHighlight(boolean aValue)
      Sets the CloseBox highlight.
    • showTabButton

      public void showTabButton(ParentView aView)
      Shows the tab button in given view.
    • getAttachView

      public ParentView getAttachView()
      Returns the view to attach to.
    • show

      public void show()
      Shows the drawer.
    • hide

      public void hide()
      Hides the drawer.
    • explode

      public void explode()
      Hides the drawer.
    • hideDrawerDone

      protected void hideDrawerDone()
      Cleanup when hideDrawer animation done.
    • toggleDrawer

      public void toggleDrawer()
      Shows/Hides DrawerView.
    • isMaximized

      public boolean isMaximized()
      Returns whether drawer is maximized.
    • setMaximized

      public void setMaximized(boolean aValue)
      Resize the drawer to maximum size for view.
    • processEvent

      protected void processEvent(ViewEvent anEvent)
      ProcessEvent.
      Overrides:
      processEvent in class View
    • getPrefWidthImpl

      protected double getPrefWidthImpl(double aH)
      Override to return preferred width of content.
      Overrides:
      getPrefWidthImpl in class View
    • getPrefHeightImpl

      protected double getPrefHeightImpl(double aW)
      Override to return preferred height of content.
      Overrides:
      getPrefHeightImpl in class View
    • layoutImpl

      protected void layoutImpl()
      Override to layout content.
      Overrides:
      layoutImpl in class ParentView
    • getPropValue

      public Object getPropValue(String aPropName)
      Override to handle DrawerY.
      Overrides:
      getPropValue in class ParentView
    • setPropValue

      public void setPropValue(String aPropName, Object aValue)
      Override to handle DrawerY.
      Overrides:
      setPropValue in class ParentView