|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oktiva.mogno.Component com.oktiva.mogno.Visual com.oktiva.mogno.Container com.oktiva.mogno.html.Table com.oktiva.mogno.layout.TableLayout
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.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 |
public java.lang.String caption
public java.lang.String captionProperties
public java.lang.String headerRows
public java.lang.String headerCols
public java.lang.String headerCells
public java.lang.String headerProperties
public java.lang.String cellProperties
public java.lang.String colProperties
public java.lang.String rowProperties
Constructor Detail |
public TableLayout()
Method Detail |
public java.lang.String show() throws java.lang.Exception
show
in class Container
java.lang.Exception
public java.lang.String startRow(int top)
Container
startRow
in class Container
public java.lang.String endRow(int top)
Container
endRow
in class Container
public java.lang.String startColumn(int top, int left, Visual comp)
Container
startColumn
in class Container
top
- The top index.left
- The left index.comp
- the Visual for wich this column is
public java.lang.String endColumn(int top, int left, Visual comp)
Container
endColumn
in class Container
top
- The top index.left
- The left index.comp
- the Visual for wich this column is
public java.lang.String startContainer()
Container
startContainer
in class Container
protected java.lang.String getPropertiesHtmlString(java.lang.String propString)
public java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption
- New value of property caption.public java.lang.String getCaptionProperties()
Format of captionProperties: prop1=value1|prop2=value2
public void setCaptionProperties(java.lang.String captionProperties)
captionProperties
- New value of property captionProperties.public java.lang.String getHeaderRows()
Format of headerRows: 1,2
public void setHeaderRows(java.lang.String headerRows)
headerRows
- New value of property headerRows.public java.lang.String getHeaderCols()
Format of headerCols: 2,5
public void setHeaderCols(java.lang.String headerCols)
headerCols
- New value of property headerCols.public java.lang.String getHeaderCells()
Format of headerCells (top,left): 2,5&&3,0
public void setHeaderCells(java.lang.String headerCells)
headerCells
- New value of property headerCells.public java.lang.String getHeaderProperties()
Format of headerProperties: prop1=value1|prop2=value2
public void setHeaderProperties(java.lang.String headerProperties)
headerProperties
- New value of property headerProperties.public java.lang.String getCellProperties()
Format of cellProperties: top,left:prop1=value1|prop2=value2&&top,left:prop1=value1|prop2=value2
public void setCellProperties(java.lang.String cellProperties)
cellProperties
- New value of property cellProperties.public java.lang.String getColProperties()
Format of colProperties: left:prop1=value1|prop2=value2&&left:prop1=value1|prop2=value2
public void setColProperties(java.lang.String colProperties)
colProperties
- New value of property colProperties.public java.lang.String getRowProperties()
Format of rowProperties: top:prop1=value1|prop2=value2&&top:prop1=value1|prop2=value2
public void setRowProperties(java.lang.String rowProperties)
rowProperties
- New value of property rowProperties.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |