public class Row extends AbstractWingElement implements StructuralElement
| Modifier and Type | Field and Description |
|---|---|
static String |
A_ROLE
The name of the role attribute
|
static String |
E_ROW
The name of the row element
|
static String |
ROLE_DATA
The row (and cell) role types:
|
static String |
ROLE_HEADER |
static String[] |
ROLES
All the roles collected into one array
|
contextA_ID, A_NAME, A_RENDER| Modifier | Constructor and Description |
|---|---|
protected |
Row(WingContext context,
String name,
String role,
String rend)
Construct a new table row.
|
| Modifier and Type | Method and Description |
|---|---|
Cell |
addCell()
Add a new cell to the table.
|
Cell |
addCell(int rows,
int cols)
Add a new cell to the table.
|
Cell |
addCell(String role)
Add a new cell to the table.
|
Cell |
addCell(String name,
String role,
int rows,
int cols,
String rend)
Add a new cell to the table.
|
Cell |
addCell(String name,
String role,
String rend)
Add a new cell to the table.
|
void |
addCellContent(Message message)
Add a new cell to the table.
|
void |
addCellContent(String characters)
Add a new cell to the table.
|
void |
dispose()
dispose
|
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_ROW
public static final String A_ROLE
public static final String ROLE_DATA
public static final String ROLE_HEADER
public static final String[] ROLES
protected Row(WingContext context, String name, String role, 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 - (May be null) a local identifier used to differentiate the
element from its siblings.role - (May be null) determines 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 Cell addCell(String name, String role, int rows, int cols, String rend) throws WingException
name - (May be null) a local identifier used to differentiate the
element from its siblings.role - (May be null) determines what kind of information the cell
carries, either header or data. See cell.ROLESrows - (May be zero for no defined value) determines how many rows
does this cell span.cols - (May be zero for no defined value) determines how many columns
does this cell span.rend - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic Cell addCell(int rows, int cols) throws WingException
rows - (May be zero for no defined value) determines how many rows
does this cell span.cols - (May be zero for no defined value) determines how many columns
does this cell span.WingExceptionpublic Cell addCell(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) determines what kind of information the cell
carries, either header or data. See cell.ROLESrend - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic Cell addCell(String role) throws WingException
role - (May be null) determines what kind of information the cell
carries, either header or data. See cell.ROLESWingExceptionpublic Cell addCell() throws WingException
WingExceptionpublic void addCellContent(String characters) throws WingException
characters - (Required) Untranslated character data to be included.WingExceptionpublic void addCellContent(Message message) throws WingException
message - (Required) Key to the i18n catalogue to translate the content
into the language preferred by the user.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 © 2014 DuraSpace. All Rights Reserved.