org.apache.myfaces.tobago.component
Class UIGridLayout

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.tobago.component.UILayout
              extended by org.apache.myfaces.tobago.component.UIGridLayout
All Implemented Interfaces:
StateHolder

public class UIGridLayout
extends UILayout


Nested Class Summary
static class UIGridLayout.Marker
           
static class UIGridLayout.Row
           
 
Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static UIGridLayout.Marker FREE
           
static String USED
           
 
Constructor Summary
UIGridLayout()
           
 
Method Summary
 void encodeChildren(FacesContext context)
           
 void encodeChildrenOfComponent(FacesContext facesContext, UIComponent component)
           
 List<UIGridLayout.Row> ensureRows()
           
 String getBorder()
           
 String getCellspacing()
           
 int getColumnCount()
           
 LayoutTokens getColumnLayout()
           
 String getColumns()
           
 String getFamily()
           
 String getMargin()
           
 String getMarginBottom()
           
 String getMarginLeft()
           
 String getMarginRight()
           
 String getMarginTop()
           
 boolean getRendersChildren()
           
 LayoutTokens getRowLayout()
           
 String getRows()
           
static int getSpanX(UIComponent component)
           
static int getSpanY(UIComponent component)
           
 boolean isIgnoreFree()
           
 void restoreState(FacesContext context, Object savedState)
           
 Object saveState(FacesContext context)
           
 void setBorder(String border)
           
 void setCellspacing(String cellspacing)
           
 void setColumns(String columns)
           
 void setIgnoreFree(boolean ignoreFree)
           
 void setMargin(String margin)
           
 void setMarginBottom(String marginBottom)
           
 void setMarginLeft(String marginLeft)
           
 void setMarginRight(String marginRight)
           
 void setMarginTop(String marginTop)
           
 void setRows(String rows)
           
 
Methods inherited from class org.apache.myfaces.tobago.component.UILayout
getLayout, layoutBegin, prepareDimension
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values

FREE

public static final UIGridLayout.Marker FREE

USED

public static final String USED
See Also:
Constant Field Values
Constructor Detail

UIGridLayout

public UIGridLayout()
Method Detail

getRowLayout

public LayoutTokens getRowLayout()

getColumnLayout

public LayoutTokens getColumnLayout()

getMarginTop

public String getMarginTop()

getMarginRight

public String getMarginRight()

getMarginBottom

public String getMarginBottom()

getMarginLeft

public String getMarginLeft()

getMargin

public String getMargin()

getRows

public String getRows()

getColumns

public String getColumns()

getCellspacing

public String getCellspacing()

getBorder

public String getBorder()

setBorder

public void setBorder(String border)

setCellspacing

public void setCellspacing(String cellspacing)

setMargin

public void setMargin(String margin)

setMarginTop

public void setMarginTop(String marginTop)

setMarginRight

public void setMarginRight(String marginRight)

setMarginBottom

public void setMarginBottom(String marginBottom)

setMarginLeft

public void setMarginLeft(String marginLeft)

setColumns

public void setColumns(String columns)

setRows

public void setRows(String rows)

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class UIComponentBase

restoreState

public void restoreState(FacesContext context,
                         Object savedState)
Specified by:
restoreState in interface StateHolder
Overrides:
restoreState in class UIComponentBase

getFamily

public String getFamily()
Specified by:
getFamily in class UIComponent

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class UIComponentBase

encodeChildren

public void encodeChildren(FacesContext context)
                    throws IOException
Overrides:
encodeChildren in class UIComponentBase
Throws:
IOException

encodeChildrenOfComponent

public void encodeChildrenOfComponent(FacesContext facesContext,
                                      UIComponent component)
                               throws IOException
Overrides:
encodeChildrenOfComponent in class UILayout
Throws:
IOException

getColumnCount

public int getColumnCount()

ensureRows

public List<UIGridLayout.Row> ensureRows()

getSpanX

public static int getSpanX(UIComponent component)

getSpanY

public static int getSpanY(UIComponent component)

isIgnoreFree

public boolean isIgnoreFree()

setIgnoreFree

public void setIgnoreFree(boolean ignoreFree)


Copyright © 2002-2008 Apache Software Foundation. All Rights Reserved.