borland Packages  Class Hierarchy  internetbeans Package 

AbstractIxInput class (abstract)

java.lang.Object
   +----com.borland.internetbeans.IxComponent
           +----com.borland.internetbeans.AbstractIxDataWidget
                   +----com.borland.internetbeans.AbstractIxControl
                           +----com.borland.internetbeans.AbstractIxInput
                                   +----com.borland.internetbeans.AbstractIxBooleanInput
                                   +----com.borland.internetbeans.AbstractIxButton
                                   +----com.borland.internetbeans.IxHidden
                                   +----com.borland.internetbeans.IxTextField

About the AbstractIxInput class

Variables  Properties  Methods  

Implements ColumnAware, DataSetAware, Renderable, Serializable, Cloneable

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

Base class for all INPUT controls; knows that they should have a TYPE attribute and that they are empty elements.


AbstractIxInput variables

Variables implemented in this class

Variables implemented in com.borland.internetbeans.AbstractIxControl

Variables implemented in com.borland.internetbeans.AbstractIxDataWidget

Variables implemented in com.borland.internetbeans.IxComponent

AbstractIxInput properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in com.borland.internetbeans.AbstractIxControl

Properties implemented in com.borland.internetbeans.AbstractIxDataWidget

Properties implemented in com.borland.internetbeans.IxComponent

Properties implemented in java.lang.Object

AbstractIxInput methods

Methods implemented in this class

Methods implemented in com.borland.internetbeans.AbstractIxControl

Methods implemented in com.borland.internetbeans.AbstractIxDataWidget

Methods implemented in com.borland.internetbeans.IxComponent

Methods implemented in java.lang.Object


AbstractIxInput variables

SIZE_ATTRIBUTE

  protected static final String SIZE_ATTRIBUTE = "size"
Name of SIZE attribute, which indicates the size of the control in some way. For TEXT and PASSWORD controls, it is the width in characters; otherwise it is the width in pixels.

TAG_NAME

  public static final String TAG_NAME = "input"
Tag name for this type of element.

TYPE_ATTRIBUTE

  protected static final String TYPE_ATTRIBUTE = "type"
Name of TYPE attribute, which indicates the type of control, e.g. BUTTON, TEXT, CHECKBOX.

AbstractIxInput properties

size

 public int getSize()
 public void setSize(int newSize)
Value of SIZE attribute, which indicates the size of the control in some way. For TEXT and PASSWORD controls, it is the width in characters; otherwise it is the width in pixels.

AbstractIxInput methods

assembleElementBody(outWrap)

  protected void assembleElementBody(OutputWrapper outWrap)
Concretes IxComponent but does nothing; INPUT elements have no body.

Parameters:

outWrap
The stream-like output into which the content goes

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

assembleTagAttributes(outWrap)

  protected void assembleTagAttributes(OutputWrapper outWrap)
Generates the TYPE attribute, then via AbstractIxControl.assembleTagAttributes the NAME and VALUE atributes, and finally (if set greater than zero) the SIZE attribute. Subclasses should override to provide their own attributes after calling this method, so that the TYPE is first after the INPUT tag name.

Parameters:

outWrap
The stream-like output into which the content goes

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

getClosureTags()

  protected String[] getClosureTags()
Because INPUT elements are empty, no other tags would indicate closure.
Returns empty array.

Overrides: com.borland.internetbeans.IxComponent.getClosureTags()

getElementType()

  protected String getElementType()
Returns the tag name "input".

Overrides: com.borland.internetbeans.IxComponent.getElementType()

getInputType()

  protected abstract String getInputType()
Returns type of control, e.g. BUTTON, TEXT, CHECKBOX.

isElementEmpty()

  protected boolean isElementEmpty()
INPUT elements are always empty.
Returns true.

Overrides: com.borland.internetbeans.IxComponent.isElementEmpty()

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

  public void mergeTag(String tagName, Map attributes, boolean empty)
Called by PageProducer; do not call directly. Reads and stores the value of the SIZE attribute, removes the TYPE attribute because its value is 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.AbstractIxControl.mergeTag(java.lang.String, java.util.Map, boolean)