LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.builder
Class LyUserInputBuilder

java.lang.Object
  extended by leon.control.builder.LyBuilder
      extended by leon.control.builder.LyAreaBuilder
          extended by leon.control.builder.LyUserInputBuilder
Direct Known Subclasses:
LyCommonServiceBuilder, LyFindBuilder, LyLoginBuilder, LyMessageBuilder, LyShareSessionBuilder, LyWebServiceBuilder

public class LyUserInputBuilder
extends LyAreaBuilder

Creates a view to type in a new simple find selection view.

See Also:
LyUserInputController

Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
LyUserInputBuilder()
          Default constructor.
LyUserInputBuilder(LyController parent)
          Default constructor.
 
Method Summary
 LyBoolean addBoolean(java.lang.String fieldId, java.lang.String fieldLabel, LyBoolean.Status status, boolean optional)
          Add a boolean field in the user input window.
 LyBoolean addBoolean(java.lang.String fieldId, java.lang.String fieldLabel, LyBoolean.Status status, boolean optional, int pos)
          Add a boolean field in the user input window.
 LyChoice addChoice(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, boolean optional)
          Add a choice field (empty) in the user input window.
 LyChoice addChoice(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, boolean optional, int pos)
          Add a choice field (empty) in the user input window.
 LyDate addDate(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, java.lang.String format, boolean optional)
          Add a date field in the user input window.
 LyDate addDate(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, java.lang.String format, boolean optional, int pos)
          Add a date field in the user input window.
 LyFile addFile(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, LyFile.Type type, boolean optional)
          Add a file field in the user input window.
 LyFile addFile(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, LyFile.Type type, boolean optional, int pos)
          Add a file field in the user input window.
 LyLabel addLabel(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel)
          Add a label in the user input window.
 LyLabel addLabel(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, int pos)
          Add a label in the user input window.
 LyList addList(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, int height, boolean optional, int pos)
          Add a list field in the user input window.
 LyNumber addNumber(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, LyNumberFieldInfo.Type type, boolean optional)
          Add a number field in the user input window.
 LyNumber addNumber(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, LyNumberFieldInfo.Type type, boolean optional, int pos)
          Add a number field in the user input window.
 LyRelation addRelation(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, boolean optional)
          Add a relation field (empty) in the user input window.
 LyRelation addRelation(java.lang.String fieldId, java.lang.String fieldLabel, boolean multiple, boolean optional, int pos)
          Add a relation field (empty) in the user input window.
 LyText addText(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, int ncols, int nrows, java.lang.String format, boolean optional, int pos)
          Add a text field in the user input window.
 LyText addText(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, int ncols, java.lang.String format, boolean optional)
          Add a text field in the user input window.
 LyText addText(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, int ncols, java.lang.String format, boolean optional, int pos)
          Add a text field in the user input window.
 LyComponent build()
          Builds the view component for the specified parent controller.
 void setFormAlignment(LyFormBase.Align align)
          Sets the alignment of the form.
 void setFormBorder(boolean border)
          Sets the border of the form.
 void updateTitleBar()
          Update titlebar ans set default content.
 
Methods inherited from class leon.control.builder.LyAreaBuilder
buildComponent, completeMenuBar, completeMessages, getRightLabel, setTitleBarParameters, updateSelectFile
 
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

LyUserInputBuilder

public LyUserInputBuilder()
Default constructor.


LyUserInputBuilder

public LyUserInputBuilder(LyController parent)
Default constructor.

Parameters:
parent - parent controller
Method Detail

build

public LyComponent build()
Builds the view component for the specified parent controller. The component may create the XML Tree or the internal view.

Specified by:
build in class LyBuilder
Returns:
the view Component

addLabel

public LyLabel addLabel(java.lang.String fieldId,
                        java.lang.String fieldLabel,
                        java.lang.String itemLabel)
Add a label in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
Returns:
the label component

addLabel

public LyLabel addLabel(java.lang.String fieldId,
                        java.lang.String fieldLabel,
                        java.lang.String itemLabel,
                        int pos)
Add a label in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
pos - indicates the position of the field, -1 for the last position
Returns:
the label component

addText

public LyText addText(java.lang.String fieldId,
                      java.lang.String fieldLabel,
                      java.lang.String itemLabel,
                      int ncols,
                      java.lang.String format,
                      boolean optional)
Add a text field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
ncols - the number of columns
format - the format of the field
optional - indicates if the field is optional
Returns:
the text component

addText

public LyText addText(java.lang.String fieldId,
                      java.lang.String fieldLabel,
                      java.lang.String itemLabel,
                      int ncols,
                      java.lang.String format,
                      boolean optional,
                      int pos)
Add a text field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
ncols - the number of columns
format - the format of the field
optional - indicates if the field is optional
pos - indicates the position of the field, -1 for the last position
Returns:
the text component

addText

public LyText addText(java.lang.String fieldId,
                      java.lang.String fieldLabel,
                      java.lang.String itemLabel,
                      int ncols,
                      int nrows,
                      java.lang.String format,
                      boolean optional,
                      int pos)
Add a text field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
ncols - the number of columns
nrows - the number of rows
format - the format of the field
optional - indicates if the field is optional
pos - indicates the position of the field, -1 for the last position
Returns:
the text component

addRelation

