|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.text.JTextComponent | +--javax.swing.JTextArea | +--com.sssw.rt.jform.AgcJTextArea
A lightweight component that displays multiple lines of text and accepts text input from the user. It can be bound to a database column.
The model class that SilverStream associates with a text area control is PlainDocument, which is the same as for the basic swing component JTextArea.
AgcJTextField
,
AgcJEditorPane
, Serialized FormInner classes inherited from class javax.swing.JTextArea |
JTextArea.AccessibleJTextArea |
Inner classes inherited from class javax.swing.text.JTextComponent |
JTextComponent.AccessibleJTextComponent,
JTextComponent.KeyBinding |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Field Summary | |
static int |
NO_LIMIT
Used to remove a limit on the allowed number of characters. |
Fields inherited from class javax.swing.text.JTextComponent |
DEFAULT_KEYMAP,
FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
AgcJTextArea()
Creates an empty text area control. |
Method Summary | |
boolean |
getEmptyStringIsNull()
Finds out whether the control stores null or an empty string in the database when the field is empty. |
int |
getMaxLength()
Gets the maximum number of characters allowed in the text area. |
int |
getMinLength()
Gets the minimum number of characters required in the text area. |
void |
setEmptyStringIsNull(boolean b)
Specifies whether the control stores null in the database instead of the empty string when the field is empty. |
void |
setMaxLength(int length)
Sets the maximum number of characters the user is allowed to enter in the control. |
void |
setMinLength(int length)
Sets the minimum number of characters the user is required to enter in the control. |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Methods implemented from interface com.sssw.rt.form.AgiHelpInfo |
getHelpInfo,
setHelpInfo |
Field Detail |
public static final int NO_LIMIT
Constructor Detail |
public AgcJTextArea()
Method Detail |
public boolean getEmptyStringIsNull()
When the control is empty, the actual value is an empty string and
getText()
returns an empty string, regardless of the value
stored in the database.
AgcJTextArea.setEmptyStringIsNull(boolean)
public void setEmptyStringIsNull(boolean b)
b
- a boolean value specifying whether the control sends a null
or an empty string to the database.
To store null, specify true.
To store an empty string, specify false.AgcJTextArea.getEmptyStringIsNull()
public int getMaxLength()
AgcJTextArea.NO_LIMIT
constant.AgcJTextArea.setMaxLength(int)
,
AgcJTextArea.getMinLength()
public int getMinLength()
AgcJTextArea.NO_LIMIT
constant.AgcJTextArea.setMinLength(int)
,
AgcJTextArea.getMaxLength()
public void setMaxLength(int length)
AgcJTextArea.NO_LIMIT
to disable the limit.length
- an int specifying the maximum number of characters
If the user tries to enter a longer string, a validationFailed
event is fired.AgcJTextArea.getMaxLength()
public void setMinLength(int length)
AgcJTextArea.NO_LIMIT
to disable the limit.length
- an int specifying the minimum number of charactersAgcJTextArea.getMinLength()
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |