LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control.builder
Class LyTextBuilder

java.lang.Object
  extended by leon.control.builder.LyBuilder
      extended by leon.control.builder.LyAreaBuilder
          extended by leon.control.builder.LyTextBuilder

public class LyTextBuilder
extends LyAreaBuilder

Creates a view to show Text.

See Also:
LyTextController

Field Summary
static java.lang.String __VERSION
          File version
static int DEFAULT_TEXT_HEIGHT
          Default text height
static int DEFAULT_TEXT_WIDTH
          Default text width
 
Constructor Summary
LyTextBuilder(LyController parent)
          Default constructor.
 
Method Summary
 LyComponent build()
          Builds the view component for the specified parent controller.
 void completeMenuBar(LyMenuBar menuBar, int level)
          This method is invoked to enable the the area to complete the menuBar of the view and add its own menu items.
 LyText setText(java.lang.String fieldId, java.lang.String fieldLabel, java.lang.String itemLabel, int nCols, int nRows, java.lang.String format, boolean optional)
          Add a text field in the user input window.
 
Methods inherited from class leon.control.builder.LyAreaBuilder
buildComponent, 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

DEFAULT_TEXT_WIDTH

public static int DEFAULT_TEXT_WIDTH
Default text width


DEFAULT_TEXT_HEIGHT

public static int DEFAULT_TEXT_HEIGHT
Default text height

Constructor Detail

LyTextBuilder

public LyTextBuilder(LyController parent)
Default constructor.

Parameters:
parent - Parent controller of this builder
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

setText

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

Parameters:
fieldId - Id of the field
fieldLabel - Label of the field
itemLabel - Text to display
nCols - Number of columns of the text field
nRows - Number of rows of the text field
format - Format of the text Field (See also tag of leon.dtd)
optional - In user input mode, tells if the field is optional
Returns:
The text component created.

completeMenuBar

public void completeMenuBar(LyMenuBar menuBar,
                            int level)
This method is invoked to enable the the area to complete the menuBar of the view and add its own menu items. Default implementation invokes the method on the builder instance.

Overrides:
completeMenuBar in class LyAreaBuilder
Parameters:
menuBar - the menuBar structure
level - : level of current Controller. one of the LEVEL_XXX contants in LyViewController
See Also:
LyViewController

(c) January 2013 - W4 S.A.

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