Class LiteralOption
java.lang.Object
org.wicketstuff.wiquery.core.options.AbstractOption<String>
org.wicketstuff.wiquery.core.options.LiteralOption
- All Implemented Interfaces:
Serializable,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable,IListItemOption,IModelOption<String>,ITypedOption<String>
$Id: LiteralOption.java 1714M 2012-01-17 08:38:39Z (local) $
Wraps a String to be generated as a JavaScript string.
Example:
The String true should be rendered as true
- Since:
- 0.5
- Author:
- Lionel Armanet, Ernesto Reinaldo Barreiro
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLiteralOption(String value) Builds a new instance ofLiteralOption.LiteralOption(String value, boolean doubleQuote) Builds a new instance ofLiteralOption.LiteralOption(org.apache.wicket.model.IModel<String> value) Builds a new instance ofLiteralOption.LiteralOption(org.apache.wicket.model.IModel<String> value, boolean doubleQuote) Builds a new instance ofLiteralOption. -
Method Summary
Modifier and TypeMethodDescriptiontoString()wrapOnAssignment(org.apache.wicket.Component component) Methods inherited from class org.wicketstuff.wiquery.core.options.AbstractOption
detach, getJavascriptOption, getModel, getValue, setModel
-
Constructor Details
-
LiteralOption
Builds a new instance ofLiteralOption.- Parameters:
value- the wrappedString
-
LiteralOption
Builds a new instance ofLiteralOption.- Parameters:
value- the wrappedString
-
LiteralOption
Builds a new instance ofLiteralOption.- Parameters:
value- the wrappedString
-
LiteralOption
Builds a new instance ofLiteralOption.- Parameters:
value- the wrappedString
-
-
Method Details
-
toString
- Specified by:
toStringin classAbstractOption<String>
-
wrapOnAssignment
-