|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.Input
org.pajes.html.InputField
org.pajes.html.InputTextArea
public class InputTextArea
This class creates an multi-line input text area in a form.
| Field Summary | |
|---|---|
static int |
WRAP_DEFAULT
Uses the browser default for wrapping. |
static int |
WRAP_HARD
Turns on physical (hard) wrapping. |
static int |
WRAP_OFF
Turns off wrapping. |
static int |
WRAP_ON
Turns on wrapping using the browser default. |
static int |
WRAP_PHYSICAL
Turns on physical (hard) wrapping. |
static int |
WRAP_SOFT
Turns on virtual (soft) wrapping. |
static int |
WRAP_VIRTUAL
Turns on virtual (soft) wrapping. |
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
InputTextArea(Form form,
java.lang.String name)
Create a Textarea for the user to enter in multiline input field with a default size of 40 columns and 4 rows. |
|
InputTextArea(Form form,
java.lang.String name,
java.lang.String value)
Create a Textarea for the user to enter in multiline input field with a default size of 40 columns and 4 rows. |
|
InputTextArea(Form form,
java.lang.String name,
java.lang.String value,
int columnCount)
Create a Textarea for the user to enter in multiline input field. |
|
InputTextArea(Form form,
java.lang.String name,
java.lang.String value,
int columnCount,
int rowCount)
Create a Textarea for the user to enter in multiline input field. |
|
InputTextArea(Form form,
java.lang.String name,
java.lang.String value,
int columnCount,
int rowCount,
boolean autoWrapText)
Create a Textarea for the user to enter in multiline input field. |
|
InputTextArea(Form form,
java.lang.String name,
java.lang.String value,
int columnCount,
int rowCount,
boolean autoWrapText,
boolean sendCRtoServer)
Create a Textarea for the user to enter in multiline input field. |
|
InputTextArea(InputField source)
Creates a text area. |
|
| Method Summary | |
|---|---|
java.lang.String |
getValue()
Returns the value attribute of this INPUT element. |
protected void |
init()
Called by the constructor and the Tag.destroy() method to correctly
clear and initialise internal variables. |
protected void |
setAttribute(TagAttribute attribute)
Adds the specified attribute. |
InputTextArea |
setAutoWrapText(boolean autoWrapText)
Sets whether the text should wrap in the text area. |
InputTextArea |
setAutoWrapText(int method)
Sets whether the text should wrap in the text area. |
InputTextArea |
setColumnCount(int columnCount)
Sets the width of the text area in columns. |
InputTextArea |
setRowCount(int rowCount)
Sets the number of lines of the text area. |
InputTextArea |
setSendCRtoServer(boolean sendCRtoServer)
Changes wrapping from virtual to physical or physical to virtual. |
Input |
setValue(java.lang.String value)
Sets the value attribute of this INPUT tag. |
void |
writeContent(Browser browser)
Writes the <input> tag to the browser. |
| Methods inherited from class org.pajes.html.InputField |
|---|
getClientValidation, getMaxLength, getSize, isMandatory, setMandatory, setMandatory, setMandatory, setMaxLength, setMaxLength, setSize, setSize |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.pajes.html.InputValidation |
|---|
getDOMReference, getName, isRequiringValidation, setOnBlurValidation |
| Field Detail |
|---|
public static final int WRAP_DEFAULT
setAutoWrapText(boolean),
Constant Field Valuespublic static final int WRAP_OFF
setAutoWrapText(boolean),
Constant Field Valuespublic static final int WRAP_ON
setAutoWrapText(boolean),
Constant Field Valuespublic static final int WRAP_HARD
setAutoWrapText(boolean),
Constant Field Valuespublic static final int WRAP_PHYSICAL
setAutoWrapText(boolean),
Constant Field Valuespublic static final int WRAP_SOFT
setAutoWrapText(boolean),
Constant Field Valuespublic static final int WRAP_VIRTUAL
setAutoWrapText(boolean),
Constant Field Values| Constructor Detail |
|---|
public InputTextArea(Form form,
java.lang.String name)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name to apply to the input object, so that it may be
manipulated using client-side JavaScript.
public InputTextArea(Form form,
java.lang.String name,
java.lang.String value)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name to apply to the input object, so that it may be
manipulated using client-side JavaScript.value - the default value to assign to the field.
public InputTextArea(Form form,
java.lang.String name,
java.lang.String value,
int columnCount)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name to apply to the input object, so that it may be
manipulated using client-side JavaScript.value - the default value to assign to the field.columnCount - -
The width of the text area in columns
public InputTextArea(Form form,
java.lang.String name,
java.lang.String value,
int columnCount,
int rowCount)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name to apply to the input object, so that it may be
manipulated using client-side JavaScript.value - the default value to assign to the field.columnCount - -
The with of the text area in columnsrowCount - -
The nuber of rows displayed in the text area
public InputTextArea(Form form,
java.lang.String name,
java.lang.String value,
int columnCount,
int rowCount,
boolean autoWrapText)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name to apply to the input object, so that it may be
manipulated using client-side JavaScript.value - the default value to assign to the field.columnCount - -
The with of the text area in columnsrowCount - -
The nuber of rows displayed in the text areaautoWrapText - -
Set to true if you want the text to wrap
public InputTextArea(Form form,
java.lang.String name,
java.lang.String value,
int columnCount,
int rowCount,
boolean autoWrapText,
boolean sendCRtoServer)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name to apply to the input object, so that it may be
manipulated using client-side JavaScript.value - the default value to assign to the field.columnCount - -
The with of the text area in columnsrowCount - -
The nuber of rows displayed in the text areaautoWrapText - -
Set to true if you want the text to wrapsendCRtoServer - -
if the text is set to autowrap and you want the enter/returns
sent to the server set this to truepublic InputTextArea(InputField source)
source - the input field from which this input field will be created.| Method Detail |
|---|
public java.lang.String getValue()
getValue in class Inputpublic InputTextArea setAutoWrapText(boolean autoWrapText)
autoWrapText - true if you want the text to wrap, or false to use the browser
default setting.
public InputTextArea setAutoWrapText(int method)
method - one of WRAP_DEFAULT, WRAP_OFF, WRAP_ON, WRAP_VIRTUAL or WRAP_PHYSICAL.
java.lang.IllegalArgumentException - if an invalid method is specified.public InputTextArea setColumnCount(int columnCount)
columnCount - the width of the text area in columns
public InputTextArea setRowCount(int rowCount)
rowCount - the number of lines of the text area.
public InputTextArea setSendCRtoServer(boolean sendCRtoServer)
sendCRtoServer - -
if the text is set to autowrap and you want the enter/returns
sent to the server set this to true
public Input setValue(java.lang.String value)
setValue in class Inputvalue - the value to assign.
public void writeContent(Browser browser)
throws java.io.IOException
writeContent in class Tagbrowser - the browser to which the results are to be output.
java.io.IOException - if an I/O error occurs writing to the browser.Tag.setWriteEndTag(boolean)protected void init()
Tag.destroy() method to correctly
clear and initialise internal variables.
init in class Tagprotected void setAttribute(TagAttribute attribute)
setAttribute in class Tagattribute - The attribute.
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||