Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

com.arcle.rmt.superwaba.ui.LayoutForm Class Reference

Provides layout functionalities for a form. More...

Inheritance diagram for com.arcle.rmt.superwaba.ui.LayoutForm:

com.arcle.rmt.superwaba.ui.Form List of all members.

Public Member Functions

 LayoutForm ()

Protected Member Functions

abstract Control[][] getFormControls ()
 Returns the child controls arranged in a two dimensional array.

void layoutControls (Container form, Control[][] controls)
 Strategy method that layouts controls in a container.

boolean isTextEntry (Control ctrl)
 Strategy Method that determines whether the specified control is a textual entry control (any edit-like controls).

boolean isMultilineTextEntry (Control ctrl)
void layoutChildren ()
 Strategy method.

Label createLabel (String caption)
 Factory Method to create Label objects for placement in the form.

MultiEdit createMultiEdit (String text, int rowCount, int spaceBetweenLines)
 Factory Method to create MultiEdit objects for placement in the form.

Edit createEdit (String text)
 Factory Method.


Detailed Description

Provides layout functionalities for a form.

Controls in this form are to be layout in a ThinkDB-like data-entry form.

Version:
Id
LayoutForm.java,v 1.11 2003/05/15 19:44:07 adib Exp
Author:
Sasmito Adibowo

Definition at line 82 of file LayoutForm.java.


Constructor & Destructor Documentation

com.arcle.rmt.superwaba.ui.LayoutForm.LayoutForm  ) 
 

Definition at line 83 of file LayoutForm.java.


Member Function Documentation

Edit com.arcle.rmt.superwaba.ui.LayoutForm.createEdit String  text  )  [protected]
 

Factory Method.

Definition at line 244 of file LayoutForm.java.

Label com.arcle.rmt.superwaba.ui.LayoutForm.createLabel String  caption  )  [protected]
 

Factory Method to create Label objects for placement in the form.

Definition at line 226 of file LayoutForm.java.

MultiEdit com.arcle.rmt.superwaba.ui.LayoutForm.createMultiEdit String  text,
int  rowCount,
int  spaceBetweenLines
[protected]
 

Factory Method to create MultiEdit objects for placement in the form.

Definition at line 236 of file LayoutForm.java.

abstract Control [][] com.arcle.rmt.superwaba.ui.LayoutForm.getFormControls  )  [protected, pure virtual]
 

Returns the child controls arranged in a two dimensional array.

The first dimension of the array contains the rows of the form. While the second dimension is a two-element array where index 0 is the label and index 1 is the field of the form.

Referenced by com.arcle.rmt.superwaba.ui.LayoutForm.layoutChildren().

boolean com.arcle.rmt.superwaba.ui.LayoutForm.isMultilineTextEntry Control  ctrl  )  [protected]
 

Definition at line 209 of file LayoutForm.java.

Referenced by com.arcle.rmt.superwaba.ui.LayoutForm.layoutControls().

boolean com.arcle.rmt.superwaba.ui.LayoutForm.isTextEntry Control  ctrl  )  [protected]
 

Strategy Method that determines whether the specified control is a textual entry control (any edit-like controls).

Definition at line 205 of file LayoutForm.java.

Referenced by com.arcle.rmt.superwaba.ui.LayoutForm.layoutControls().

void com.arcle.rmt.superwaba.ui.LayoutForm.layoutChildren  )  [protected, virtual]
 

Strategy method.

Implements com.arcle.rmt.superwaba.ui.Form.

Definition at line 217 of file LayoutForm.java.

References com.arcle.rmt.superwaba.ui.LayoutForm.getFormControls(), and com.arcle.rmt.superwaba.ui.LayoutForm.layoutControls().

void com.arcle.rmt.superwaba.ui.LayoutForm.layoutControls Container  form,
Control  controls[][]
[protected]
 

Strategy method that layouts controls in a container.

Parameters:
form The container in which the controls will be placed.
controls The controls to layout, arranged in a two dimensional array. The first dimension of the array contains the rows of the form. While the second dimension is a two-element array where index 0 is the label and index 1 is the field of the form.

Definition at line 105 of file LayoutForm.java.

References com.arcle.rmt.superwaba.ui.LayoutForm.isMultilineTextEntry(), and com.arcle.rmt.superwaba.ui.LayoutForm.isTextEntry().

Referenced by com.arcle.rmt.superwaba.ui.LayoutForm.layoutChildren().


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 19:55:24 2004 for Arcle Rambutan by doxygen 1.3.5