|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.karora.cooee.app.Component
org.karora.cooee.app.text.TextComponent
org.karora.cooee.app.TextArea
org.karora.cooee.app.ActiveTextArea
public class ActiveTextArea
A single-line text input field with pre keystroke regular expression testing
| Field Summary | |
|---|---|
static java.lang.String |
ACTION_VALIDATION_TRANSACTION
|
static java.lang.String |
INPUT_INVALID
|
static java.lang.String |
INPUT_VALID
|
static java.lang.String |
PROPERTY_BOTTOM_FOCUS_BORDER
|
static java.lang.String |
PROPERTY_FOCUS_BACKGROUND
|
static java.lang.String |
PROPERTY_FOCUS_BORDER
|
static java.lang.String |
PROPERTY_FOCUS_FOREGROUND
|
static java.lang.String |
PROPERTY_LEFT_FOCUS_BORDER
|
static java.lang.String |
PROPERTY_MAXIMUM_LENGTH
|
static java.lang.String |
PROPERTY_MSG_VISIBLE
|
static java.lang.String |
PROPERTY_RIGHT_FOCUS_BORDER
|
static java.lang.String |
PROPERTY_TOP_FOCUS_BORDER
|
| Constructor Summary | |
|---|---|
ActiveTextArea()
Creates a new ActiveTextArea with an empty
StringDocument as its model, and default width
setting. |
|
ActiveTextArea(Document document)
Creates a new ActiveTextArea with the specified
Document model. |
|
ActiveTextArea(Document document,
java.lang.String text,
int columns,
int rows)
Creates a new ActiveTextArea with the specified
Document model, initial text, and column width. |
|
| Method Summary | |
|---|---|
Border |
getBottomFocusBorder()
|
Color |
getFocusBackground()
Returns the current focus background color |
Border |
getFocusBorder()
Returns the current focus border |
Color |
getFocusForeground()
Returns the current focus background color |
Border |
getLeftFocusBorder()
|
int |
getMaxLength()
Gets maximum length for this text area. |
Border |
getRightFocusBorder()
|
Border |
getTopFocusBorder()
|
boolean |
isMessageVisible()
Returns whether the message is visible or not. |
void |
processInput(java.lang.String inputName,
java.lang.Object inputValue)
Processes client input specific to the Component
received from the UpdateManager. |
void |
setBottomFocusBorder(Border border)
|
void |
setFocusBackground(Color color)
|
void |
setFocusBorder(Border border)
|
void |
setFocusBorder(Border topBorder,
Border rightBorder,
Border bottomBorder,
Border leftBorder)
|
void |
setFocusForeground(Color color)
|
void |
setLeftFocusBorder(Border border)
|
void |
setMaxLength(int maxLength)
Sets the maximum length for this text area. |
void |
setMessageVisible(boolean isVisible)
Sets the status message to be always visible |
void |
setRightBottomFocusBorder(Border border)
|
void |
setRightFocusBorder(Border border)
|
void |
setTopFocusBorder(Border border)
|
void |
setTopLeftFocusBorder(Border border)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_FOCUS_BORDER
public static final java.lang.String PROPERTY_TOP_FOCUS_BORDER
public static final java.lang.String PROPERTY_RIGHT_FOCUS_BORDER
public static final java.lang.String PROPERTY_BOTTOM_FOCUS_BORDER
public static final java.lang.String PROPERTY_LEFT_FOCUS_BORDER
public static final java.lang.String PROPERTY_FOCUS_FOREGROUND
public static final java.lang.String PROPERTY_FOCUS_BACKGROUND
public static final java.lang.String ACTION_VALIDATION_TRANSACTION
public static final java.lang.String INPUT_VALID
public static final java.lang.String INPUT_INVALID
public static final java.lang.String PROPERTY_MAXIMUM_LENGTH
public static final java.lang.String PROPERTY_MSG_VISIBLE
| Constructor Detail |
|---|
public ActiveTextArea()
ActiveTextArea with an empty
StringDocument as its model, and default width
setting.
public ActiveTextArea(Document document)
ActiveTextArea with the specified
Document model.
document - the document
public ActiveTextArea(Document document,
java.lang.String text,
int columns,
int rows)
ActiveTextArea with the specified
Document model, initial text, and column width.
document - the documenttext - the initial text (may be null)columns - the number of columns to display| Method Detail |
|---|
public void processInput(java.lang.String inputName,
java.lang.Object inputValue)
ComponentComponent
received from the UpdateManager.
Derivative implementations should take care to invoke
super.processInput().
processInput in class TextComponentinputName - the name of the inputinputValue - the value of the inputComponent.processInput(java.lang.String, java.lang.Object)public void setMaxLength(int maxLength)
maxLength - the maximum length set to this text area.public int getMaxLength()
public void setMessageVisible(boolean isVisible)
isVisible - boolean value set to determinepublic boolean isMessageVisible()
public void setFocusBorder(Border border)
public Border getFocusBorder()
public void setFocusBorder(Border topBorder,
Border rightBorder,
Border bottomBorder,
Border leftBorder)
public void setTopLeftFocusBorder(Border border)
public void setRightBottomFocusBorder(Border border)
public void setTopFocusBorder(Border border)
public Border getTopFocusBorder()
public void setRightFocusBorder(Border border)
public Border getRightFocusBorder()
public void setBottomFocusBorder(Border border)
public Border getBottomFocusBorder()
public void setLeftFocusBorder(Border border)
public Border getLeftFocusBorder()
public void setFocusBackground(Color color)
public Color getFocusBackground()
public void setFocusForeground(Color color)
public Color getFocusForeground()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||