org.yawlfoundation.yawl.resourcing.jsf.dynform
Class SubPanel

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by com.sun.rave.web.ui.component.PanelLayoutBase
              extended by com.sun.rave.web.ui.component.PanelLayout
                  extended by org.yawlfoundation.yawl.resourcing.jsf.dynform.SubPanel
All Implemented Interfaces:
Cloneable, javax.faces.component.StateHolder

public class SubPanel
extends com.sun.rave.web.ui.component.PanelLayout
implements Cloneable

a panel layout with a few extra members

Author:
Michael Adams Date: 26/02/2008

Field Summary
 
Fields inherited from class com.sun.rave.web.ui.component.PanelLayout
FLOW_LAYOUT, GRID_LAYOUT
 
Constructor Summary
SubPanel()
           
 
Method Summary
 void addOccursButton(com.sun.rave.web.ui.component.Button btn)
           
 int adjustTopForChoiceContainer(int top)
           
 void assignStyle(int maxLevel)
          Calculates the screen co-ords for this panel (relative to the entire form)
 SubPanel clone()
           
 int decTop(int amount)
           
 void enableOccursButtons(boolean enable)
           
 com.sun.rave.web.ui.component.Button getBtnMinus()
           
 com.sun.rave.web.ui.component.Button getBtnPlus()
           
 SubPanelController getController()
           
 int getHeight()
           
 String getName()
           
 int getTop()
           
 int getTop(javax.faces.component.UIComponent component)
           
 int getWidth()
           
 void incComponentTops(int top, int adjustment)
          reset the tops of all simple components lower than the top specified
 int incHeight(int amount)
           
 int incTop(int amount)
           
 boolean isChoicePanel()
           
 boolean isEmpty()
           
 void setBtnMinus(com.sun.rave.web.ui.component.Button btnMinus)
           
 void setBtnPlus(com.sun.rave.web.ui.component.Button btnPlus)
           
 void setContentTop(javax.faces.component.UIComponent component, int top)
           
 void setContentTops(DynFormComponentList content, int top)
           
 void setController(SubPanelController controller)
           
 void setHeight(int height)
           
 void setName(String name)
           
 void setTop(int top)
           
 void setWidth(int width)
           
 
Methods inherited from class com.sun.rave.web.ui.component.PanelLayout
getPanelLayout, setPanelLayout
 
Methods inherited from class com.sun.rave.web.ui.component.PanelLayoutBase
getFamily, getStyle, getStyleClass, isVisible, restoreState, saveState, setStyle, setStyleClass, setVisible
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubPanel

public SubPanel()
Method Detail

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getTop

public int getTop()

setTop

public void setTop(int top)

getName

public String getName()

setName

public void setName(String name)

getBtnPlus

public com.sun.rave.web.ui.component.Button getBtnPlus()

setBtnPlus

public void setBtnPlus(com.sun.rave.web.ui.component.Button btnPlus)

getBtnMinus

public com.sun.rave.web.ui.component.Button getBtnMinus()

setBtnMinus

public void setBtnMinus(com.sun.rave.web.ui.component.Button btnMinus)

getController

public SubPanelController getController()

setController

public void setController(SubPanelController controller)

isChoicePanel

public boolean isChoicePanel()

isEmpty

public boolean isEmpty()

assignStyle

public void assignStyle(int maxLevel)
Calculates the screen co-ords for this panel (relative to the entire form)

Parameters:
maxLevel - the highest depth level of all panels on this form

addOccursButton

public void addOccursButton(com.sun.rave.web.ui.component.Button btn)

clone

public SubPanel clone()
Overrides:
clone in class Object

incTop

public int incTop(int amount)

decTop

public int decTop(int amount)

incHeight

public int incHeight(int amount)

enableOccursButtons

public void enableOccursButtons(boolean enable)

getTop

public int getTop(javax.faces.component.UIComponent component)

setContentTops

public void setContentTops(DynFormComponentList content,
                           int top)

setContentTop

public void setContentTop(javax.faces.component.UIComponent component,
                          int top)

adjustTopForChoiceContainer

public int adjustTopForChoiceContainer(int top)

incComponentTops

public void incComponentTops(int top,
                             int adjustment)
reset the tops of all simple components lower than the top specified

Parameters:
top - the y-coord below which components should be moved down
adjustment - how much to move them down by


Copyright © 2004-2012 The YAWL Foundation.