net.sourceforge.smile.component
Class UIGrid

java.lang.Object
  extended byjavax.faces.component.UIComponentBase
      extended byjavax.faces.component.UIOutput
          extended byjavax.faces.component.UIPanel
              extended bynet.sourceforge.smile.component.UIGrid
All Implemented Interfaces:
RendererAttributes, RendererTypes, java.io.Serializable, javax.faces.component.UIComponent

public class UIGrid
extends javax.faces.component.UIPanel
implements RendererAttributes, RendererTypes

Layout manager that renders its children in a table of equal-sized cells. It is a combination of a UIPanel and a Grid renderer.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface net.sourceforge.smile.renderkit.RendererAttributes
ATTR_BUNDLE, ATTR_COLUMN_CLASSES, ATTR_COLUMNS, ATTR_COMMAND_CLASS, ATTR_CONVERTER, ATTR_DATE_STYLE, ATTR_FOOTER_CLASS, ATTR_FOR, ATTR_FORMAT_PATTERN, ATTR_HEADER_CLASS, ATTR_HREF, ATTR_INPUT_CLASS, ATTR_KEY, ATTR_LABEL, ATTR_LAYOUT, ATTR_NUMBER_STYLE, ATTR_OUTPUT_CLASS, ATTR_REDISPLAY, ATTR_ROW_CLASSES, ATTR_SELECT_BOOLEAN_CLASS, ATTR_SIZE, ATTR_SRC, ATTR_TIME_STYLE, ATTR_TIMEZONE, ATTR_TYPE, ATTR_VAR
 
Fields inherited from interface net.sourceforge.smile.renderkit.RendererTypes
RENDERER_BUTTON, RENDERER_CHECKBOX, RENDERER_DATA, RENDERER_ERRORS, RENDERER_FORM, RENDERER_GRID, RENDERER_GROUP, RENDERER_HIDDEN, RENDERER_HYPERLINK, RENDERER_IMAGE, RENDERER_LABEL, RENDERER_LISTBOX, RENDERER_MENU, RENDERER_MESSAGE, RENDERER_RADIO, RENDERER_SECRET, RENDERER_TEXT, RENDERER_TEXTAREA
 
Fields inherited from interface javax.faces.component.UIComponent
SEPARATOR_CHAR
 
Constructor Summary
UIGrid()
          Creates a new UIGrid, with 1 column.
UIGrid(int columns)
          Creates a new UIGrid, with the specified number of columns.
 
Method Summary
 java.lang.String getColumnClasses()
          Returns a comma-seperated list of classes the are being used to render the columns of the grid.
 long getColumns()
          Returns the number of columns in this layout.
 java.lang.String getFooterClass()
           
 java.lang.String getHeaderClass()
           
 java.lang.String getRowClasses()
          Returns the css class the rows will be rendered in, as a comma-seperated list.
 void setColumnClasses(java.lang.String classes)
          Returns a
 void setColumns(long columns)
          Sets the number of columns this layout should use.
 void setFooterClass(java.lang.String footerClass)
           
 void setHeaderClass(java.lang.String headerClass)
           
 void setRowClasses(java.lang.String classes)
          Sets the row classes to use.
 
Methods inherited from class javax.faces.component.UIPanel
getRendersChildren
 
Methods inherited from class javax.faces.component.UIOutput
currentValue, getValue, getValueRef, setValue, setValueRef
 
Methods inherited from class javax.faces.component.UIComponentBase
addChild, addChild, addFacet, addValidator, broadcast, clearChildren, clearFacets, clearValidators, containsChild, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttribute, getAttributeNames, getChild, getChildCount, getChildren, getClientId, getComponentId, getConverter, getFacet, getFacetNames, getFacetsAndChildren, getParent, getRendererType, getRendersSelf, getValidators, isRendered, isValid, processDecodes, processReconstitutes, processUpdates, processValidators, reconstitute, removeChild, removeChild, removeFacet, removeValidator, setAttribute, setComponentId, setConverter, setParent, setRendered, setRendererType, setValid, updateModel, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIGrid

public UIGrid()
Creates a new UIGrid, with 1 column.


UIGrid

public UIGrid(int columns)
Creates a new UIGrid, with the specified number of columns.

Method Detail

getColumns

public long getColumns()
Returns the number of columns in this layout.

Returns:
the number of columns

setColumns

public void setColumns(long columns)
Sets the number of columns this layout should use.

Parameters:
columns - the number of columns to render.

getRowClasses

public java.lang.String getRowClasses()
Returns the css class the rows will be rendered in, as a comma-seperated list.

Returns:

setRowClasses

public void setRowClasses(java.lang.String classes)
Sets the row classes to use. The value should be a comma-seperated list of css classes that will be used for rendering. If more rows are rendered than available in the list the classes will be reused from the start of the list. So if you want alternating classes for even and odd rows, just specify 2 classes.

Parameters:
classes - comma-seperated list of css classes.

getColumnClasses

public java.lang.String getColumnClasses()
Returns a comma-seperated list of classes the are being used to render the columns of the grid.

Returns:
comma-seperated list of css classes.

setColumnClasses

public void setColumnClasses(java.lang.String classes)
Returns a

Parameters:
classes -

getHeaderClass

public java.lang.String getHeaderClass()

setHeaderClass

public void setHeaderClass(java.lang.String headerClass)

getFooterClass

public java.lang.String getFooterClass()

setFooterClass

public void setFooterClass(java.lang.String footerClass)