wheel.components
Class TableBlock

java.lang.Object
  extended by wheel.components.Component
      extended by wheel.components.RenderableComponent
          extended by wheel.components.Block
              extended by wheel.components.TableBlock
All Implemented Interfaces:
IContainer

public class TableBlock
extends Block

A special case of a Block component that is used internally inside a Table-component. The reason for this is to control the use of tags that can be used only inside a Table.

Author:
Henri Frilund

Method Summary
 Any col()
          Adds a col-element to a surrounding TableBlock-component.
 TableBlock id(java.lang.String componentId)
          Changes the componentId.
 TableBlock renderHint(java.lang.CharSequence renderHint)
          Adds a rendering hint to this component.
 TableRow tr()
          Adds a tr-element (a row) the a surrounding TableBlock-element.
 
Methods inherited from class wheel.components.Block
_render, defaultTagName
 
Methods inherited from class wheel.components.RenderableComponent
_classReferenceFromHints, _clear, _getRenderAfterMe, _getRenderBeforeMe, _renderActions, _renderClassReferenceFromHints, _renderTagStart, _renderXhtmlAttributes, addRenderAfter, addRenderBefore, config, defaultDomEvent, getTagName, renderComponent, toString
 
Methods inherited from class wheel.components.Component
_applyFormat, _getAction, _getActions, _getChildren, _getForm, _getRenderableChildren, _getRenderHints, _getTopLevelComponent, _getVisibleForm, _getXhtmlAttributes, _isGeneratedId, _setComponentId, _setGeneratedId, _wrapComponentId, a, a, abbr, abbr, acronym, acronym, action, actionBinding, actionBinding, add, addFirst, address, address, afterAdd, area, attribute, attributes, b, b, base, bdo, big, big, blockquote, br, button, caption, checkbox, checkboxGroup, cite, cite, clasS, colgroup, create, dateInput, dd, dd, del, del, dfn, dfn, div, dl, dt, dt, el, em, em, encode, entity, equals, eval, fieldset, fileInput, fileInput, find, findAll, form, form, frame, frameset, get, getComponentId, getComponentName, getComponents, getEngine, getPage, getParent, h1, h1, h2, h2, h3, h3, h4, h4, h5, h5, h6, h6, hashCode, head, hidden, hr, htmlText, i, i, iframe, img, ins, ins, kbd, kdb, label, label, legend, legend, li, li, link, link, map, message, message, meta, multiSelect, nbsp, noframes, noscript, numberInput, numberInput, object, ol, p, p, param, placeholder, pre, pre, q, q, radio, radioGroup, rawText, remove, remove, requestFocus, s, s, samp, samp, script, select, selectModel, small, small, span, span, strike, strike, strong, strong, style, sub, sub, submit, sup, sup, table, tbody, td, text, textarea, textInput, tfoot, th, thead, title, u, u, ul, up, up, var, var, wBlock, wrapSelf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

tr

public TableRow tr()
Description copied from class: Component
Adds a tr-element (a row) the a surrounding TableBlock-element. If the surrounding elemenent is not a TableBlock, throws an exception.

Overrides:
tr in class Component
Returns:

col

public Any col()
Description copied from class: Component
Adds a col-element to a surrounding TableBlock-component. If the surrounding element is not a TableBlock, thorws an exception.

Overrides:
col in class Component
Returns:

id

public TableBlock id(java.lang.String componentId)
Description copied from class: Component
Changes the componentId.

Overrides:
id in class Block
Parameters:
componentId - New component id.
Returns:

renderHint

public TableBlock renderHint(java.lang.CharSequence renderHint)
Description copied from class: Component
Adds a rendering hint to this component. A rendering hint can be either a css class reference or a xhtml specification tag name. Many rendering hints can be given in one input string. Example: "h1 error" will cause the component to render as <h1 class="error">. Note that the html tag name doesn't have to be first.

Overrides:
renderHint in class Block
Returns:
Will return the component itself to enable method chaining.


Copyright © 2007-2008. All Rights Reserved.