Class SerializedField

  • All Implemented Interfaces:
    com.iplanet.jato.view.DisplayField, com.iplanet.jato.view.html.HtmlDisplayField, com.iplanet.jato.view.View

    public class SerializedField
    extends com.iplanet.jato.view.html.HtmlDisplayFieldBase
    This class takes a serializable object, serialized it when adding as a hidden field in a form (for information tracking between pages) and deserialized it when retrieving during form submission. This component is proprietary to OpenSSO Administration Console
    • Field Summary

      • Fields inherited from interface com.iplanet.jato.view.html.HtmlDisplayField

        QBE_CONTROL_NAME_SUFFIX
      • Fields inherited from interface com.iplanet.jato.view.View

        QUALIFIED_VIEW_NAME_SEPARATOR
    • Constructor Summary

      Constructors 
      Constructor Description
      SerializedField​(com.iplanet.jato.view.ContainerView parent, String name, Serializable value)
      Constructs a minimal instance using the parent's default model and the field's name as its bound name
      SerializedField​(com.iplanet.jato.view.View parent, com.iplanet.jato.model.Model model, String name, Serializable value)
      Constructs an instance using the specified model and the field's name as its bound name
      SerializedField​(com.iplanet.jato.view.View parent, com.iplanet.jato.model.Model model, String name, String boundName, Serializable value)
      Constructs this component directly
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T getSerializedObj()
      Gets serializable object
      void setSerializedString​(String str)
      Set serialized string.
      void setValue​(Object obj)
      Set serializable object
      void setValue​(Object obj, boolean overwrite)
      Set serializable object
      • Methods inherited from class com.iplanet.jato.view.html.HtmlDisplayFieldBase

        getExtraHtml, getQBEControlQualifiedName, setExtraHtml, urlEncodedValue
      • Methods inherited from class com.iplanet.jato.view.DisplayFieldImpl

        getBoundName, getDescriptor, getModel, getValue, getValues, setBoundName, setDescriptor, setModel, setValues, setValues, stringValue
      • Methods inherited from class com.iplanet.jato.view.ViewBase

        getName, getParent, getParentViewBean, getQualifiedName, getQualifiedViewNameSeparator, getRootView, getRootView, getSimpleQualifiedName, isVisible, setName, setParent, setQualifiedViewNameSeparator, setVisible
      • Methods inherited from interface com.iplanet.jato.view.DisplayField

        getDescriptor, getValue, getValues, setValues, stringValue
      • Methods inherited from interface com.iplanet.jato.view.View

        getName, getParent, getQualifiedName, setName, setParent
    • Constructor Detail

      • SerializedField

        public SerializedField​(com.iplanet.jato.view.ContainerView parent,
                               String name,
                               Serializable value)
        Constructs a minimal instance using the parent's default model and the field's name as its bound name
        Parameters:
        parent - view of this object
        name - and model bound name.
        value - - serializable object
      • SerializedField

        public SerializedField​(com.iplanet.jato.view.View parent,
                               com.iplanet.jato.model.Model model,
                               String name,
                               Serializable value)
        Constructs an instance using the specified model and the field's name as its bound name
        Parameters:
        parent - view of this object
        model - to which this DisplayField is bound
        name - and model bound name.
        value - - serializable object
      • SerializedField

        public SerializedField​(com.iplanet.jato.view.View parent,
                               com.iplanet.jato.model.Model model,
                               String name,
                               String boundName,
                               Serializable value)
        Constructs this component directly
        Parameters:
        parent - view of this object
        model - to which this DisplayField is bound
        name - this view's name.
        boundName - name of the model field to which this DisplayField is bound
        value - - serializable object
    • Method Detail

      • getSerializedObj

        public <T> T getSerializedObj()
        Gets serializable object
        Returns:
        serializable object
      • setValue

        public void setValue​(Object obj)
        Set serializable object
        Specified by:
        setValue in interface com.iplanet.jato.view.DisplayField
        Overrides:
        setValue in class com.iplanet.jato.view.DisplayFieldImpl
        Parameters:
        obj - serializable object
      • setSerializedString

        public void setSerializedString​(String str)
        Set serialized string.
        Parameters:
        str - Serizalized String.
      • setValue

        public void setValue​(Object obj,
                             boolean overwrite)
        Set serializable object
        Overrides:
        setValue in class com.iplanet.jato.view.DisplayFieldImpl
        Parameters:
        obj - serializable object
        overwrite - - true to overwrite existing value