org.odlabs.wiquery.core.options
Class StringOption

java.lang.Object
  extended by org.odlabs.wiquery.core.options.AbstractOption<String>
      extended by org.odlabs.wiquery.core.options.StringOption
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, IListItemOption, IModelOption<String>, ITypedOption<String>

public class StringOption
extends AbstractOption<String>

$Id: $

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:
Serialized Form

Constructor Summary
StringOption(org.apache.wicket.model.IModel<String> value)
          Builds a new instance of StringOption.
StringOption(String value)
          Builds a new instance of StringOption.
 
Method Summary
 String toString()
           
 IModelOption<String> wrapOnAssignment(org.apache.wicket.Component component)
           
 
Methods inherited from class org.odlabs.wiquery.core.options.AbstractOption
detach, getJavascriptOption, getModel, getValue, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringOption

public StringOption(String value)
Builds a new instance of StringOption.

Parameters:
literal - the wrapped String

StringOption

public StringOption(org.apache.wicket.model.IModel<String> value)
Builds a new instance of StringOption.

Parameters:
literal - the wrapped String
Method Detail

toString

public String toString()
Specified by:
toString in class AbstractOption<String>

wrapOnAssignment

public IModelOption<String> wrapOnAssignment(org.apache.wicket.Component component)


Copyright © 2012. All Rights Reserved.