com.iplanet.jato.view.html
Class HtmlDisplayFieldBase

java.lang.Object
  |
  +--com.iplanet.jato.view.ViewBase
        |
        +--com.iplanet.jato.view.DisplayFieldImpl
              |
              +--com.iplanet.jato.view.html.HtmlDisplayFieldBase
All Implemented Interfaces:
DisplayField, HtmlDisplayField, View
Direct Known Subclasses:
CheckBox, HiddenField, HtmlFrame, ImageField, SelectableGroupImpl, StaticTextField, TextField

public class HtmlDisplayFieldBase
extends DisplayFieldImpl
implements HtmlDisplayField


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
HtmlDisplayFieldBase(ContainerView parent, java.lang.String name, java.lang.Object value)
          Construct a display field with the specified properties.
HtmlDisplayFieldBase(ContainerView parent, java.lang.String name, java.lang.String boundName, java.lang.Object value)
          Construct a display field with the specified properties.
HtmlDisplayFieldBase(View parent, Model model, java.lang.String name, java.lang.Object value)
          Construct a display field with the specified properties
HtmlDisplayFieldBase(View parent, Model model, java.lang.String name, java.lang.String boundName, java.lang.Object value)
          Construct a display field with the specified properties
HtmlDisplayFieldBase(View parent, Model model, java.lang.String name, java.lang.String boundName, java.lang.Object value, DisplayFieldDescriptor descriptor)
          Construct a display field with the specified properties
 
Method Summary
 java.lang.String getExtraHtml()
          Returns the string representing any arbitrary "extra HTML" for this field
 java.lang.String getQBEControlQualifiedName()
           
 void setExtraHtml(java.lang.String value)
          Supplies a string representing any arbitrary "extra HTML" which will be appended to the standard HTML generated by this field.
 java.lang.String urlEncodedValue()
          Encodes the stringValue of the DisplayField's value into x-www-form-urlencoded format.
 
Methods inherited from class com.iplanet.jato.view.DisplayFieldImpl
getBoundName, getDescriptor, getModel, getValue, getValues, setBoundName, setDescriptor, setModel, setValue, setValue, setValues, setValues, stringValue
 
Methods inherited from class com.iplanet.jato.view.ViewBase
getName, getParent, getParentViewBean, getQualifiedName, getRootView, getRootView, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.iplanet.jato.view.DisplayField
getDescriptor, getValue, getValues, setValue, setValues, stringValue
 
Methods inherited from interface com.iplanet.jato.view.View
getName, getParent, getQualifiedName, setParent
 

Constructor Detail

HtmlDisplayFieldBase

public HtmlDisplayFieldBase(ContainerView parent,
                            java.lang.String name,
                            java.lang.Object value)
Construct a display field with the specified properties. The field will be bound to the parent's default model.
Parameters:
parent - The parent view of this object
name - This view's name and model field bound name
value - This DiplayField's initial value.

HtmlDisplayFieldBase

public HtmlDisplayFieldBase(ContainerView parent,
                            java.lang.String name,
                            java.lang.String boundName,
                            java.lang.Object value)
Construct a display field with the specified properties. The field will be bound to the parent's default model.
Parameters:
parent - The parent view of this object
name - This view's name
boundName - The name of the model field to which this DisplayField is bound
value - This DiplayField's initial value.

HtmlDisplayFieldBase

public HtmlDisplayFieldBase(View parent,
                            Model model,
                            java.lang.String name,
                            java.lang.Object value)
Construct a display field with the specified properties
Parameters:
parent - The parent view of this object
model - The model to which this DisplayField is bound
name - This view's name and model field bound name
value - This DiplayField's initial value.

HtmlDisplayFieldBase

public HtmlDisplayFieldBase(View parent,
                            Model model,
                            java.lang.String name,
                            java.lang.String boundName,
                            java.lang.Object value)
Construct a display field with the specified properties
Parameters:
parent - The parent view of this object
model - The model to which this DisplayField is bound
name - This view's name.
boundName - The name of the model field to which this DisplayField is bound
value - This DiplayField's initial value.

HtmlDisplayFieldBase

public HtmlDisplayFieldBase(View parent,
                            Model model,
                            java.lang.String name,
                            java.lang.String boundName,
                            java.lang.Object value,
                            DisplayFieldDescriptor descriptor)
Construct a display field with the specified properties
Parameters:
parent - The parent view of this object
model - The model to which this DisplayField is bound
name - This view's name.
boundName - The name of the model field to which this DisplayField is bound
value - This DiplayField's initial value.
descriptor - This DisplayField's DisplayFieldDescriptor. May be null.
Method Detail

getQBEControlQualifiedName

public java.lang.String getQBEControlQualifiedName()

getExtraHtml

public java.lang.String getExtraHtml()
Returns the string representing any arbitrary "extra HTML" for this field
Specified by:
getExtraHtml in interface HtmlDisplayField
Returns:
the extra HTML string

setExtraHtml

public void setExtraHtml(java.lang.String value)
Supplies a string representing any arbitrary "extra HTML" which will be appended to the standard HTML generated by this field.
Parameters:
value - The arbitrary string of "extra HTML".

urlEncodedValue

public java.lang.String urlEncodedValue()
Encodes the stringValue of the DisplayField's value into x-www-form-urlencoded format. (see sun.net.URLEncoder.encode for details)
Returns:
a URLEncoder.encode version of the DisplayField's string value.