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

E18581-02

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

java.lang.Object
  extended by oracle.adfdt.view.common.binding.creator.v2.PatternOptions
      extended by oracle.adfdt.view.rich.binding.pattern.form.FormOptions

public class FormOptions
extends PatternOptions

Binding options that allow the user to change the structure and functionality of the form, and help choose what attributes should compose the form.


Method Summary
 java.util.List<Widget> getAvailableWidgets(Field field)
          Returns the set of usable widgets for the given field.
 java.util.List<Field> getFields()
          Returns the current set of fields that the form will use to create it's field components.
 boolean isCreateNavigation()
          Determines whether or not the form pattern will create navigation buttons for first, next, last, and previous actions.
 boolean isCreateSubmitButton()
          Determines whether or not the form pattern will create a submit button.
 boolean isReadOnly()
          When true, all fields that are auto generated (that is, the component that is picked by the form pattern) will default to read only controls.
 void setCreateNavigation(boolean createNavigation)
          Returns true if the form pattern will create navigation buttons for first, next, last, and previous actions.
 void setCreateSubmitButton(boolean createSubmitButton)
          Returns true if the form pattern will create a submit button.
 void setFields(java.util.List<Field> fields)
          Sets the fields to use to create the form.
 void setReadOnly(boolean readOnly)
          Only affects the default generation of column components, where only read only patterns will be considered.
 
Methods inherited from class oracle.adfdt.view.common.binding.creator.v2.PatternOptions
merge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setFields

public void setFields(java.util.List<Field> fields)
Sets the fields to use to create the form. This can either be initially fetched from getFields(), or can be constructed from scratch (see Field). If constructed from scratch, all definitions must be based of the accessor that was used to generate the form.


getFields

public java.util.List<Field> getFields()
Returns the current set of fields that the form will use to create it's field components. If you have not set the fields (via setFields()), this will be default return all the available fields in the accessor definition.


setCreateNavigation

public void setCreateNavigation(boolean createNavigation)
Returns true if the form pattern will create navigation buttons for first, next, last, and previous actions.


isCreateNavigation

public boolean isCreateNavigation()
Determines whether or not the form pattern will create navigation buttons for first, next, last, and previous actions.


setCreateSubmitButton

public void setCreateSubmitButton(boolean createSubmitButton)
Returns true if the form pattern will create a submit button.


isCreateSubmitButton

public boolean isCreateSubmitButton()
Determines whether or not the form pattern will create a submit button.


isReadOnly

public boolean isReadOnly()
When true, all fields that are auto generated (that is, the component that is picked by the form pattern) will default to read only controls. Users can still override individual fields to use editable components.


setReadOnly

public void setReadOnly(boolean readOnly)
Only affects the default generation of column components, where only read only patterns will be considered. The list of available widgets will continue to show all bindable patterns. Only takes affect when generating new columns. This does not modify existing columns.


getAvailableWidgets

public java.util.List<Widget> getAvailableWidgets(Field field)
Returns the set of usable widgets for the given field. When setting the widget on a field, it must be from among the set of widgets returned by this API.


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

E18581-02

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