|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tacos.ajax.components.palette.PaletteColumn
public class PaletteColumn
One of the two columns in a Palette component: the left column lists available options, the right column lists the selected columns.
Constructor Summary | |
---|---|
PaletteColumn(String name,
String clientId,
int rows)
|
Method Summary | |
---|---|
void |
addOption(PaletteOption option)
Adds an option |
void |
render(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
Renders the <select> and <option> tags for this column. |
void |
sortByLabel()
Sorts the options by the label visible to the user. |
void |
sortByValue()
Sorts the options by value (the hidden value for the option that represents the object value). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaletteColumn(String name, String clientId, int rows)
name
- the name of the column (the name attribute of the <select>)rows
- the number of visible rows (the size attribute of the <select>)Method Detail |
---|
public void addOption(PaletteOption option)
option
- public void sortByValue()
public void sortByLabel()
public void render(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
render
in interface org.apache.tapestry.IRender
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |