|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.templateutil.components.HTMLComponent
wt.templateutil.components.HTMLTableComponent
wt.templateutil.table.HTMLTable
The base class that generates tables from implementations of
TableModels. It works with the HTMLTableColumns and an implementation
of an HTMLTableColumnModel to control the generation of the HTML table.
There are several ways to customize and/or configure the HTMLTable to
control the presentation of the table that is generated by the
HTMLTable. The following three ways are currently available:
Field Summary | |
private String |
cellSelector
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
private HTMLComponentFactory |
componentFactory
Deprecated. |
protected static String |
DEFAULT_TABLE_CELL_ID_VALUE
Deprecated. |
private boolean |
displayHeader
Deprecated. |
private static boolean |
encodeValuesForHTMLDisplay
Deprecated. |
protected Properties |
formData
Deprecated. |
private String |
headerSelector
Deprecated. |
private Locale |
locale
Deprecated. |
private String |
mode
Deprecated. |
private OutputStream |
outputStream
Deprecated. |
private static String |
RESOURCE
Deprecated. |
private boolean |
showDirect
Deprecated. |
private HTMLTableColumnModel |
tableColumnModel
Deprecated. |
protected String |
tableContext
Deprecated. |
static String |
TABLECONTEXT
Deprecated. |
private TableModel |
tableModel
Deprecated. |
private static boolean |
VERBOSE
Deprecated. |
Fields inherited from class wt.templateutil.components.HTMLTableComponent |
ALIGN, BGCOLOR, BORDER, CELLPADDING, CELLSPACING, HEIGHT, HSPACE, TABLE_ALIGN, TABLE_BGCOLOR, TABLE_BORDER, TABLE_CELLPADDING, TABLE_CELLSPACING, TABLE_HEIGHT, TABLE_HSPACE, TABLE_VSPACE, TABLE_WIDTH, TAG, VSPACE, WIDTH |
Fields inherited from class wt.templateutil.components.HTMLComponent |
CLASS, COMPONENT_ID, COMPONENT_ID_SEPARATOR, CREATE, DEFAULT_SERVICE_NAME, DEFAULTS_ONLY, EMPTY_STRING, ID, ID_US_ENGLISH_LOCALE, NAME, NULLVALUE, PRINT_TAG_ATTR, SERVICENAME, UPDATE, VIEW |
Constructor Summary | |
HTMLTable()
Deprecated. |
|
HTMLTable(int numRows,
int numColumns)
Deprecated. |
|
HTMLTable(TableModel tableModel)
Deprecated. |
|
HTMLTable(TableModel tableModel,
HTMLTableColumnModel htmlTableColumnModel)
Deprecated. |
|
HTMLTable(Vector rowData,
Vector columnNames,
Locale locale)
Deprecated. |
Method Summary | |
String |
add2Table(String currentTableStr,
String additionalStr)
Deprecated. |
void |
addColumn(HTMLTableColumn newColumn)
Deprecated. |
void |
addNewColumn()
Deprecated. |
void |
createDefaultColumnsFromModel()
Deprecated. |
HTMLComponent |
getCellComponent(int rowNumber,
int column,
Properties props)
Deprecated. |
String |
getCellSelector()
Deprecated. |
HTMLTableColumn |
getColumn(int index)
Deprecated. |
HTMLTableColumn |
getColumn(Object identifier)
Deprecated. |
Class |
getColumnClass(int columnIndex)
Deprecated. |
int |
getColumnCount()
Deprecated. |
int |
getColumnIndex(Object columnIdentifier)
Deprecated. |
String |
getColumnName(int columnIndex)
Deprecated. |
Enumeration |
getColumns()
Deprecated. |
HTMLComponentFactory |
getComponentFactory()
Deprecated. |
Properties |
getFormData()
Deprecated. |
String |
getHeaderSelector()
Deprecated. |
Locale |
getLocale()
Deprecated. |
String |
getMode()
Deprecated. |
OutputStream |
getOutputStream()
Deprecated. |
int |
getRowCount()
Deprecated. |
String |
getTableCellID()
Deprecated. |
HTMLTableColumnModel |
getTableColumnModel()
Deprecated. |
String |
getTableContext()
Deprecated. |
String |
getTableHeaderCellID()
Deprecated. |
TableModel |
getTableModel()
Deprecated. |
protected String |
getUniqueTableCellTrailId(int row,
int col)
Deprecated. |
Object |
getValueAt(int rowIndex,
int columnIndex)
Deprecated. |
boolean |
isDisplayHeader()
Deprecated. |
boolean |
isShowDirect()
Deprecated. |
void |
moveColumn(int oldIndex,
int newIndex)
Deprecated. |
String |
printHeaders(Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. |
String |
printRow(int rowNumber,
Object value,
Properties formData)
Deprecated. |
void |
removeColumn(int index)
Deprecated. |
void |
setCellSelector(String a_CellSelector)
Deprecated. |
void |
setComponentFactory(HTMLComponentFactory a_ComponentFactory)
Deprecated. |
void |
setDisplayHeader(boolean a_DisplayHeader)
Deprecated. |
void |
setFormData(Properties newFormData)
Deprecated. |
void |
setHeaderSelector(String a_HeaderSelector)
Deprecated. |
void |
setLocale(Locale a_Locale)
Deprecated. |
void |
setMode(String a_Mode)
Deprecated. |
void |
setOutputStream(OutputStream a_OutputStream)
Deprecated. |
void |
setShowDirect(boolean a_ShowDirect)
Deprecated. |
void |
setTableColumnModel(HTMLTableColumnModel a_TableColumnModel)
Deprecated. |
void |
setTableContext(String newTableContext)
Deprecated. |
void |
setTableModel(TableModel a_TableModel)
Deprecated. |
String |
show(Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. |
void |
show(Properties formData)
Deprecated. |
String |
showSubComponents(Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. Returns a string that is the contcatenation of the result of calling show() on all the associated subComponents sequentially. |
Methods inherited from class wt.templateutil.components.HTMLTableComponent |
getTag, init, setTagListArray |
Methods inherited from class wt.templateutil.components.HTMLComponent |
appendID, appendID, appendToID, appendToID, createIDForComponent, endComponent, getHtmlComponents, getID, getIdProp, getName, getOID, getPrintWriter, getRealValue, getServiceName, getState, getTagID, getTagIDKey, getTagList, getTagSettings, getURLFactory, insertID, insertID, isInheritStyle, isPrintTagAttributes, isUseDefaultsOnly, main, putTagID, putTagID, removeID, removeTagID, setHtmlComponents, setID, setInheritStyle, setName, setPrintTagAttributes, setServiceName, setState, setTag, setTagList, setTagListDefaults, setTagSettings, setTagValue, setUseDefaultsOnly, startComponent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private OutputStream outputStream
private static boolean VERBOSE
private Locale locale
private String mode
private String cellSelector
private String headerSelector
private boolean showDirect
private boolean displayHeader
private TableModel tableModel
private HTMLTableColumnModel tableColumnModel
private HTMLComponentFactory componentFactory
private static boolean encodeValuesForHTMLDisplay
protected Properties formData
protected String tableContext
public static final String TABLECONTEXT
protected static final String DEFAULT_TABLE_CELL_ID_VALUE
Constructor Detail |
public HTMLTable(int numRows, int numColumns)
numRows
- numColumns
- public HTMLTable(TableModel tableModel)
tableModel
- public HTMLTable(TableModel tableModel, HTMLTableColumnModel htmlTableColumnModel)
tableModel
- htmlTableColumnModel
- public HTMLTable(Vector rowData, Vector columnNames, Locale locale)
rowData
- columnNames
- locale
- public HTMLTable()
Method Detail |
public OutputStream getOutputStream()
public void setOutputStream(OutputStream a_OutputStream)
a_OutputStream
- public Locale getLocale()
public void setLocale(Locale a_Locale)
a_Locale
- public String getMode()
public void setMode(String a_Mode)
a_Mode
- public String getCellSelector()
public void setCellSelector(String a_CellSelector)
a_CellSelector
- public String getHeaderSelector()
public void setHeaderSelector(String a_HeaderSelector)
a_HeaderSelector
- public boolean isShowDirect()
public void setShowDirect(boolean a_ShowDirect)
a_ShowDirect
- public boolean isDisplayHeader()
public void setDisplayHeader(boolean a_DisplayHeader)
a_DisplayHeader
- public TableModel getTableModel()
public void setTableModel(TableModel a_TableModel)
a_TableModel
- public HTMLTableColumnModel getTableColumnModel()
public void setTableColumnModel(HTMLTableColumnModel a_TableColumnModel)
a_TableColumnModel
- public HTMLComponentFactory getComponentFactory()
public void setComponentFactory(HTMLComponentFactory a_ComponentFactory)
a_ComponentFactory
- public Class getColumnClass(int columnIndex)
columnIndex
-
public String getColumnName(int columnIndex)
columnIndex
-
public int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- columnIndex
-
public String printRow(int rowNumber, Object value, Properties formData)
rowNumber
- value
- formData
-
public void show(Properties formData)
formData
- public void addNewColumn()
public String printHeaders(Object value, Properties formData, OutputStream os, Locale locale)
value
- formData
- os
- locale
-
public void addColumn(HTMLTableColumn newColumn)
addColumn
in interface HTMLTableColumnModel
newColumn
- public HTMLTableColumn getColumn(int index)
getColumn
in interface HTMLTableColumnModel
index
-
public HTMLTableColumn getColumn(Object identifier)
getColumn
in interface HTMLTableColumnModel
identifier
-
public int getColumnCount()
getColumnCount
in interface HTMLTableColumnModel
public void moveColumn(int oldIndex, int newIndex)
moveColumn
in interface HTMLTableColumnModel
oldIndex
- newIndex
- public void removeColumn(int index)
removeColumn
in interface HTMLTableColumnModel
index
- public int getColumnIndex(Object columnIdentifier)
getColumnIndex
in interface HTMLTableColumnModel
columnIdentifier
-
public Enumeration getColumns()
getColumns
in interface HTMLTableColumnModel
public void createDefaultColumnsFromModel()
public String showSubComponents(Object value, Properties formData, OutputStream os, Locale locale)
HTMLComponent
showSubComponents
in class HTMLComponent
value
- formData
- os
- locale
-
public HTMLComponent getCellComponent(int rowNumber, int column, Properties props)
public String show(Object value, Properties formData, OutputStream os, Locale locale)
show
in class HTMLComponent
value
- formData
- os
- locale
-
public Properties getFormData()
public void setFormData(Properties newFormData)
public String add2Table(String currentTableStr, String additionalStr)
public String getTableContext()
public void setTableContext(String newTableContext)
public String getTableHeaderCellID()
public String getTableCellID()
protected String getUniqueTableCellTrailId(int row, int col)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |