|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mx.com.brained.taglib.GridUtil
public class GridUtil
Title: AwTaglib
Description: Active Widgets Tag Library
This is the most important class of the whole framework. It contains a series of utility methods that help in rendering the grid as a whole, and works intimately with the Grid Iterator Tag
Copyright: Copyright (c) 2005
Company: Brain-ED
Constructor Summary | |
---|---|
GridUtil()
|
Method Summary | |
---|---|
void |
addTitle(java.util.HashMap atrib)
Add a new header and attributes for the given list |
java.util.Collection |
getAttributes()
Get a collection full of hashmaps with the attributes depending on the kind of field |
java.lang.String |
getCheckboxField(java.util.HashMap map,
int cont,
ResourceManagerIface resource)
Return a Checkbox template |
java.lang.String |
getColumnProperties()
Get the column templates to be rendered by the grid |
java.lang.String |
getComboBoxField(java.util.HashMap map,
int cont,
ResourceManagerIface resource)
Return a ComboBox template |
java.util.Collection |
getData()
Return the data entered into the grid |
java.lang.String |
getDataArray()
Return a string representation of the datalist, ready to be used by the grid |
java.lang.String |
getDateField(java.util.HashMap map,
int cont,
ResourceManagerIface resource)
Return a Date template |
java.lang.String |
getEditableField(java.util.HashMap map,
int cont,
ResourceManagerIface resource)
Return an Editable template |
java.lang.String |
getHeaderArray()
Returns a string representing an array with the headers being rendered |
java.lang.String |
getListField(java.util.HashMap map,
int cont,
ResourceManagerIface resource)
Return a list template |
java.lang.String |
getPropertyArray()
Returns a String representing an array with the properties of the bean being rendered |
java.lang.String |
getReadOnlyField(java.util.HashMap map,
int index,
ResourceManagerIface resource)
Return a Read Only template |
java.util.Collection |
getRow()
Get a row from the datalist |
java.lang.String |
getTemplates()
Return all the templates that will be rendered |
java.lang.String |
getTitleArray()
Gets a string representing the header array. |
void |
newRow()
Create a new row for the data list |
void |
setContext(org.springframework.web.context.WebApplicationContext context)
|
void |
setData(java.lang.String dato)
Add a new data cell to the data list |
void |
setEmptyCollection()
|
void |
setName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridUtil()
Method Detail |
---|
public void setData(java.lang.String dato)
dato
- Stringpublic void newRow()
public void addTitle(java.util.HashMap atrib)
atrib
- HashMappublic java.util.Collection getData()
public java.util.Collection getAttributes()
public java.util.Collection getRow()
public void setEmptyCollection()
public java.lang.String getDataArray()
public java.lang.String getTitleArray()
public java.lang.String getColumnProperties() throws java.lang.Exception
java.lang.Exception
public java.lang.String getListField(java.util.HashMap map, int cont, ResourceManagerIface resource) throws java.lang.Exception
map
- HashMapcont
- int
java.lang.Exception
public java.lang.String getComboBoxField(java.util.HashMap map, int cont, ResourceManagerIface resource) throws java.lang.Exception
map
- HashMapcont
- int
java.lang.Exception
public java.lang.String getDateField(java.util.HashMap map, int cont, ResourceManagerIface resource) throws java.lang.Exception
map
- HashMapcont
- int
java.lang.Exception
public java.lang.String getCheckboxField(java.util.HashMap map, int cont, ResourceManagerIface resource) throws java.lang.Exception
map
- HashMapcont
- int
java.lang.Exception
public java.lang.String getEditableField(java.util.HashMap map, int cont, ResourceManagerIface resource) throws java.lang.Exception
map
- HashMapcont
- int
java.lang.Exception
public java.lang.String getReadOnlyField(java.util.HashMap map, int index, ResourceManagerIface resource) throws java.lang.Exception
map
- HashMapindex
- intresource
- ResourceManagerIface
java.lang.Exception
public void setContext(org.springframework.web.context.WebApplicationContext context)
public void setName(java.lang.String name)
public java.lang.String getPropertyArray()
public java.lang.String getHeaderArray()
public java.lang.String getTemplates()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |