com.oktiva.mogno.layout
Class TableLayout

java.lang.Object
  extended bycom.oktiva.mogno.Component
      extended bycom.oktiva.mogno.Visual
          extended bycom.oktiva.mogno.Container
              extended bycom.oktiva.mogno.html.Table
                  extended bycom.oktiva.mogno.layout.TableLayout
All Implemented Interfaces:
java.lang.Cloneable

public class TableLayout
extends Table

This class is an optimized Table, that uses top and left to position this children components in rows and cols.

It permits you to set the attributes for his cols and rows, and to define wich of them are not TDs, but THs.
You can also define attributes for specific cells.
This class uses the very ugly Component attributes gridHeight, gridWidth, gridWeightX and gridWeightY. I hope someday we will get rid of them... :)


Field Summary
 java.lang.String caption
           
 java.lang.String captionProperties
           
 java.lang.String cellProperties
           
 java.lang.String colProperties
           
 java.lang.String headerCells
           
 java.lang.String headerCols
           
 java.lang.String headerProperties
           
 java.lang.String headerRows
           
 java.lang.String rowProperties
           
 
Fields inherited from class com.oktiva.mogno.html.Table
align, border, cellpadding, cellspacing, dir, frame, lang, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, rules, summary, width
 
Fields inherited from class com.oktiva.mogno.Container
afterEnd, content
 
Fields inherited from class com.oktiva.mogno.Visual
evOnShow, evOnSyntaxError, gridHeight, gridWeightX, gridWeightY, gridWidth, id, lastError, left, parent, problematic, style, styleClass, title, top
 
Fields inherited from class com.oktiva.mogno.Component
bag, componentFiler, componentFilerParams, designing, eventQueue, evOnCreate, name, owned, ownedClasses, owner, tag, xmlFileName
 
Constructor Summary
TableLayout()
           
 
Method Summary
 java.lang.String endColumn(int top, int left, Visual comp)
          Method endColumn.
 java.lang.String endRow(int top)
          Method endRow.
 java.lang.String getCaption()
          Getter for the caption of the table.
 java.lang.String getCaptionProperties()
          Getter for property captionProperties.
 java.lang.String getCellProperties()
          Getter for property cellProperties.
 java.lang.String getColProperties()
          Getter for property colProperties.
 java.lang.String getHeaderCells()
          Getter for property headerCells.
 java.lang.String getHeaderCols()
          Getter for property headerCols.
 java.lang.String getHeaderProperties()
          Getter for property headerProperties.
 java.lang.String getHeaderRows()
          Getter for property headerRows.
protected  java.lang.String getPropertiesHtmlString(java.lang.String propString)
           
 java.lang.String getRowProperties()
          Getter for property rowProperties.
 void setCaption(java.lang.String caption)
          Setter for the caption of the table.
 void setCaptionProperties(java.lang.String captionProperties)
          Setter for property captionProperties.
 void setCellProperties(java.lang.String cellProperties)
          Setter for property cellProperties.
 void setColProperties(java.lang.String colProperties)
          Setter for property colProperties.
 void setHeaderCells(java.lang.String headerCells)
          Setter for property headerCells.
 void setHeaderCols(java.lang.String headerCols)
          Setter for property headerCols.
 void setHeaderProperties(java.lang.String headerProperties)
          Setter for property headerProperties.
 void setHeaderRows(java.lang.String headerRows)
          Setter for property headerRows.
 void setRowProperties(java.lang.String rowProperties)
          Setter for property rowProperties.
 java.lang.String show()
          Parse the strings with the various properties and call the super.show() method.
 java.lang.String startColumn(int top, int left, Visual comp)
          Method startColumn.
 java.lang.String startContainer()
          Starts container's tag.
 java.lang.String startRow(int top)
          Method startRow.
 
Methods inherited from class com.oktiva.mogno.html.Table
getAlign, getBorder, getCellpadding, getCellspacing, getDir, getFrame, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRules, getSummary, getWidth, htmlAttributes, setAlign, setBorder, setCellpadding, setCellspacing, setDir, setFrame, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRules, setSummary, setWidth
 
Methods inherited from class com.oktiva.mogno.Container
addChildsVector, betweenColumns, betweenRows, endContainer, getChildsVector, getContent, getFullComponentsVector, getOrderedChildNames, getOrderedChildsVector, nonAttributeGetters, orderChildsVector, selectParentComponent, setContent
 
Methods inherited from class com.oktiva.mogno.Visual
buildHtmlAttributes, cellhalignHtmlAttributes, cellvalignHtmlAttributes, checkSyntax, coreHtmlAttributes, descendentOf, eventsHtmlAttributes, getEvOnShow, getEvOnSyntaxError, getGridHeight, getGridWeightX, getGridWeightY, getGridWidth, getId, getLastError, getLeft, getParent, getStyle, getStyleClass, getTitle, getTop, i18nHtmlAttributes, localizableAttributes, receiveRequest, setEvOnShow, setEvOnSyntaxError, setGridHeight, setGridWeightX, setGridWeightY, setGridWidth, setId, setLastError, setLeft, setParent, setStyle, setStyleClass, setTitle, setTop, showHtmlAttributes
 
Methods inherited from class com.oktiva.mogno.Component
attribsHash, createOwnedComponents, dispatch, dispatchAll, dispatchFunction, eventParamTypes, eventParamValues, freeChild, getApplication, getAttrsTypes, getBag, getChild, getChildClass, getClone, getEvOnCreate, getFromBag, getName, getOwner, initialize, initialize, initialize, initialize, isDesigning, listChilds, putInBag, queue, registerChild, removeFromBag, serializedBag, setBag, setComponentFiler, setComponentFilerParams, setDesigning, setEvOnCreate, setName, setOwner, setProperties, store, unserializeBag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

