|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.component.tbl.KeyWordPopupRowRenderer<T>
public class KeyWordPopupRowRenderer<T>
This is simplified row renderer that is used ad default render for popup results in keyword search.
Field Summary | |
---|---|
protected java.util.List<SimpleColumnDef> |
m_columnList
|
Constructor Summary | |
---|---|
KeyWordPopupRowRenderer(java.lang.Class<T> dataClass,
ClassMetaModel cmm,
java.lang.String... cols)
Create a renderer by handling the specified class and a list of properties off it. |
Method Summary | ||
---|---|---|
protected void |
addColumns(java.util.List<ExpandedDisplayProperty<?>> xdpl)
|
|
void |
beforeQuery(TableModelTableBase<T> tbl)
This gets called by the data table component just before it starts to render a new page. |
|
protected void |
check()
Throws an exception if this renderer has been completed and is unmutable. |
|
protected void |
complete(TableModelTableBase<T> tbl)
Complete this object if it is not already complete (internal). |
|
protected java.lang.Class<?> |
getActualClass()
Returns the record type being rendered. |
|
SimpleColumnDef |
getColumn(int ix)
Return the definition for the nth column. |
|
SimpleColumnDef |
getColumnByName(java.lang.String propertyName)
Find a column by the property it is displaying. |
|
int |
getColumnCount()
Return the #of columns in this renderer. |
|
INodeContentRenderer<?> |
getNodeRenderer(int index)
Convenience method to get the column's cell renderer; replacement for getColumn(index).getRenderer(). |
|
ICellClicked<?> |
getRowClicked()
When set each row will be selectable (will react when the mouse hovers over it), and when clicked will call this handler. |
|
protected boolean |
isComplete()
Check if this object is used (completed) and thereby unmodifyable (internal). |
|
protected ClassMetaModel |
model()
Returns the metamodel used. |
|
protected
|
renderColumn(TableModelTableBase<T> tbl,
ColumnContainer<T> cc,
int index,
T instance,
SimpleColumnDef cd)
Render a single column fully. |
|
void |
renderHeader(TableModelTableBase<T> tbl,
HeaderContainer<T> cc)
Render table header. |
|
void |
renderRow(TableModelTableBase<T> tbl,
ColumnContainer<T> cc,
int index,
T instance)
|
|
void |
setNodeRenderer(int index,
INodeContentRenderer<?> renderer)
Convenience method to set the column's cell renderer; replacement for getColumn(index).setRenderer(). |
|
void |
setRowClicked(ICellClicked<?> rowClicked)
When set each row will be selectable (will react when the mouse hovers over it), and when clicked will call this handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.List<SimpleColumnDef> m_columnList
Constructor Detail |
---|
public KeyWordPopupRowRenderer(@Nonnull java.lang.Class<T> dataClass, @Nonnull ClassMetaModel cmm, java.lang.String... cols)
dataClass
- cols
- Method Detail |
---|
protected ClassMetaModel model()
protected java.lang.Class<?> getActualClass()
protected void check()
protected void complete(TableModelTableBase<T> tbl)
protected boolean isComplete()
public SimpleColumnDef getColumn(int ix)
ix
-
public int getColumnCount()
public SimpleColumnDef getColumnByName(java.lang.String propertyName)
propertyName
-
public void setNodeRenderer(int index, INodeContentRenderer<?> renderer)
index
- renderer
- public INodeContentRenderer<?> getNodeRenderer(int index)
index
-
public ICellClicked<?> getRowClicked()
public void setRowClicked(ICellClicked<?> rowClicked)
rowClicked
- public void beforeQuery(TableModelTableBase<T> tbl) throws java.lang.Exception
beforeQuery
in interface IRowRenderer<T>
java.lang.Exception
to.etc.domui.component.tbl.IRowRenderer#beforeQuery(to.etc.domui.component.tbl.DataTable)
public void renderRow(TableModelTableBase<T> tbl, ColumnContainer<T> cc, int index, T instance) throws java.lang.Exception
renderRow
in interface IRowRenderer<T>
java.lang.Exception
to.etc.domui.component.tbl.IRowRenderer#renderRow(to.etc.domui.component.tbl.ColumnContainer, int, java.lang.Object)
protected <X> void renderColumn(TableModelTableBase<T> tbl, ColumnContainer<T> cc, int index, T instance, SimpleColumnDef cd) throws java.lang.Exception
tbl
- cc
- index
- instance
- cd
-
java.lang.Exception
public void renderHeader(TableModelTableBase<T> tbl, HeaderContainer<T> cc) throws java.lang.Exception
IRowRenderer
renderHeader
in interface IRowRenderer<T>
java.lang.Exception
protected void addColumns(java.util.List<ExpandedDisplayProperty<?>> xdpl)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |