|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.components.table.DefaultColumnDescriptor
org.olat.modules.fo.ThreadColumnDescriptor
public class ThreadColumnDescriptor
Specialized ColumnDescriptor to display title of Forum messages in a indented (thread-like) way
| Field Summary |
|---|
| Fields inherited from class org.olat.core.gui.components.table.DefaultColumnDescriptor |
|---|
DEFAULT_POPUP_ATTRIBUTES |
| Fields inherited from interface org.olat.core.gui.components.table.ColumnDescriptor |
|---|
ALIGNMENT_CENTER, ALIGNMENT_LEFT, ALIGNMENT_RIGHT |
| Constructor Summary | |
|---|---|
ThreadColumnDescriptor(java.lang.String headerKey,
int dataColumn,
java.lang.String action)
|
|
| Method Summary | |
|---|---|
int |
compareTo(int rowa,
int rowb)
this special columndescriptor can only handle data from the column of the tablemodel if it is of type Message, since this descriptor is especially made for the forum |
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 sb,
int row,
Renderer renderer)
|
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 |
| Methods inherited from class org.olat.core.gui.components.table.DefaultColumnDescriptor |
|---|
getAction, getAlignment, getHeaderKey, getHrefGenerator, getLocale, getPopUpWindowAttributes, isPopUpWindowAction, isSortingAllowed, setAlignment, setHrefGenerator, setIsPopUpWindowAction, setTable, setTranslateHeaderKey, translateHeaderKey |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadColumnDescriptor(java.lang.String headerKey,
int dataColumn,
java.lang.String action)
headerKey - dataColumn - action - | Method Detail |
|---|
public void renderValue(StringOutput sb,
int row,
Renderer renderer)
renderValue in interface ColumnDescriptorrenderValue in class DefaultColumnDescriptorrenderer - 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 ColumnDescriptorcompareTo in class DefaultColumnDescriptorColumnDescriptor.compareTo(int, int)public void modelChanged()
ColumnDescriptor
modelChanged in interface ColumnDescriptormodelChanged in class DefaultColumnDescriptorColumnDescriptor.modelChanged()public void sortingAboutToStart()
ColumnDescriptor
sortingAboutToStart in interface ColumnDescriptorsortingAboutToStart in class DefaultColumnDescriptorColumnDescriptor.sortingAboutToStart()public void otherColumnDescriptorSorted()
ColumnDescriptor
otherColumnDescriptorSorted in interface ColumnDescriptorotherColumnDescriptorSorted in class DefaultColumnDescriptorColumnDescriptor.otherColumnDescriptorSorted()public java.lang.String toString(int rowid)
ColumnDescriptor
toString in interface ColumnDescriptortoString in class DefaultColumnDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||