|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.adempiere.webui.component.WListItemRenderer
public class WListItemRenderer
Renderer for org.adempiere.webui.component.ListItems
for the Listbox.
| Field Summary | |
|---|---|
protected ArrayList<TableValueChangeListener> |
m_listeners
Array of listeners for changes in the table components. |
| Fields inherited from interface org.zkoss.zul.ListitemRendererExt |
|---|
DETACH_ON_RENDER, DETACH_ON_UNLOAD, RETAIN_CELLS_ON_UNLOAD |
| Constructor Summary | |
|---|---|
WListItemRenderer()
Default constructor. |
|
WListItemRenderer(Vector<? extends String> columnNames)
Constructor specifying the column headers. |
|
| Method Summary | |
|---|---|
void |
addColumn(String header)
Add Table Column. |
void |
addTableValueChangeListener(TableValueChangeListener listener)
Add a listener for changes in the table's component values. |
void |
clearColumns()
Reset the renderer. |
void |
clearSelection()
Clear the renderer. |
protected Comparator |
getColumnComparator(boolean ascending,
int columnIndex)
Obtain the comparator for a given column. |
protected int |
getColumnPosition(Component source)
Get the column index of the given source component. |
int |
getControls()
|
int |
getNoColumns()
Get the number of columns. |
protected int |
getRowPosition(Component source)
Get the row index of the given source component. |
Listcell |
newListcell(Listitem item)
|
Listitem |
newListitem(Listbox listbox)
|
void |
onEvent(Event event)
|
void |
render(Listitem item,
Object data)
|
void |
renderListHead(ListHead head)
Render the ListHead for the table with headers for the table columns. |
void |
setRO(int colIndex,
Boolean readOnly)
Deprecated. |
void |
updateColumn(int index,
String header)
Update Table Column. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayList<TableValueChangeListener> m_listeners
| Constructor Detail |
|---|
public WListItemRenderer()
public WListItemRenderer(Vector<? extends String> columnNames)
columnNames - vector of column titles.| Method Detail |
|---|
public void render(Listitem item,
Object data)
throws Exception
render in interface ListitemRendererException
public void updateColumn(int index,
String header)
index - The index of the column to updateheader - The header text for the columnpublic void addColumn(String header)
header - The header text for the columnpublic int getNoColumns()
public void setRO(int colIndex,
Boolean readOnly)
colIndex - readOnly -
protected Comparator getColumnComparator(boolean ascending,
int columnIndex)
ascending - whether the comparator will sort ascendingcolumnIndex - the index of the column for which the comparator is required
public void renderListHead(ListHead head)
head - The ListHead component to render.addColumn(String),
WListItemRenderer(Vector)
public void onEvent(Event event)
throws Exception
onEvent in interface EventListenerExceptionprotected int getRowPosition(Component source)
source component.
source - The component for which the row index is to be found.
protected int getColumnPosition(Component source)
source component.
source - The component for which the column index is to be found.
public void clearColumns()
public void clearSelection()
public void addTableValueChangeListener(TableValueChangeListener listener)
listener - The listener to add.public int getControls()
getControls in interface ListitemRendererExtpublic Listcell newListcell(Listitem item)
newListcell in interface ListitemRendererExtpublic Listitem newListitem(Listbox listbox)
newListitem in interface ListitemRendererExt
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||