borland Packages  Class Hierarchy  internetbeans Package 

AbstractIxControl class (abstract)

java.lang.Object
   +----com.borland.internetbeans.IxComponent
           +----com.borland.internetbeans.AbstractIxDataWidget
                   +----com.borland.internetbeans.AbstractIxControl
                           +----com.borland.internetbeans.AbstractIxInput
                           +----com.borland.internetbeans.AbstractIxList
                           +----com.borland.internetbeans.IxControl
                           +----com.borland.internetbeans.IxTextArea

About the AbstractIxControl class

Variables  Properties  Methods  

Implements ColumnAware, DataSetAware, Renderable, Serializable, Cloneable

Note: This package is a feature of JBuilder Professional and Enterprise.

Base class for any control inside a form, which (with some very specific exceptions) always have a control name and value.

Although the form name/number is returned by the HTML parser and stored in the object, it is not used in the current version. This means that you may have more than one form, and all controls with the same name will use the same component.


AbstractIxControl variables

Variables implemented in this class

Variables implemented in com.borland.internetbeans.AbstractIxDataWidget

Variables implemented in com.borland.internetbeans.IxComponent

AbstractIxControl properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in com.borland.internetbeans.AbstractIxDataWidget

Properties implemented in com.borland.internetbeans.IxComponent

Properties implemented in java.lang.Object

AbstractIxControl methods

Methods implemented in this class

Methods implemented in com.borland.internetbeans.AbstractIxDataWidget

Methods implemented in com.borland.internetbeans.IxComponent

Methods implemented in java.lang.Object


AbstractIxControl variables

NAME_ATTRIBUTE

  protected static final String NAME_ATTRIBUTE = "name"
Name of NAME attribute, which identifies controls in a form (and the values that will be sent in a HTTP POST).

VALUE_ATTRIBUTE

  protected static final String VALUE_ATTRIBUTE = "value"
Name of VALUE attribute, which contains the string displayed in the control.

AbstractIxControl properties

controlName

 public String getControlName()
 public void setControlName(String newHtmlName)
Value of NAME attribute, which identifies controls in a form (and the values that will be sent in a HTTP POST).

formName

 public String getFormName()
 public void setFormName(String name)
A page may have more than one form, and may have a name.

Although the form name is returned by the HTML parser and stored in the object, it is not used in the current version. This means that you may have more than one form, and all controls with the same name will use the same component.

formNumber

 public int getFormNumber()
 public void setFormNumber(int number)
A page may have more than one form. They are numbered, starting with zero.

Although the form number is returned by the HTML parser and stored in the object, it is not used in the current version. This means that you may have more than one form, and all controls with the same name will use the same component.

identifier

 public String getIdentifier()
Returns ID attribute, if set; otherwise uses control name, mangled so that it cannot conflict with other IDs.

requestParameterValue

 public void setRequestParameterValue(String value)
Reacts to a matching parameter in the request by setting the control value. Parameters names are matched via getIdentifier.

Parameters:

value
New value

See also: value

value

 public void setValue(String newValue)

Overrides: AbstractIxDataWidget to add write access to the component's data model.


AbstractIxControl methods

assembleTagAttributes(outWrap)

  protected void assembleTagAttributes(OutputWrapper outWrap)
Generates the NAME and (for empty elements) VALUE attributes.

Parameters:

outWrap
The stream-like output into which the content goes

Overrides: com.borland.internetbeans.IxComponent.assembleTagAttributes(outWrap)

controlName(int, java.lang.String)

  public static String controlName(int formNumber, String controlName)
Returns what the identifier would be for a particular control, using an internal scheme for generating names that do not conflict with ID attributes.

Parameters:

formNumber
Number of form. This argument is ignored in the current version.
controlName
Name of control
Returns identifier string.

See also: IxComponent#getIdentifier

controlName(java.lang.String, java.lang.String)

  public static String controlName(String formName, String controlName)
Returns what the identifier would be for a particular control, using an internal scheme for generating names that do not conflict with ID attributes.

Parameters:

formName
Name of form. This argument is ignored in the current version.
controlName
Name of control
Returns identifier string.

See also: IxComponent#getIdentifier

mergeTag(java.lang.String, java.util.Map, boolean)

  public void mergeTag(String tagName, Map attributes, boolean empty)
Called by PageProducer; do not call directly. Removes the NAME and VALUE attribute, because their values are always generated, then calls super.

Parameters:

tagName
Name of the matching tag, e.g. INPUT, SELECT
attributes
Map of attribute values
empty
Whether the source tag was empty

Overrides: com.borland.internetbeans.IxComponent.mergeTag(java.lang.String, java.util.Map, boolean)