|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.contrib.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,
int rows)
|
Method Summary | |
---|---|
void |
addOption(PaletteOption option)
|
void |
render(IMarkupWriter writer,
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, 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)
public void sortByValue()
public void sortByLabel()
public void render(IMarkupWriter writer, IRequestCycle cycle)
render
in interface IRender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |