Class SerializedField
- java.lang.Object
-
- com.iplanet.jato.view.ViewBase
-
- com.iplanet.jato.view.DisplayFieldImpl
-
- com.iplanet.jato.view.html.HtmlDisplayFieldBase
-
- com.sun.identity.console.components.view.html.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.HtmlDisplayFieldBaseThis 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
-
-
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 nameSerializedField(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 nameSerializedField(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> TgetSerializedObj()Gets serializable objectvoidsetSerializedString(String str)Set serialized string.voidsetValue(Object obj)Set serializable objectvoidsetValue(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
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 objectname- 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 objectmodel- to which thisDisplayFieldis boundname- 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 objectmodel- to which thisDisplayFieldis boundname- this view's name.boundName- name of the model field to which thisDisplayFieldis boundvalue- - 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:
setValuein interfacecom.iplanet.jato.view.DisplayField- Overrides:
setValuein classcom.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:
setValuein classcom.iplanet.jato.view.DisplayFieldImpl- Parameters:
obj- serializable objectoverwrite- - true to overwrite existing value
-
-