|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.components.table.StaticColumnDescriptor
public class StaticColumnDescriptor
Description:
The static column descriptor displays the same value on every row. Usually
this is used to execute an action like 'edit this record'
| Field Summary |
|---|
| Fields inherited from interface org.olat.core.gui.components.table.ColumnDescriptor |
|---|
ALIGNMENT_CENTER, ALIGNMENT_LEFT, ALIGNMENT_RIGHT |
| Constructor Summary | |
|---|---|
StaticColumnDescriptor(java.lang.String action,
java.lang.String headerKey,
java.lang.String cellValue)
Constructor for StaticColumnDescriptor. |
|
| Method Summary | |
|---|---|
int |
compareTo(int rowa,
int rowb)
|
java.lang.String |
getAction(int row)
gets the action code for the column, null if no action |
int |
getAlignment()
|
java.lang.String |
getHeaderKey()
|
HrefGenerator |
getHrefGenerator()
|
java.lang.String |
getPopUpWindowAttributes()
|
boolean |
isPopUpWindowAction()
|
boolean |
isSortingAllowed()
|
void |
modelChanged()
called by the table if the model has changed. |
void |
otherColumnDescriptorSorted()
called when this columnDescriptor is not being sorted by the user, but another columnDescriptor. |
void |
renderValue(StringOutput so,
int row,
Renderer renderer)
|
void |
setAlignment(int alignment)
Sets the alignment. |
void |
setHrefGenerator(HrefGenerator h)
|
void |
setIsPopUpWindowAction(boolean popUpWindowAction,
java.lang.String popUpWindowAttributes)
Optional action link configuration |
void |
setTable(Table arg0)
|
void |
setTranslateHeaderKey(boolean translateHeaderKey)
Option to set the flag to not translate the header key. |
void |
sortingAboutToStart()
called before the actual sorting calls with compareTo(int rowa, int rowb) take place |
java.lang.String |
toString(int rowid)
String represenation of the value at specified row |
boolean |
translateHeaderKey()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StaticColumnDescriptor(java.lang.String action,
java.lang.String headerKey,
java.lang.String cellValue)
action - headerKey - cellValue - | Method Detail |
|---|
public java.lang.String getHeaderKey()
getHeaderKey in interface ColumnDescriptorColumnDescriptor.getHeaderKey()public boolean translateHeaderKey()
translateHeaderKey in interface ColumnDescriptortrue if the header key should be translated by the
renderer, otherwise falseColumnDescriptor.translateHeaderKey()public void setTranslateHeaderKey(boolean translateHeaderKey)
translateHeaderKey - public int getAlignment()
getAlignment in interface ColumnDescriptorColumnDescriptor.getAlignment()
public void renderValue(StringOutput so,
int row,
Renderer renderer)
renderValue in interface ColumnDescriptorrenderer - the Renderer. if null this means that the renderValue
should be in plain text (e.g. for excel download)ColumnDescriptor.renderValue(org.olat.core.gui.render.StringOutput, int, org.olat.core.gui.render.Renderer)
public int compareTo(int rowa,
int rowb)
compareTo in interface ColumnDescriptorColumnDescriptor.compareTo(int, int)public void setTable(Table arg0)
setTable in interface ColumnDescriptorarg0 - the backreference to the tableColumnDescriptor.setTable(org.olat.core.gui.components.table.Table)public java.lang.String getAction(int row)
ColumnDescriptor
getAction in interface ColumnDescriptorrow - the current row
ColumnDescriptor.getAction(int)public void setAlignment(int alignment)
alignment - The alignment to setpublic void modelChanged()
ColumnDescriptor
modelChanged in interface ColumnDescriptorColumnDescriptor.modelChanged()public void sortingAboutToStart()
ColumnDescriptor
sortingAboutToStart in interface ColumnDescriptorColumnDescriptor.sortingAboutToStart()public void otherColumnDescriptorSorted()
ColumnDescriptor
otherColumnDescriptorSorted in interface ColumnDescriptorColumnDescriptor.otherColumnDescriptorSorted()public boolean isSortingAllowed()
isSortingAllowed in interface ColumnDescriptorColumnDescriptor.isSortingAllowed()public boolean isPopUpWindowAction()
isPopUpWindowAction in interface ColumnDescriptorColumnDescriptor.isPopUpWindowAction()public java.lang.String getPopUpWindowAttributes()
getPopUpWindowAttributes in interface ColumnDescriptorColumnDescriptor.getPopUpWindowAttributes()
public void setIsPopUpWindowAction(boolean popUpWindowAction,
java.lang.String popUpWindowAttributes)
popUpWindowAction - true: action link will open in new window, false: action opens in current windowpopUpWindowAttributes - javascript window.open attributes or null if default values are used
e.g. something like this: "height=600, width=600, location=no, menubar=no, resizable=yes, status=no, scrollbars=yes, toolbar=no"public void setHrefGenerator(HrefGenerator h)
setHrefGenerator in interface ColumnDescriptorpublic HrefGenerator getHrefGenerator()
getHrefGenerator in interface ColumnDescriptorpublic java.lang.String toString(int rowid)
ColumnDescriptor
toString in interface ColumnDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||