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 java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static UIGridLayout.Marker FREE
           
static java.lang.String USED
           
 
Constructor Summary
UIGridLayout()
           
 
Method Summary
 void encodeChildren(FacesContext context)
           
 void encodeChildrenOfComponent(FacesContext facesContext, UIComponent component)
           
 java.util.List<UIGridLayout.Row> ensureRows()
           
 java.lang.String getBorder()
           
 java.lang.String getCellspacing()
           
 int getColumnCount()
           
 LayoutTokens getColumnLayout()
           
 java.lang.String getColumns()
           
 java.lang.String getFamily()
           
 java.lang.String getMargin()
           
 java.lang.String getMarginBottom()
           
 java.lang.String getMarginLeft()
           
 java.lang.String getMarginRight()
           
 java.lang.String getMarginTop()
           
 boolean getRendersChildren()
           
 LayoutTokens getRowLayout()
           
 java.lang.String getRows()
           
static int getSpanX(UIComponent component)
           
static int getSpanY(UIComponent component)
           
 boolean isIgnoreFree()
           
 void restoreState(FacesContext context, java.lang.Object savedState)
           
 java.lang.Object saveState(FacesContext context)
           
 void setBorder(java.lang.String border)
           
 void setCellspacing(java.lang.String cellspacing)
           
 void setColumns(java.lang.String columns)
           
 void setIgnoreFree(boolean ignoreFree)
           
 void setMargin(java.lang.String margin)
           
 void setMarginBottom(java.lang.String marginBottom)
           
 void setMarginLeft(java.lang.String marginLeft)
           
 void setMarginRight(java.lang.String marginRight)
           
 void setMarginTop(java.lang.String marginTop)
           
 void setRows(java.lang.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 java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

FREE

public static final UIGridLayout.Marker FREE

USED

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

UIGridLayout

public UIGridLayout()
Method Detail

getRowLayout

public LayoutTokens getRowLayout()

getColumnLayout

public LayoutTokens getColumnLayout()

getMarginTop

public java.lang.String getMarginTop()

getMarginRight

public java.lang.String getMarginRight()

getMarginBottom

public java.lang.String getMarginBottom()

getMarginLeft

public java.lang.String getMarginLeft()

getMargin

public java.lang.String getMargin()

getRows

public java.lang.String getRows()

getColumns

public java.lang.String getColumns()

getCellspacing

public java.lang.String getCellspacing()

getBorder

public java.lang.String getBorder()

setBorder

public void setBorder(java.lang.String border)

setCellspacing

public void setCellspacing(java.lang.String cellspacing)

setMargin

public void setMargin(java.lang.String margin)

setMarginTop

public void setMarginTop(java.lang.String marginTop)

setMarginRight

public void setMarginRight(java.lang.String marginRight)

setMarginBottom

public void setMarginBottom(java.lang.String marginBottom)

setMarginLeft

public void setMarginLeft(java.lang.String marginLeft)

setColumns

public void setColumns(java.lang.String columns)

setRows

public void setRows(java.lang.String rows)

saveState

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

restoreState

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

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class UIComponent

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class UIComponentBase

encodeChildren

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

encodeChildrenOfComponent

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

getColumnCount

public int getColumnCount()

ensureRows

public java.util.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-2013 The Apache Software Foundation. All Rights Reserved.