Oracle Fusion Middleware Design Time Java API Reference for Oracle ADF Faces and Data Visualization Components
11g Release 2 (11.1.2.0.0)

E18581-01

oracle.adfdt.view.rich.binding.pattern.form
Class Field

java.lang.Object
  extended by oracle.adfdt.view.rich.binding.pattern.form.Field

public class Field
extends java.lang.Object

Represents a single field in the form. Used mainly to customize the label and what component to use for the field.


Method Summary
static Field create(oracle.binding.meta.NamedDefinition namedDefinition)
          Creates a field with the given required named definition.
 oracle.binding.meta.NamedDefinition getDefinition()
          The definition the field's component will be bound to.
 java.lang.String getLabel()
          Returns the label to be used.
 Widget getWidget()
          The specific widget to use for this fields's contained component.
 void setLabel(java.lang.String label)
          Sets the label to use for this field.
 void setWidget(Widget widget)
          Sets the widget to use for this fields's contained component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Field create(oracle.binding.meta.NamedDefinition namedDefinition)
Creates a field with the given required named definition. By default this will generate a default label and use the highest ranked component that is compatible with the form.


getDefinition

public oracle.binding.meta.NamedDefinition getDefinition()
The definition the field's component will be bound to.


getLabel

public java.lang.String getLabel()
Returns the label to be used. If no label has been set (the label is null), a default label will be used.


setLabel

public void setLabel(java.lang.String label)
Sets the label to use for this field. If no label is set (label is null), a default label will be used.


setWidget

public void setWidget(Widget widget)
Sets the widget to use for this fields's contained component. This widget must support this inclusion context and be compatible with the form. For a listing of supported widgets, see the FormOptions.getAvailableWidgets(form) api.


getWidget

public Widget getWidget()
The specific widget to use for this fields's contained component. If null, then the default component will be used.


Oracle Fusion Middleware Design Time Java API Reference for Oracle ADF Faces and Data Visualization Components
11g Release 2 (11.1.2.0.0)

E18581-01

Copyright © 1997, 2011, Oracle. All rights reserved.