org.apache.myfaces.custom.newspaper
Class AbstractHtmlNewspaperTable

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIData
              extended by javax.faces.component.html.HtmlDataTable
                  extended by org.apache.myfaces.custom.newspaper.AbstractHtmlNewspaperTable
All Implemented Interfaces:
javax.faces.component.NamingContainer, javax.faces.component.StateHolder, AlignProperty, DataProperties

public abstract class AbstractHtmlNewspaperTable
extends javax.faces.component.html.HtmlDataTable
implements AlignProperty, DataProperties

Model for a table in multiple balanced columns. The newspaperTable tag allows a long, narrow table to be wrapped so that it becomes a short, wide table. This allows more information to be shown on a single screen. This is commonly used to present checkboxes for a long list of items. A data table for rendering long skinny tables as short wide table by wrapping the table over a specified number of columns. Unless otherwise specified, all attributes accept static values or EL expressions.

Since:
1.1.7
Author:
Jesse Wilson

Field Summary
static String COMPONENT_TYPE
           
static String DEFAULT_RENDERER_TYPE
          the component's renderers and type
static String NEWSPAPER_COLUMNS_PROPERTY
          the property names
static String SPACER_FACET_NAME
           
 
Fields inherited from class javax.faces.component.UIData
COMPONENT_FAMILY
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
AbstractHtmlNewspaperTable()
           
 
Method Summary
abstract  int getNewspaperColumns()
          Set the number of columns the table will be divided over.
abstract  String getNewspaperOrientation()
          The orientation of the newspaper columns in the newspaper table - "horizontal" or "vertical".
 javax.faces.component.UIComponent getSpacer()
          Gets the spacer facet, between each pair of newspaper columns.
 void setSpacer(javax.faces.component.UIComponent spacer)
           
 
Methods inherited from class javax.faces.component.html.HtmlDataTable
encodeBegin, getBgcolor, getBorder, getCellpadding, getCellspacing, getColumnClasses, getDir, getFooterClass, getFrame, getHeaderClass, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRowClasses, getRules, getStyle, getStyleClass, getSummary, getTitle, getWidth, restoreState, saveState, setBgcolor, setBorder, setCellpadding, setCellspacing, setColumnClasses, setDir, setFooterClass, setFrame, setHeaderClass, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRowClasses, setRules, setStyle, setStyleClass, setSummary, setTitle, setWidth
 
Methods inherited from class javax.faces.component.UIData
broadcast, encodeEnd, getClientId, getFamily, getFirst, getFooter, getHeader, getRowCount, getRowData, getRowIndex, getRows, getValue, getVar, isRowAvailable, processDecodes, processUpdates, processValidators, queueEvent, setFirst, setFooter, setHeader, setRowIndex, setRows, setValue, setValueBinding, setVar
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.component.AlignProperty
getAlign
 
Methods inherited from interface org.apache.myfaces.component.DataProperties
getDatafld, getDataformatas, getDatasrc
 

Field Detail

DEFAULT_RENDERER_TYPE

public static final String DEFAULT_RENDERER_TYPE
the component's renderers and type

See Also:
Constant Field Values

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

NEWSPAPER_COLUMNS_PROPERTY

public static final String NEWSPAPER_COLUMNS_PROPERTY
the property names

See Also:
Constant Field Values

SPACER_FACET_NAME

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

AbstractHtmlNewspaperTable

public AbstractHtmlNewspaperTable()
Method Detail

getNewspaperColumns

public abstract int getNewspaperColumns()
Set the number of columns the table will be divided over. In other words, the number of columns to wrap the table over. Default: 1


getNewspaperOrientation

public abstract String getNewspaperOrientation()
The orientation of the newspaper columns in the newspaper table - "horizontal" or "vertical". Default: vertical


getSpacer

public javax.faces.component.UIComponent getSpacer()
Gets the spacer facet, between each pair of newspaper columns.


setSpacer

public void setSpacer(javax.faces.component.UIComponent spacer)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.