public LyRelation addRelation(java.lang.String fieldId,
                              java.lang.String fieldLabel,
                              boolean multiple,
                              boolean optional)
Add a relation field (empty) in the user input window.

Parameters:
fieldId - the id of the field
fieldLabel - the label of the field
multiple - indicates if the relation is multiple
optional - indicates if the relation is optional
Returns:
the relation component

addRelation

public LyRelation addRelation(java.lang.String fieldId,
                              java.lang.String fieldLabel,
                              boolean multiple,
                              boolean optional,
                              int pos)
Add a relation field (empty) in the user input window.

Parameters:
fieldId - the id of the field
fieldLabel - the label of the field
multiple - indicates if the relation is multiple
optional - indicates if the relation is optional
pos - indicates the position of the field, -1 for the last position
Returns:
the relation component

addChoice

public LyChoice addChoice(java.lang.String fieldId,
                          java.lang.String fieldLabel,
                          boolean multiple,
                          boolean optional)
Add a choice field (empty) in the user input window.

Parameters:
fieldId - the id of the field
fieldLabel - the label of the field
multiple - indicates if the choice is multiple
optional - indicates if the choice is optional
Returns:
the choice component

addChoice

public LyChoice addChoice(java.lang.String fieldId,
                          java.lang.String fieldLabel,
                          boolean multiple,
                          boolean optional,
                          int pos)
Add a choice field (empty) in the user input window.

Parameters:
fieldId - the id of the field
fieldLabel - the label of the field
multiple - indicates if the choice is multiple
optional - indicates if the choice is optional
pos - indicates the position of the field, -1 for the last position
Returns:
the choice component

addNumber

public LyNumber addNumber(java.lang.String fieldId,
                          java.lang.String fieldLabel,
                          java.lang.String itemLabel,
                          LyNumberFieldInfo.Type type,
                          boolean optional)
Add a number field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
type - the number type
optional - indicates if the field is optional
Returns:
the number component

addNumber

public LyNumber addNumber(java.lang.String fieldId,
                          java.lang.String fieldLabel,
                          java.lang.String itemLabel,
                          LyNumberFieldInfo.Type type,
                          boolean optional,
                          int pos)
Add a number field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
type - the number type
optional - indicates if the field is optional
pos - indicates the position of the field, -1 for the last position
Returns:
the number component

addDate

public LyDate addDate(java.lang.String fieldId,
                      java.lang.String fieldLabel,
                      java.lang.String itemLabel,
                      java.lang.String format,
                      boolean optional)
Add a date field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
format - the date format
optional - indicates if the field is optional
Returns:
the date component

addDate

public LyDate addDate(java.lang.String fieldId,
                      java.lang.String fieldLabel,
                      java.lang.String itemLabel,
                      java.lang.String format,
                      boolean optional,
                      int pos)
Add a date field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
format - the date format
optional - indicates if the field is optional
pos - indicates the position of the field, -1 for the last position
Returns:
the date component

addFile

public LyFile addFile(java.lang.String fieldId,
                      java.lang.String fieldLabel,
                      java.lang.String itemLabel,
                      LyFile.Type type,
                      boolean optional)
Add a file field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
type - the file type
optional - indicates if the field is optional
Returns:
the file component

addFile

public LyFile addFile(java.lang.String fieldId,
                      java.lang.String fieldLabel,
                      java.lang.String itemLabel,
                      LyFile.Type type,
                      boolean optional,
                      int pos)
Add a file field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
itemLabel - the initial value
type - the file type
optional - indicates if the field is optional
pos - indicates the position of the field, -1 for the last position
Returns:
the file component

addList

public LyList addList(java.lang.String fieldId,
                      java.lang.String fieldLabel,
                      boolean multiple,
                      int height,
                      boolean optional,
                      int pos)
Add a list field in the user input window.

Parameters:
fieldId - the field id
fieldLabel - the field label
multiple - indicates if selection mode is multiple in the list
height - the height of the list
optional - indicates if the field is optional
pos - indicates the position of the field, -1 for the last position
Returns:
the list component

addBoolean

public LyBoolean addBoolean(java.lang.String fieldId,
                            java.lang.String fieldLabel,
                            LyBoolean.Status status,
                            boolean optional)
Add a boolean field in the user input window.

Parameters:
fieldId - the id of the field
fieldLabel - the label of the field
status - the boolean status
optional - indicates if the choice is optional
Returns:
the boolean component

addBoolean

public LyBoolean addBoolean(java.lang.String fieldId,
                            java.lang.String fieldLabel,
                            LyBoolean.Status status,
                            boolean optional,
                            int pos)
Add a boolean field in the user input window.

Parameters:
fieldId - the id of the field
fieldLabel - the label of the field
status - the boolean status
optional - indicates if the choice is optional
pos - indicates the position of the field, -1 for the last position
Returns:
the boolean component

updateTitleBar

public void updateTitleBar()
Update titlebar ans set default content.

Overrides:
updateTitleBar in class LyAreaBuilder

setFormAlignment

public void setFormAlignment(LyFormBase.Align align)
Sets the alignment of the form.

Parameters:
align - The new alignment based on the LyForm ALIGN constants.

setFormBorder

public void setFormBorder(boolean border)
Sets the border of the form.

Parameters:
border - Indicates if border must be set on the form.

(c) January 2013 - W4 S.A.

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