Package com.github.oeuvres.alix.web
Interface Option
public interface Option
An html <option>.
-
Method Summary
Modifier and TypeMethodDescriptionhint()Text representing advisory information about the option.default Stringhtml(boolean selected) Print this option as HTML.label()A text label for an option.default Stringoptions()Print all options as HTML.default StringOutput options as html <option> in order of a space separated list of tokens.
-
Method Details
-
label
String label()A text label for an option.- Returns:
- <option>{label}</option>
-
hint
String hint()Text representing advisory information about the option.- Returns:
- <option title="{hint}">
-
options
Print all options as HTML.- Returns:
- html of the options.
-
options
Output options as html <option> in order of a space separated list of tokens.- Parameters:
list- Oredered options.- Returns:
- HTML.
-
html
Print this option as HTML.- Parameters:
selected- if option selected.- Returns:
- HTML.
-