public class PaletteColumn extends java.lang.Object implements org.apache.tapestry.IRender
Constructor and Description |
---|
PaletteColumn(java.lang.String name,
java.lang.String clientId,
int rows) |
Modifier and Type | Method and Description |
---|---|
void |
addOption(PaletteOption 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).
|
public PaletteColumn(java.lang.String name, java.lang.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>)public void addOption(PaletteOption 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