public class Table extends AbstractWingElement implements StructuralElement
| Modifier and Type | Field and Description |
|---|---|
static String |
A_COLS
The name of the cols attribute
|
static String |
A_ROWS
The name of the rows attribute
|
static String |
E_TABLE
The name of the table element
|
contextA_ID, A_NAME, A_RENDER| Modifier | Constructor and Description |
|---|---|
protected |
Table(WingContext context,
String name,
int rows,
int cols,
String rend)
Construct a new row.
|
| Modifier and Type | Method and Description |
|---|---|
Row |
addRow()
Add a new row to the table.
|
Row |
addRow(String role)
Add a new row to the table.
|
Row |
addRow(String name,
String role,
String rend)
Add a new row to the table.
|
void |
dispose()
dispose
|
Head |
setHead()
Set the head element which is the label associated with this table.
|
void |
setHead(Message message)
Set the head element which is the label associated with this table.
|
void |
setHead(String characters)
Set the head element which is the label associated with this table.
|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events.
|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_TABLE
public static final String A_ROWS
public static final String A_COLS
protected Table(WingContext context, String name, int rows, int cols, String rend) throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.name - (Required) a local identifier used to differentiate the
element from its siblings.rows - (Required) the number of rows in the table.cols - (Required) the number of columns in the table.rend - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic Head setHead() throws WingException
WingExceptionpublic void setHead(String characters) throws WingException
characters - (May be null) Unprocessed characters to be includedWingExceptionpublic void setHead(Message message) throws WingException
message - (Required) A key into the i18n catalogue for translation into
the user's preferred language.WingExceptionpublic Row addRow(String name, String role, String rend) throws WingException
name - (May be null) a local identifier used to differentiate the
element from its siblings.role - (May be null) determine what kind of information the row
carries, either header or data. See row.ROLESrend - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic Row addRow(String role) throws WingException
role - (May be null) determines what kind of information the row
carries, either header or data. See row.ROLESWingExceptionpublic Row addRow() throws WingException
WingExceptionpublic void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws SAXException
toSAX in interface WingElementcontentHandler - (Required) The registered contentHandler where SAX events
should be routed too.lexicalHandler - (Required) The registered lexicalHandler where lexical
events (such as CDATA, DTD, etc) should be routed too.namespaces - (Required) SAX Helper class to keep track of namespaces able
to determine the correct prefix for a given namespace URI.SAXExceptionpublic void dispose()
dispose in interface WingElementdispose in class AbstractWingElementCopyright © 2016 DuraSpace. All Rights Reserved.