Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nextapp.echoservlet.ui
Class TriCellTable  view TriCellTable download TriCellTable.java

java.lang.Object
  extended bynextapp.echoservlet.html.Element
      extended bynextapp.echoservlet.ui.TriCellTable
All Implemented Interfaces:
nextapp.echoservlet.html.Renderable, java.io.Serializable

class TriCellTable
extends nextapp.echoservlet.html.Element

Renders an HTML table that has two or three "container" cells and independently settable margins between them. These tables are useful for rendering buttons that have two or three elements (images, text labels, and state indicators). This class supports all possible permutations for placement of each of the two or three contained components.


Field Summary
(package private) static int BOTTOM_TOP
           
(package private) static int INVERTED
           
(package private) static int LEFT_RIGHT
           
private  nextapp.echoservlet.html.Element[] marginTds
           
(package private) static int RIGHT_LEFT
           
private  nextapp.echoservlet.html.Element[] tds
           
(package private) static int TOP_BOTTOM
           
(package private) static int VERTICAL
           
 
Fields inherited from class nextapp.echoservlet.html.Element
 
Fields inherited from interface nextapp.echoservlet.html.Renderable
INDENT_STRING
 
Constructor Summary
private TriCellTable()
          This constructor is called by the non-private constructors to set up common properties.
(package private) TriCellTable(nextapp.echoservlet.Connection conn, int orientation0_1, int margin0_1)
          Creates a two-celled TriCellTable.
(package private) TriCellTable(nextapp.echoservlet.Connection conn, int orientation0_1, int margin0_1, int orientation01_2, int margin01_2)
          Creates a three-celled TriCellTable.
 
Method Summary
private  void addColumn(nextapp.echoservlet.html.Element tr, nextapp.echoservlet.html.Element td)
          Adds an cell element to a table row.
 void addGlobalAttribute(java.lang.String name, java.lang.String value)
          Adds an attribute to every table cell in the rendered table.
private  void addRow(nextapp.echoservlet.html.Element td)
          Adds a row containing a single column element to a table.
(package private)  nextapp.echoservlet.html.Element getMarginTdElement(int index)
          Returns the specified margin element.
(package private) static int getOrientation(int horizontalOrientation, int verticalOrientation)
          Translates horizontal and vertical orientation constants from the nextapp.echo.EchoContstants class into the constants used by TriCellTable: LEFT_RIGHT RIGHT_LEFT TOP_BOTTOM BOTTOM_TOP
(package private)  nextapp.echoservlet.html.Element getTdElement(int index)
          Returns the specified container element.
 
Methods inherited from class nextapp.echoservlet.html.Element
add, add, addAttribute, addAttribute, addAttribute, addElement, addElement, addElementContent, addElementContent, addHtml, addHtml, addText, addText, addText, getAttribute, getName, indexOf, isSticky, render, render, setClosingTagRequired, setSticky, setWhitespaceRelevant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVERTED

static final int INVERTED
See Also:
Constant Field Values

VERTICAL

static final int VERTICAL
See Also:
Constant Field Values

LEFT_RIGHT

static final int LEFT_RIGHT
See Also:
Constant Field Values

RIGHT_LEFT

static final int RIGHT_LEFT
See Also:
Constant Field Values

TOP_BOTTOM

static final int TOP_BOTTOM
See Also:
Constant Field Values

BOTTOM_TOP

static final int BOTTOM_TOP
See Also:
Constant Field Values

tds

private nextapp.echoservlet.html.Element[] tds

marginTds

private nextapp.echoservlet.html.Element[] marginTds
Constructor Detail

TriCellTable

private TriCellTable()
This constructor is called by the non-private constructors to set up common properties.


TriCellTable

TriCellTable(nextapp.echoservlet.Connection conn,
             int orientation0_1,
             int margin0_1)
Creates a two-celled TriCellTable.


TriCellTable

TriCellTable(nextapp.echoservlet.Connection conn,
             int orientation0_1,
             int margin0_1,
             int orientation01_2,
             int margin01_2)
Creates a three-celled TriCellTable.

Method Detail

getOrientation

static int getOrientation(int horizontalOrientation,
                          int verticalOrientation)
Translates horizontal and vertical orientation constants from the nextapp.echo.EchoContstants class into the constants used by TriCellTable:
  • LEFT_RIGHT
  • RIGHT_LEFT
  • TOP_BOTTOM
  • BOTTOM_TOP


addColumn

private void addColumn(nextapp.echoservlet.html.Element tr,
                       nextapp.echoservlet.html.Element td)
Adds an cell element to a table row. The element will not be added if null is provided for the value of td.


addGlobalAttribute

public void addGlobalAttribute(java.lang.String name,
                               java.lang.String value)
Adds an attribute to every table cell in the rendered table.


addRow

private void addRow(nextapp.echoservlet.html.Element td)
Adds a row containing a single column element to a table. The row will not be added if td is null.


getTdElement

nextapp.echoservlet.html.Element getTdElement(int index)
Returns the specified container element.


getMarginTdElement

nextapp.echoservlet.html.Element getMarginTdElement(int index)
Returns the specified margin element.