caption

public java.lang.String caption

captionProperties

public java.lang.String captionProperties

headerRows

public java.lang.String headerRows

headerCols

public java.lang.String headerCols

headerCells

public java.lang.String headerCells

headerProperties

public java.lang.String headerProperties

cellProperties

public java.lang.String cellProperties

colProperties

public java.lang.String colProperties

rowProperties

public java.lang.String rowProperties
Constructor Detail

TableLayout

public TableLayout()
Method Detail

show

public java.lang.String show()
                      throws java.lang.Exception
Parse the strings with the various properties and call the super.show() method.

Overrides:
show in class Container
Throws:
java.lang.Exception

startRow

public java.lang.String startRow(int top)
Description copied from class: Container
Method startRow.

Overrides:
startRow in class Container
Returns:
String

endRow

public java.lang.String endRow(int top)
Description copied from class: Container
Method endRow.

Overrides:
endRow in class Container
Returns:
String

startColumn

public java.lang.String startColumn(int top,
                                    int left,
                                    Visual comp)
Description copied from class: Container
Method startColumn.

Overrides:
startColumn in class Container
Parameters:
top - The top index.
left - The left index.
comp - the Visual for wich this column is
Returns:
String

endColumn

public java.lang.String endColumn(int top,
                                  int left,
                                  Visual comp)
Description copied from class: Container
Method endColumn.

Overrides:
endColumn in class Container
Parameters:
top - The top index.
left - The left index.
comp - the Visual for wich this column is
Returns:
String

startContainer

public java.lang.String startContainer()
Description copied from class: Container
Starts container's tag.
If the tag attribute is not null, assumes the default behavior:
< + tag + htmlAttributes + >

Overrides:
startContainer in class Container
Returns:
String

getPropertiesHtmlString

protected java.lang.String getPropertiesHtmlString(java.lang.String propString)

getCaption

public java.lang.String getCaption()
Getter for the caption of the table.

Returns:
Value of property caption.

setCaption

public void setCaption(java.lang.String caption)
Setter for the caption of the table.

Parameters:
caption - New value of property caption.

getCaptionProperties

public java.lang.String getCaptionProperties()
Getter for property captionProperties.

Format of captionProperties: prop1=value1|prop2=value2

Returns:
Value of property captionProperties.

setCaptionProperties

public void setCaptionProperties(java.lang.String captionProperties)
Setter for property captionProperties. Format of captionProperties: prop1=value1|prop2=value2

Parameters:
captionProperties - New value of property captionProperties.

getHeaderRows

public java.lang.String getHeaderRows()
Getter for property headerRows.

Format of headerRows: 1,2

Returns:
Value of property headerRows.

setHeaderRows

public void setHeaderRows(java.lang.String headerRows)
Setter for property headerRows. Format of headerRows: 1,2

Parameters:
headerRows - New value of property headerRows.

getHeaderCols

public java.lang.String getHeaderCols()
Getter for property headerCols.

Format of headerCols: 2,5

Returns:
Value of property headerCols.

setHeaderCols

public void setHeaderCols(java.lang.String headerCols)
Setter for property headerCols. Format of headerCols: 2,5

Parameters:
headerCols - New value of property headerCols.

getHeaderCells

public java.lang.String getHeaderCells()
Getter for property headerCells.

Format of headerCells (top,left): 2,5&&3,0

Returns:
Value of property headerCells.

setHeaderCells

public void setHeaderCells(java.lang.String headerCells)
Setter for property headerCells. Format of headerCells (top,left): 2,5&&3,0

Parameters:
headerCells - New value of property headerCells.

getHeaderProperties

public java.lang.String getHeaderProperties()
Getter for property headerProperties.

Format of headerProperties: prop1=value1|prop2=value2

Returns:
Value of property headerProperties.

setHeaderProperties

public void setHeaderProperties(java.lang.String headerProperties)
Setter for property headerProperties. Format of headerProperties: prop1=value1|prop2=value2

Parameters:
headerProperties - New value of property headerProperties.

getCellProperties

public java.lang.String getCellProperties()
Getter for property cellProperties.

Format of cellProperties: top,left:prop1=value1|prop2=value2&&top,left:prop1=value1|prop2=value2

Returns:
Value of property cellProperties.

setCellProperties

public void setCellProperties(java.lang.String cellProperties)
Setter for property cellProperties. Format of cellProperties: top,left:prop1=value1|prop2=value2&&top,left:prop1=value1|prop2=value2

Parameters:
cellProperties - New value of property cellProperties.

getColProperties

public java.lang.String getColProperties()
Getter for property colProperties.

Format of colProperties: left:prop1=value1|prop2=value2&&left:prop1=value1|prop2=value2

Returns:
Value of property colProperties.

setColProperties

public void setColProperties(java.lang.String colProperties)
Setter for property colProperties. Format of colProperties: left:prop1=value1|prop2=value2&&left:prop1=value1|prop2=value2

Parameters:
colProperties - New value of property colProperties.

getRowProperties

public java.lang.String getRowProperties()
Getter for property rowProperties.

Format of rowProperties: top:prop1=value1|prop2=value2&&top:prop1=value1|prop2=value2

Returns:
Value of property rowProperties.

setRowProperties

public void setRowProperties(java.lang.String rowProperties)
Setter for property rowProperties. Format of rowProperties: top:prop1=value1|prop2=value2&&top:prop1=value1|prop2=value2

Parameters:
rowProperties - New value of property rowProperties.