LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.form.builder
Class LyFieldSetBuilder

java.lang.Object
  extended by leon.control.builder.LyBuilder
      extended by leon.control.form.builder.LyFormFieldBuilder
          extended by leon.control.form.builder.LyFieldConsultBuilder
              extended by leon.control.form.builder.LyFieldSetBuilder
Direct Known Subclasses:
LyEditTableMultipleChoiceSetBuilder, LyFieldCreateBuilder

public class LyFieldSetBuilder
extends LyFieldConsultBuilder

This builder creates a modification form field.

See Also:
LyFieldSetController

Field Summary
static java.lang.String __VERSION
          File version
static boolean BOOLEAN_SHOW_LABEL
          Indicates if we show a label when we displayed a boolean choice field.
static int MAX_CHECKBOX_OPTIONS
          Indicates maximum number of options displayed as checkboxes or radioboxes.
 
Fields inherited from class leon.control.form.builder.LyFormFieldBuilder
DEFAULT_TRANSVERSE_ICON_WIDTH, FORM_FIELD_COMPOSITION_SEP
 
Constructor Summary
LyFieldSetBuilder(LyController parent)
          Default constructor.
 
Method Summary
 LyFieldItem buildArray()
          Build a field item for an array fieldInfo.
 LyFieldItem buildChoice()
          Build a choice component for the given choice field.
 LyEntry buildChoiceOptionTree(LyChoiceFieldInfo choice, java.util.Vector<LyChoiceOption> domain)
          Build the tree of option(s) for the choice.
 LyFieldItem buildDate()
          Build a date component for the given date field.
 LyFieldItem buildFieldItem(LyFieldInfo fieldInfo)
          Build a field item for a given fieldInfo.
 LyFieldItem buildFieldItem(LyFieldInfo fieldInfo, LyUnit unit)
          Build a field item for a given fieldInfo and unit.
 LyFieldItem buildFieldItem(LyUnit unit)
          Build a field item for a given fieldInfo and unit.
 LyFieldItem buildFile()
          Build a file component for the given file field.
 LyFormField buildFormField(boolean editable)
          Build a view component for the given field.
 LyFieldItem buildNumber()
          Build a number component for the given number field.
 LyFieldItem buildRelation()
          Build a relation component for the given relation field.
 LyFieldItem buildStruct()
          Build a relation component for the given relation field.
 LyFieldItem buildText()
          Build a text component for the given text field.
 LyToolBar buildToolBar()
          Builds the toolbar for the given field.
 LyRelation buildTypesRelation()
          Builds a relation to change the relation type.
 LyFieldUnit buildUnitsList()
          Build a relation that contains all units of the given field.
 LyFieldItem buildValueLabel()
          Build a fieldItem for a fieldinfo to present its value.
 boolean isConsult()
          Indicates if the current field is in consult mode.
 boolean isEditable()
          Indicates if the current field is editable.
 boolean isEnabled()
          Indicates if the current field is enabled.
 LyToolBar updateToolBar()
          Update the toolbar for the given field.
 LyToolBar updateToolBar(LyFieldInfo fieldInfo)
          Update the toolbar for the given field.
 
Methods inherited from class leon.control.form.builder.LyFormFieldBuilder
build, buildArray, buildFieldItem, buildFormField, buildInternalFieldItem, buildTool, buildToolBar, buildToolBar, getCaptionConstraint, getFieldConstraint
 
Methods inherited from class leon.control.builder.LyBuilder
buildComponent, getComponent, getParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values

BOOLEAN_SHOW_LABEL

public static boolean BOOLEAN_SHOW_LABEL
Indicates if we show a label when we displayed a boolean choice field.


MAX_CHECKBOX_OPTIONS

public static int MAX_CHECKBOX_OPTIONS
Indicates maximum number of options displayed as checkboxes or radioboxes. Beyond this number, options are displayed as relations (combo or multi-selector).

Constructor Detail

LyFieldSetBuilder

public LyFieldSetBuilder(LyController parent)
Default constructor.

Parameters:
parent - parent controller
Method Detail

buildFormField

public LyFormField buildFormField(boolean editable)
Build a view component for the given field.

Overrides:
buildFormField in class LyFormFieldBuilder
Parameters:
editable - state for the component (true = editable)
Returns:
the view component for the field

buildFieldItem

public LyFieldItem buildFieldItem(LyFieldInfo fieldInfo)
Build a field item for a given fieldInfo.

Overrides:
buildFieldItem in class LyFormFieldBuilder
Parameters:
fieldInfo - the fieldInfo corresponding to the built field item
Returns:
the field item corresponding to the fieldInfo

buildFieldItem

public LyFieldItem buildFieldItem(LyFieldInfo fieldInfo,
                                  LyUnit unit)
Build a field item for a given fieldInfo and unit.

Parameters:
fieldInfo - the fieldInfo corresponding to the built field item
unit - the unit corresponding to the built field item
Returns:
the field item corresponding to the fieldInfo and unit.

buildFieldItem

public LyFieldItem buildFieldItem(LyUnit unit)
Build a field item for a given fieldInfo and unit.

Parameters:
unit - the unit corresponding to the built field item
Returns:
the field item corresponding to the fieldInfo and unit.

buildUnitsList

public LyFieldUnit buildUnitsList()
Build a relation that contains all units of the given field.

Returns:
The relation containing all possible units for the given field info.

buildText

public LyFieldItem buildText()
Build a text component for the given text field.

Overrides:
buildText in class LyFieldConsultBuilder
Returns:
the text component

buildDate

public LyFieldItem buildDate()
Build a date component for the given date field.

Overrides:
buildDate in class LyFieldConsultBuilder
Returns:
the date component component

buildNumber

public LyFieldItem buildNumber()
Build a number component for the given number field.

Overrides:
buildNumber in class LyFieldConsultBuilder
Returns:
the number component component

buildStruct

public LyFieldItem buildStruct()
Build a relation component for the given relation field.

Overrides:
buildStruct in class LyFieldConsultBuilder
Returns:
the relation component component

buildRelation

public LyFieldItem buildRelation()
Build a relation component for the given relation field.

Overrides:
buildRelation in class LyFieldConsultBuilder
Returns:
the relation component component

buildValueLabel

public LyFieldItem buildValueLabel()
Build a fieldItem for a fieldinfo to present its value.

Overrides:
buildValueLabel in class LyFormFieldBuilder
Returns:
the field item corresponding to the fieldInfo

buildTypesRelation

public LyRelation buildTypesRelation()
Builds a relation to change the relation type.

Returns:
a relation field item.

buildChoiceOptionTree

public LyEntry buildChoiceOptionTree(LyChoiceFieldInfo choice,
                                     java.util.Vector<LyChoiceOption> domain)
Build the tree of option(s) for the choice.

Parameters:
choice - the choice
domain - a domain list
Returns:
the first entry of the tree

buildChoice

public LyFieldItem buildChoice()
Build a choice component for the given choice field.

Overrides:
buildChoice in class LyFieldConsultBuilder
Returns:
the choice component component

buildArray

public LyFieldItem buildArray()
Build a field item for an array fieldInfo.

Overrides:
buildArray in class LyFormFieldBuilder
Returns:
the field item corresponding to the fieldInfo

buildFile

public LyFieldItem buildFile()
Build a file component for the given file field.

Overrides:
buildFile in class LyFieldConsultBuilder
Returns:
the file component component

isConsult

public boolean isConsult()
Indicates if the current field is in consult mode.

Returns:
true if the field is in consult mode

isEnabled

public boolean isEnabled()
Indicates if the current field is enabled.

Returns:
true if the field is enabled

isEditable

public boolean isEditable()
Indicates if the current field is editable.

Returns:
true if the field is editable

updateToolBar

public LyToolBar updateToolBar(LyFieldInfo fieldInfo)
Update the toolbar for the given field.

Parameters:
fieldInfo - the field
Returns:
the toolbar for the given field

updateToolBar

public LyToolBar updateToolBar()
Update the toolbar for the given field.

Returns:
the toolbar for the given field

buildToolBar

public LyToolBar buildToolBar()
Builds the toolbar for the given field.

Overrides:
buildToolBar in class LyFieldConsultBuilder
Returns:
the toolbar for the given field

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com