Class AbstractOption<T extends Serializable>
java.lang.Object
org.wicketstuff.wiquery.core.options.AbstractOption<T>
- All Implemented Interfaces:
Serializable,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable,IListItemOption,IModelOption<T>,ITypedOption<T>
- Direct Known Subclasses:
BooleanOption,DoubleOption,FloatOption,IntegerOption,LiteralOption,LongOption,ShortOption,StringOption
public abstract class AbstractOption<T extends Serializable>
extends Object
implements org.apache.wicket.model.IDetachable, ITypedOption<T>, IModelOption<T>
Wraps a value to be generated as a JavaScript string.
- Since:
- 1.2
- Author:
- Emond Papegaaij
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractOption(org.apache.wicket.model.IModel<T> value) Builds a new instance ofAbstractOption.AbstractOption(T value) Builds a new instance ofAbstractOption. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wicketstuff.wiquery.core.options.IModelOption
wrapOnAssignment
-
Constructor Details
-
AbstractOption
Builds a new instance ofAbstractOption.- Parameters:
value- the wrapped value
-
AbstractOption
Builds a new instance ofAbstractOption.- Parameters:
value- the wrapped value
-
-
Method Details
-
getJavascriptOption
Description copied from interface:IListItemOptionMethod retrieving the javascript's representation of the option- Specified by:
getJavascriptOptionin interfaceIListItemOption
-
toString
-
detach
public void detach()- Specified by:
detachin interfaceorg.apache.wicket.model.IDetachable
-
getModel
- Specified by:
getModelin interfaceIModelOption<T extends Serializable>- Returns:
- Return the model
-
setModel
- Specified by:
setModelin interfaceIModelOption<T extends Serializable>
-
getValue
- Specified by:
getValuein interfaceIModelOption<T extends Serializable>- Specified by:
getValuein interfaceITypedOption<T extends Serializable>- Returns:
- Returns the value or null if no value is set.
-