org.dspace.app.xmlui.wing.element
Class Cell

java.lang.Object
  extended by org.dspace.app.xmlui.wing.element.AbstractWingElement
      extended by org.dspace.app.xmlui.wing.element.Container
          extended by org.dspace.app.xmlui.wing.element.TextContainer
              extended by org.dspace.app.xmlui.wing.element.RichTextContainer
                  extended by org.dspace.app.xmlui.wing.element.Cell
All Implemented Interfaces:
StructuralElement, WingElement

public class Cell
extends RichTextContainer
implements StructuralElement


Field Summary
static String A_COLS
          The name of the cols attribute
static String A_ROLE
          The name of the role attribute
static String A_ROWS
          The name of the rows attribute
static String E_CELL
          The name of the cell element
static String ROLE_DATA
          The possible cell role types
static String ROLE_HEADER
           
static String[] ROLES
          All the possible cell role types collected into one array
 
Fields inherited from class org.dspace.app.xmlui.wing.element.Container
contents
 
Fields inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement
context
 
Fields inherited from interface org.dspace.app.xmlui.wing.element.StructuralElement
A_ID, A_NAME, A_RENDER
 
Constructor Summary
protected Cell(WingContext context, String name, String role, int rows, int cols, String rend)
          Construct a new cell.
 
Method Summary
 void dispose()
          dispose
 void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces)
          Translate this element and all contained elements into SAX events.
 
Methods inherited from class org.dspace.app.xmlui.wing.element.RichTextContainer
addButton, addButton, addCheckBox, addCheckBox, addComposite, addComposite, addFigure, addFigure, addFile, addFile, addHidden, addHidden, addHighlight, addPassword, addPassword, addRadio, addRadio, addSelect, addSelect, addText, addText, addTextArea, addTextArea, addXref, addXref, addXref, addXref, addXref, addXref, addXref
 
Methods inherited from class org.dspace.app.xmlui.wing.element.TextContainer
addContent, addContent, addContent
 
Methods inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

E_CELL

public static final String E_CELL
The name of the cell element

See Also:
Constant Field Values

A_ROLE

public static final String A_ROLE
The name of the role attribute

See Also:
Constant Field Values

A_ROWS

public static final String A_ROWS
The name of the rows attribute

See Also:
Constant Field Values

A_COLS

public static final String A_COLS
The name of the cols attribute

See Also:
Constant Field Values

ROLE_DATA

public static final String ROLE_DATA
The possible cell role types

See Also:
Constant Field Values

ROLE_HEADER

public static final String ROLE_HEADER
See Also:
Constant Field Values

ROLES

public static final String[] ROLES
All the possible cell role types collected into one array

Constructor Detail

Cell

protected Cell(WingContext context,
               String name,
               String role,
               int rows,
               int cols,
               String rend)
        throws WingException
Construct a new cell.

Parameters:
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 cell carries, either header or data. See cell.ROLES
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.
rend - (May be null) a rendering hint used to override the default display of the element.
Throws:
WingException
Method Detail

toSAX

public void toSAX(ContentHandler contentHandler,
                  LexicalHandler lexicalHandler,
                  NamespaceSupport namespaces)
           throws SAXException
Translate this element and all contained elements into SAX events. The events should be routed to the contentHandler found in the WingContext.

Specified by:
toSAX in interface WingElement
Overrides:
toSAX in class Container
Parameters:
contentHandler - (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.
Throws:
SAXException

dispose

public void dispose()
dispose

Specified by:
dispose in interface WingElement
Overrides:
dispose in class Container


Copyright © 2012 DuraSpace. All Rights Reserved.