Class AbstractOption<T extends java.io.Serializable>

    • Constructor Detail

      • AbstractOption

        public AbstractOption​(T value)
        Builds a new instance of AbstractOption.
        Parameters:
        value - the wrapped value
      • AbstractOption

        public AbstractOption​(org.apache.wicket.model.IModel<T> value)
        Builds a new instance of AbstractOption.
        Parameters:
        value - the wrapped value
    • Method Detail

      • getJavascriptOption

        public java.lang.CharSequence getJavascriptOption()
        Description copied from interface: IListItemOption
        Method retrieving the javascript's representation of the option
        Specified by:
        getJavascriptOption in interface IListItemOption
      • toString

        public abstract java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable
      • getModel

        public org.apache.wicket.model.IModel<T> getModel()
        Specified by:
        getModel in interface IModelOption<T extends java.io.Serializable>
        Returns:
        Return the model
      • setModel

        public void setModel​(org.apache.wicket.model.IModel<T> model)
        Specified by:
        setModel in interface IModelOption<T extends java.io.Serializable>
      • getValue

        public T getValue()
        Specified by:
        getValue in interface IModelOption<T extends java.io.Serializable>
        Specified by:
        getValue in interface ITypedOption<T extends java.io.Serializable>
        Returns:
        Returns the value or null if no value is set.