| java.lang.Object org.jaffa.presentation.portlet.widgets.model.WidgetModel org.jaffa.presentation.portlet.widgets.model.GridModelRow
GridModelRow | public class GridModelRow extends WidgetModel implements IModelMap(Code) | | A GridModel will contain instances of this class, for each row that gets added to it.
|
Method Summary | |
public void | addElement(String id, Object obj) Add an element to the row. | public Object | get(String key) Returns the value for the input key. | public Object | getElement(String id) Returns the row element identified by the input element id.
Parameters: id - The id of the element. | Collection | getElementNames() | public int | getRowId() Returns the id for this row. | public boolean | hasElement(String id) Returns a true if the row has an element having the input id.
Parameters: id - The id of the element. | public int | size() Returns the number of key/value pairs stored in the model. |
GridModelRow | GridModelRow(GridModel model, int rowId)(Code) | | Creates new GridModelRow.
|
addElement | public void addElement(String id, Object obj)(Code) | | Add an element to the row.
Parameters: id - The id of the element. Parameters: obj - The value of the element. |
get | public Object get(String key)(Code) | | Returns the value for the input key.
Parameters: key - The key the value for the input key. |
getElement | public Object getElement(String id)(Code) | | Returns the row element identified by the input element id.
Parameters: id - The id of the element. the row element identified by the input element id. |
getRowId | public int getRowId()(Code) | | Returns the id for this row.
the id for this row. |
hasElement | public boolean hasElement(String id)(Code) | | Returns a true if the row has an element having the input id.
Parameters: id - The id of the element. a true if the row has an element having the input id. |
size | public int size()(Code) | | Returns the number of key/value pairs stored in the model.
the number of key/value pairs stored in the model. |
|
|