|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.control.builder.LyBuilder
leon.control.builder.LyAreaBuilder
leon.control.builder.LyFormBuilder
public abstract class LyFormBuilder
This builder creates a form view.
LyFormController
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
static int |
DEFAULT_TRANSVERSE_ICON_WIDTH
Default size for Transverse icon (actions) |
static boolean |
SHOW_CONTEXT_AREA
Position of context area |
Constructor Summary | |
---|---|
LyFormBuilder(LyController parent)
Default constructor. |
Method Summary | |
---|---|
LyComponent |
build()
Builds the view component. |
LyFieldItem |
buildArray(LyArrayFieldInfo arrayField,
java.lang.Object value)
Build a field item for an array fieldInfo. |
LyFieldItem |
buildChoice(LyChoiceFieldInfo choiceField,
java.lang.Object value)
Build a field item for a choice fieldInfo. |
LyFieldItem |
buildDate(LyDateFieldInfo dateField,
java.lang.Object value)
Build a field item for a date fieldInfo. |
LyFieldItem |
buildFieldItem(LyFieldInfo fieldInfo)
Build a field item for a given fieldInfo. |
LyFieldItem |
buildFieldItem(LyFieldInfo fieldInfo,
java.lang.Object value)
Build a field item for a given fieldInfo. |
LyFieldItem |
buildFile(LyFileFieldInfo fileField,
java.lang.Object value)
Build a field item for a file fieldInfo. |
LyFormField |
buildFormField(LyFieldInfo fieldInfo,
boolean editable)
Build a form field for a given fieldInfo. |
LyFieldItem |
buildNumber(LyNumberFieldInfo numberField,
java.lang.Object value)
Build a field item for a number fieldInfo. |
LyFieldItem |
buildRelation(LyRelationFieldInfo relationField,
java.lang.Object value)
Build a field item for a relation fieldInfo. |
LyFieldItem |
buildStruct(LyStructFieldInfo structField,
java.lang.Object value)
Build a field item for an struct fieldInfo. |
LyFieldItem |
buildText(LyTextFieldInfo textField,
java.lang.Object value)
Build a field item for a text fieldInfo. |
LyToolBar |
buildToolBar(LyFieldInfo fieldInfo)
Build a toolbar for a given fieldInfo. |
LyToolBar |
buildToolBar(LyFieldInfo fieldInfo,
LyInfoDataList<LyAction,LyClassInfo> actions)
Builds the toolbar for the given field and list of actions. |
LyFieldItem |
buildValueLabel(LyFieldInfo fieldInfo,
java.lang.Object value)
Build a fieldItem for a fieldinfo to present its value. |
void |
completeToolBarForContext(LyToolBar toolBar)
Complete the toolbar with the form context. |
LyConstraint |
getCaptionConstraint(LyFieldInfo fieldInfo,
LyFormField formField)
Get caption constraint. |
LyConstraint |
getFieldConstraint(LyFieldInfo fieldInfo,
LyFormField formField)
Get field constraint. |
static LyConstraintBase.Fill |
getFill(LyFieldConstraint.Fill fill)
Convert a LyFieldConstraint to a LyConstraint.Fill |
static LyConstraintBase.HAlign |
getHAlign(LyFieldConstraint.HAlign hAlign)
Convert a LyFieldConstraint.HAlign to a LyConstraint.HAlign |
static LyConstraintBase.VAlign |
getVAlign(LyFieldConstraint.VAlign vAlign)
Convert a LyFieldConstraint.VAlign to a LyConstraint.VAlign |
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 |
---|
public static final java.lang.String __VERSION
public static int DEFAULT_TRANSVERSE_ICON_WIDTH
public static boolean SHOW_CONTEXT_AREA
Constructor Detail |
---|
public LyFormBuilder(LyController parent)
parent
- parent controllerMethod Detail |
---|
public static LyConstraintBase.Fill getFill(LyFieldConstraint.Fill fill)
fill
- the LyFieldConstraint
public static LyConstraintBase.HAlign getHAlign(LyFieldConstraint.HAlign hAlign)
hAlign
- source HAlign
public static LyConstraintBase.VAlign getVAlign(LyFieldConstraint.VAlign vAlign)
vAlign
- source VAlign
public LyComponent build()
build
in class LyBuilder
public void completeToolBarForContext(LyToolBar toolBar)
toolBar
- the toolbar to completepublic LyFormField buildFormField(LyFieldInfo fieldInfo, boolean editable)
fieldInfo
- the fieldInfo corresponding to the built form fieldeditable
- indicates whether the form field must be editable or not
public LyConstraint getCaptionConstraint(LyFieldInfo fieldInfo, LyFormField formField)
fieldInfo
- the fieldInfoformField
- the formField
public LyConstraint getFieldConstraint(LyFieldInfo fieldInfo, LyFormField formField)
fieldInfo
- the fieldInfoformField
- the formField
public LyFieldItem buildFieldItem(LyFieldInfo fieldInfo)
fieldInfo
- the fieldInfo corresponding to the built field item
public LyFieldItem buildFieldItem(LyFieldInfo fieldInfo, java.lang.Object value)
fieldInfo
- the fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyFieldItem buildText(LyTextFieldInfo textField, java.lang.Object value)
textField
- the text fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyFieldItem buildDate(LyDateFieldInfo dateField, java.lang.Object value)
dateField
- the date fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyFieldItem buildNumber(LyNumberFieldInfo numberField, java.lang.Object value)
numberField
- the number fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyFieldItem buildRelation(LyRelationFieldInfo relationField, java.lang.Object value)
relationField
- the relation fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyFieldItem buildChoice(LyChoiceFieldInfo choiceField, java.lang.Object value)
choiceField
- the choice fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyFieldItem buildFile(LyFileFieldInfo fileField, java.lang.Object value)
fileField
- the file fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyFieldItem buildArray(LyArrayFieldInfo arrayField, java.lang.Object value)
arrayField
- the array fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyFieldItem buildStruct(LyStructFieldInfo structField, java.lang.Object value)
structField
- the struct fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyFieldItem buildValueLabel(LyFieldInfo fieldInfo, java.lang.Object value)
fieldInfo
- the fieldInfo corresponding to the built field itemvalue
- the value of the field item
public LyToolBar buildToolBar(LyFieldInfo fieldInfo)
fieldInfo
- the fieldInfo corresponding to the built toolbar
public LyToolBar buildToolBar(LyFieldInfo fieldInfo, LyInfoDataList<LyAction,LyClassInfo> actions)
fieldInfo
- the fieldactions
- List of pairs (action, classInfo)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |