|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oktiva.mogno.Component
com.oktiva.mogno.Visual
com.oktiva.mogno.Container
com.oktiva.mogno.html.Table
com.oktiva.mogno.additional.TableList
Creates a list with a table (supporting a link with onClick).
This component takes the data in the dataVector property and creates a table where the
lines are used as the items itself, with links in one or more columns.
If this TableList is active, the id passed for each row's Vector will be used
as the identificator for the item in the link.
Field Summary | |
boolean |
active
Activate/deactivate this TableList. |
boolean |
allowMultiple
if true and active, a checkbox will be shown for each line |
java.lang.String |
applicationUrl
The url of this web application |
java.lang.String |
colgroups
The HTML code with COLGROUPs and COLs. |
java.lang.String |
columnIdentifiers
String with the comumn's names, in the following format: name1&name2&name3... |
protected java.util.Vector |
dataVector
Vector of Vectors with the table data. |
java.lang.String |
evOnClick
Event dispatched when a row's link is clicked. |
protected java.util.Vector |
groupIdVector
Vector with the groupId of each row. |
protected java.util.Vector |
groupVector
Vector with the data for TBODYs, THEADs and TFOOTs. |
java.lang.String |
headerGroupId
The header row group id. |
java.lang.String |
headerGroupType
The header row group type. |
java.lang.String |
headerRowProperties
Properties of the Tr of the table header, in the following format: attr1=val1|attr2=val2|attr3=val3... |
protected java.util.Vector |
idVector
Vector with the item's ids. |
java.lang.String |
itemRowProperties
Properties of the Tr's of the table body, in the following format: attr1=val1|attr2=val2|attr3=val3... |
java.lang.String |
linkColumns
The number of the columns where there will be the link, separated by & . |
java.lang.String |
origin
The mognoOrigin param, defaults to owner.name. |
java.lang.String |
params
Another params (in URL encoded format) to add to the link |
java.util.Vector |
selectedItens
The seleeted itens |
java.lang.String |
tdProperties
Properties of the Td's of the table body, in the following format: col1attr1=val1|col1attr2=val2&col2attr3=val3... |
java.lang.String |
thProperties
Properties of the Th's of the table header, in the following format: col1attr1=val1|col1attr2=val2&col2attr3=val3... |
java.lang.String |
totalColumns
The number of the columns taht will be totalized, separated by & . |
java.lang.String |
totalLineGroupId
The total row group id. |
java.lang.String |
totalLineGroupType
The total row group type. |
java.lang.String |
totalLineLabel
The String that will be displayed in the first column of the total line |
int |
totalMaximumFractionDigits
The max number of fractionary digists given to DecimalFormat |
int |
totalMinimumFractionDigits
The minimum number of fractionary digists given to DecimalFormat |
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 | |
TableList()
|
Method Summary | |
void |
addRowData(java.util.Vector rowData)
Add a row data whithout an associated id. |
void |
addRowData(java.util.Vector rowData,
java.lang.String id)
Add a row data and the associated id. |
void |
addRowData(java.util.Vector rowData,
java.lang.String groupType,
java.lang.String groupId)
Add a row data with the data of the "group" it is in, whithout an associated id. |
void |
addRowData(java.util.Vector rowData,
java.lang.String groupType,
java.lang.String groupId,
java.lang.String id)
Add a row data with the data of the "group" it is in, and the associated id. |
java.lang.String |
endContainer()
Ends container's tag. |
boolean |
getActive()
|
java.lang.String |
getApplicationUrl()
|
java.lang.String |
getColgroups()
Getter for property colgroups. |
java.lang.String |
getColumnIdentifiers()
|
java.util.Vector |
getDataVector()
Getter for property dataVector. |
java.lang.String |
getEvOnClick()
|
java.lang.String |
getHeaderGroupId()
Getter for property headerGroupId. |
java.lang.String |
getHeaderGroupType()
Getter for property headerGroupType. |
java.lang.String |
getHeaderRowProperties()
Getter for property headerRowProperties. |
java.lang.String |
getItemRowProperties()
Getter for property itemRowProperties. |
java.lang.String |
getLinkColumns()
Getter for property linkColumns. |
java.lang.String |
getOrigin()
|
java.lang.String |
getParams()
|
protected java.util.Hashtable |
getPropertiesHash(java.lang.String propString)
|
protected java.lang.String |
getPropertiesHtmlString(java.lang.String propString)
|
java.lang.String |
getSelectedItem()
|
java.util.Vector |
getSelectedItens()
|
java.lang.String |
getTdProperties()
Getter for property tdProperties. |
java.lang.String |
getThProperties()
Getter for property thProperties. |
java.lang.String |
getTotalColumns()
Getter for property totalColumns. |
java.lang.String |
getTotalLineGroupId()
Getter for property totalLineGroupId. |
java.lang.String |
getTotalLineGroupType()
Getter for property totalLineGroupType. |
java.lang.String |
getTotalLineLabel()
Getter for property totalLineLabel. |
int |
getTotalMaximumFractionDigits()
Getter for property totalMaximumFractionDigits. |
int |
getTotalMinimumFractionDigits()
Getter for property totalMinimumFractionDigits. |
boolean |
isAllowMultiple()
|
void |
receiveRequest(javax.servlet.http.HttpServletRequest request)
Receive the request and rebuild the properties using the data that the user has filled in. |
Component |
selectParentComponent()
The parent component: this one or his owner. |
void |
setActive(boolean active)
|
void |
setAllowMultiple(boolean newAllowMultiple)
|
void |
setApplicationUrl(java.lang.String applicationUrl)
|
void |
setColgroups(java.lang.String colgroups)
Setter for property colgroups. |
void |
setColumnIdentifiers(java.lang.String columnIdentifiers)
|
void |
setDataVector(java.util.Vector dataVector)
Setter for property dataVector. |
void |
setEvOnClick(java.lang.String evOnClick)
|
void |
setHeaderGroupId(java.lang.String headerGroupId)
Setter for property headerGroupId. |
void |
setHeaderGroupType(java.lang.String headerGroupType)
Setter for property headerGroupType. |
void |
setHeaderRowProperties(java.lang.String headerRowProperties)
Setter for property headerRowProperties. |
void |
setItemRowProperties(java.lang.String itemRowProperties)
Setter for property itemRowProperties. |
void |
setLinkColumns(java.lang.String linkColumns)
Setter for property linkColumns. |
void |
setOrigin(java.lang.String origin)
|
void |
setParams(java.lang.String params)
|
protected void |
setPropertiesFromString(Component c,
java.lang.String propString)
|
void |
setSelectedItem(java.lang.String selectedItem)
|
void |
setSelectedItens(java.util.Vector newSelectedItens)
|
void |
setTdProperties(java.lang.String tdProperties)
Setter for property tdProperties. |
void |
setThProperties(java.lang.String thProperties)
Setter for property thProperties. |
void |
setTotalColumns(java.lang.String totalColumns)
Setter for property totalColumns. |
void |
setTotalLineGroupId(java.lang.String totalLineGroupId)
Setter for property totalLineGroupId. |
void |
setTotalLineGroupType(java.lang.String totalLineGroupType)
Setter for property totalLineGroupType. |
void |
setTotalLineLabel(java.lang.String totalLineLabel)
Setter for property totalLineLabel. |
void |
setTotalMaximumFractionDigits(int totalMaximumFractionDigits)
Setter for property totalMaximumFractionDigits. |
void |
setTotalMinimumFractionDigits(int totalMinimumFractionDigits)
Setter for property totalMinimumFractionDigits. |
java.lang.String |
show()
Builds the HTML from the ordered childs list. |
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, endColumn, endRow, getChildsVector, getContent, getFullComponentsVector, getOrderedChildNames, getOrderedChildsVector, nonAttributeGetters, orderChildsVector, setContent, startColumn, startContainer, startRow |
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 |
protected java.util.Vector idVector
protected java.util.Vector dataVector
public java.lang.String colgroups
protected java.util.Vector groupVector
protected java.util.Vector groupIdVector
public java.lang.String headerGroupType
public java.lang.String headerGroupId
public java.lang.String totalLineGroupType
public java.lang.String totalLineGroupId
public java.lang.String columnIdentifiers
public java.lang.String totalLineLabel
public java.lang.String totalColumns
&
.
public int totalMaximumFractionDigits
public int totalMinimumFractionDigits
public java.lang.String linkColumns
&
.
public java.lang.String headerRowProperties
attr1=val1|attr2=val2|attr3=val3...
style=color: #808080;|valign=top
Tr
public java.lang.String thProperties
col1attr1=val1|col1attr2=val2&col2attr3=val3...
style=color: #808080; width=30%;|align=left&style=width=70%|align=right
Th
public java.lang.String itemRowProperties
attr1=val1|attr2=val2|attr3=val3...
styleClass=myRowStyle;
Tr
public java.lang.String tdProperties
col1attr1=val1|col1attr2=val2&col2attr3=val3...
style=background-color: #ffffff;|align=left&align=right
Td
public java.util.Vector selectedItens
public boolean active
public boolean allowMultiple
public java.lang.String applicationUrl
public java.lang.String params
public java.lang.String origin
public java.lang.String evOnClick
Constructor Detail |
public TableList()
Method Detail |
public java.lang.String getColumnIdentifiers()
public void setColumnIdentifiers(java.lang.String columnIdentifiers)
public java.util.Vector getSelectedItens()
public void setSelectedItens(java.util.Vector newSelectedItens)
public java.lang.String getSelectedItem()
public void setSelectedItem(java.lang.String selectedItem)
public boolean getActive()
public void setActive(boolean active)
public boolean isAllowMultiple()
public void setAllowMultiple(boolean newAllowMultiple)
public java.lang.String getApplicationUrl()
public void setApplicationUrl(java.lang.String applicationUrl)
public java.lang.String getParams()
public void setParams(java.lang.String params)
public java.lang.String getOrigin()
public void setOrigin(java.lang.String origin)
public java.lang.String getEvOnClick()
public void setEvOnClick(java.lang.String evOnClick)
public Component selectParentComponent()
Container
selectParentComponent
in class Container
(Component)owner==null?this:owner
public java.lang.String show() throws java.lang.Exception
Container
show
in class Container
java.lang.Exception
protected void setPropertiesFromString(Component c, java.lang.String propString)
protected java.util.Hashtable getPropertiesHash(java.lang.String propString)
protected java.lang.String getPropertiesHtmlString(java.lang.String propString)
public java.lang.String endContainer()
Container
endContainer
in class Container
public void receiveRequest(javax.servlet.http.HttpServletRequest request)
Visual
receiveRequest
in class Visual
request
- HttpServletRequestpublic void addRowData(java.util.Vector rowData)
rowData
- A Vector with the row data.active
public void addRowData(java.util.Vector rowData, java.lang.String id)
rowData
- A Vector with the row data.id
- The associated id.active
public void addRowData(java.util.Vector rowData, java.lang.String groupType, java.lang.String groupId)
groupType
- A String that can be TBODY, THEAD or TFOOT.groupId
- Any String that will identify all the rows inside de same group.rowData
- A Vector with the row data.active
public void addRowData(java.util.Vector rowData, java.lang.String groupType, java.lang.String groupId, java.lang.String id)
groupType
- A String that can be TBODY, THEAD or TFOOT.groupId
- Any String that will identify all the rows inside de same group.rowData
- A Vector with the row data.id
- The associated id.active
public java.util.Vector getDataVector()
public void setDataVector(java.util.Vector dataVector)
dataVector
- New value of property dataVector.public java.lang.String getHeaderRowProperties()
public void setHeaderRowProperties(java.lang.String headerRowProperties)
headerRowProperties
- New value of property headerRowProperties.public java.lang.String getThProperties()
public void setThProperties(java.lang.String thProperties)
thProperties
- New value of property thProperties.public java.lang.String getItemRowProperties()
public void setItemRowProperties(java.lang.String itemRowProperties)
itemRowProperties
- New value of property itemRowProperties.public java.lang.String getTdProperties()
public void setTdProperties(java.lang.String tdProperties)
tdProperties
- New value of property tdProperties.public java.lang.String getLinkColumns()
public void setLinkColumns(java.lang.String linkColumns)
linkColumns
- New value of property linkColumns.public java.lang.String getTotalLineLabel()
public void setTotalLineLabel(java.lang.String totalLineLabel)
totalLineLabel
- New value of property totalLineLabel.public java.lang.String getTotalColumns()
public void setTotalColumns(java.lang.String totalColumns)
totalColumns
- New value of property totalColumns.public int getTotalMaximumFractionDigits()
public void setTotalMaximumFractionDigits(int totalMaximumFractionDigits)
totalMaximumFractionDigits
- New value of property totalMaximumFractionDigits.public int getTotalMinimumFractionDigits()
public void setTotalMinimumFractionDigits(int totalMinimumFractionDigits)
totalMinimumFractionDigits
- New value of property totalMinimumFractionDigits.public java.lang.String getColgroups()
public void setColgroups(java.lang.String colgroups)
colgroups
- New value of property colgroups.public java.lang.String getHeaderGroupType()
public void setHeaderGroupType(java.lang.String headerGroupType)
headerGroupType
- New value of property headerGroupType.public java.lang.String getHeaderGroupId()
public void setHeaderGroupId(java.lang.String headerGroupId)
headerGroupId
- New value of property headerGroupId.public java.lang.String getTotalLineGroupType()
public void setTotalLineGroupType(java.lang.String totalLineGroupType)
totalLineGroupType
- New value of property totalLineGroupType.public java.lang.String getTotalLineGroupId()
public void setTotalLineGroupId(java.lang.String totalLineGroupId)
totalLineGroupId
- New value of property totalLineGroupId.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |