LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.builder
Class LySetBuilder

java.lang.Object
  extended by leon.control.builder.LyBuilder
      extended by leon.control.builder.LyAreaBuilder
          extended by leon.control.builder.LyFormBuilder
              extended by leon.control.builder.LyConsultBuilder
                  extended by leon.control.builder.LySetBuilder
Direct Known Subclasses:
LyCreateBuilder

public class LySetBuilder
extends LyConsultBuilder

This builder creates the modification form for the set controller It is based on the consult builder.

See Also:
LyConsultBuilder, LySetController

Field Summary
static java.lang.String __VERSION
          File version
 
Fields inherited from class leon.control.builder.LyFormBuilder
DEFAULT_TRANSVERSE_ICON_WIDTH, SHOW_CONTEXT_AREA
 
Constructor Summary
LySetBuilder(LyController parent)
          Default constructor.
 
Method Summary
 LyFieldItem buildFieldItem(LyFieldInfo fieldInfo, java.lang.Object value, LyUnit unit)
          Build a field item for a given fieldInfo and unit.
 LyRelation buildTypesRelation(LyFieldInfo fieldInfo)
          Builds a relation to change the relation type.
 LyFieldUnit buildUnitsList(LyFieldInfo fieldInfo)
          Build a relation that contains all units of the given field.
 boolean isConsult(LyFieldInfo fieldInfo)
          Indicates if the current field is in consult mode.
 boolean isEditable(LyFieldInfo fieldInfo)
          Indicates if the current field is editable.
 boolean isEnabled(LyFieldInfo fieldInfo)
          Indicates if the current field is enabled.
 LyToolBar updateToolBar(LyFieldInfo fieldInfo)
          Update the toolbar for the given field.
 
Methods inherited from class leon.control.builder.LyFormBuilder
build, buildArray, buildChoice, buildDate, buildFieldItem, buildFieldItem, buildFile, buildFormField, buildNumber, buildRelation, buildStruct, buildText, buildToolBar, buildToolBar, buildValueLabel, completeToolBarForContext, getCaptionConstraint, getFieldConstraint, getFill, getHAlign, getVAlign
 
Methods inherited from class leon.control.builder.LyAreaBuilder
buildComponent, completeMenuBar, completeMessages, getRightLabel, setTitleBarParameters, updateSelectFile, updateTitleBar
 
Methods inherited from class leon.control.builder.LyBuilder
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
Constructor Detail

LySetBuilder

public LySetBuilder(LyController parent)
Default constructor.

Parameters:
parent - parent controller
Method Detail

buildFieldItem

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

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

buildUnitsList

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

Parameters:
fieldInfo - FieldInfo for which a units list is required.
Returns:
The relation containing all possible units for the given field info.

buildTypesRelation

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

Parameters:
fieldInfo - a fieldInfo
Returns:
the built relation item

isConsult

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

Parameters:
fieldInfo - the field
Returns:
true if the field is in consult mode

isEnabled

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

Parameters:
fieldInfo - the field
Returns:
true if the field is enabled

isEditable

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

Parameters:
fieldInfo - the field
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

(c) January 2013 - W4 S.A.

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