|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.text.TextComponent
nextapp.echo.TextField
echopoint.TextField
public class TextField
echopoint.TextField
is derived from the nextapp.echo.TextField
and adds extra functionality such as validation, better tool tips and
Borderable support.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface echopoint.positionable.Borderable |
---|
Borderable.NestedStyleInfo |
Nested classes/interfaces inherited from interface echopoint.positionable.MouseCursorable |
---|
MouseCursorable.NestedStyleInfo |
Field Summary |
---|
Fields inherited from interface echopoint.positionable.MouseCursorable |
---|
borderStyleSymbolics, CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, STYLE_MOUSE_CURSOR, STYLE_MOUSE_CURSOR_URI |
Fields inherited from interface nextapp.echo.ToolTipSupport |
---|
TOOL_TIP_TEXT_CHANGED_PROPERTY |
Constructor Summary | |
---|---|
TextField()
Creates a new text field. |
|
TextField(Document document)
Creates a new text field with the given document model. |
|
TextField(Document document,
java.lang.String text,
int columns)
Creates a new text field with the given document model, text and number of columns. |
|
TextField(int columns)
Creates a new text field with the given number of columns. |
|
TextField(java.lang.String text)
Creates a new text field with the given text. |
|
TextField(java.lang.String text,
int columns)
Creates a new text field with the given text and number of columns. |
Method Summary | |
---|---|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
Color |
getBorderColor()
Returns the border color. |
int |
getBorderSize()
Returns the border size. |
int |
getBorderStyle()
Returns the border style. |
Color |
getBottomBorderColor()
|
int |
getBottomBorderSize()
|
int |
getBottomBorderStyle()
|
Color |
getLeftBorderColor()
|
int |
getLeftBorderSize()
|
int |
getLeftBorderStyle()
|
int |
getMouseCursor()
Returns the current mouse cursor in use. |
java.lang.String |
getMouseCursorURI()
|
Color |
getRightBorderColor()
|
int |
getRightBorderSize()
|
int |
getRightBorderStyle()
|
ValidationRuleSet |
getRuleSet()
Returns the ValidationRuleSet used for validation. |
ToolTipPopUp |
getToolTipPopUp()
Returns the ToolTipPopUp component used to
configure the rich tool tip support. |
java.lang.String |
getToolTipText()
Returns the default tool tip text. |
Color |
getTopBorderColor()
|
int |
getTopBorderSize()
|
int |
getTopBorderStyle()
|
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
|
void |
setBorderColor(Color newBorderColor)
Sets the border color. |
void |
setBorderSize(int newBorderSize)
Sets the border size. |
void |
setBorderStyle(int borderStyle)
Sets the border style. |
void |
setBottomBorderColor(Color borderColor)
Sets the Color of the Borderable's bottom border. |
void |
setBottomBorderSize(int borderSize)
Sets the size of the Borderables's bottom border. |
void |
setBottomBorderStyle(int borderStyle)
Sets the border style of the Borderables's bottom border. |
void |
setLeftBorderColor(Color borderColor)
Sets the Color of the Borderable's left border. |
void |
setLeftBorderSize(int borderSize)
Sets the size of the Borderables's left border. |
void |
setLeftBorderStyle(int borderStyle)
Sets the border style of the Borderables's left border. |
void |
setMouseCursor(int mouseCursor)
Sets the mouse cursor to use. |
void |
setMouseCursorURI(java.lang.String mouseCursorURI)
Sets the URI to a custom platform mouse cursor. |
void |
setRightBorderColor(Color borderColor)
Sets the Color of the Borderable's right border. |
void |
setRightBorderSize(int borderSize)
Sets the size of the Borderables's right border. |
void |
setRightBorderStyle(int borderStyle)
Sets the border style of the Borderables's right border. |
void |
setRuleSet(ValidationRuleSet validationRuleSet)
Sets the ValidationRuleSet to use for validation |
void |
setToolTipText(java.lang.String newValue)
Sets the default tool tip text. |
void |
setTopBorderColor(Color borderColor)
Sets the Color of the Borderable's top border. |
void |
setTopBorderSize(int borderSize)
Sets the size of the Borderables's top border. |
void |
setTopBorderStyle(int borderStyle)
Sets the border style of the Borderables's top border. |
void |
validate()
Validates this component. |
Methods inherited from class nextapp.echo.text.TextComponent |
---|
getCssClass, getDocument, getHorizontalAlignment, getText, isEditable, setCssClass, setDocument, setEditable, setHorizontalAlignment, setText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface echopoint.validation.Validateable |
---|
getIdentifier, getLocale, getText |
Constructor Detail |
---|
public TextField()
public TextField(java.lang.String text)
text
- The initial text in the text field.public TextField(int columns)
columns
- The number of columns that will be displayed in the text
field.public TextField(java.lang.String text, int columns)
text
- The initial text in the text field.columns
- The number of columns that will be displayed in the text
field.public TextField(Document document)
document
- The model for this text field.public TextField(Document document, java.lang.String text, int columns)
document
- The model for this text field.text
- The initial text in the text field.columns
- The number of columns that will be displayed in the text
field.Method Detail |
---|
public ValidationRuleSet getRuleSet()
getRuleSet
in interface Validateable
Validateable.getRuleSet()
public void setRuleSet(ValidationRuleSet validationRuleSet)
validationRuleSet
- - the ValidationRuleSet to use for validationValidateable.getRuleSet()
public Color getBorderColor()
TextComponent
getBorderColor
in interface Borderable
getBorderColor
in class TextComponent
Borderable.getBorderColor()
public int getBorderSize()
TextComponent
getBorderSize
in interface Borderable
getBorderSize
in class TextComponent
Borderable.getBorderSize()
public int getBorderStyle()
TextComponent
getBorderStyle
in interface Borderable
getBorderStyle
in class TextComponent
Borderable.getBorderStyle()
public void setBorderColor(Color newBorderColor)
TextComponent
setBorderColor
in interface Borderable
setBorderColor
in class TextComponent
newBorderColor
- The new border color.Borderable.setBorderColor(nextapp.echo.Color)
public void setBorderSize(int newBorderSize)
TextComponent
setBorderSize
in interface Borderable
setBorderSize
in class TextComponent
newBorderSize
- The new border size, in pixels.Borderable.setBorderSize(int)
public void setBorderStyle(int borderStyle)
TextComponent
setBorderStyle
in interface Borderable
setBorderStyle
in class TextComponent
borderStyle
- The new border style, one of the following values:
Borderable.setBorderStyle(int)
public Color getLeftBorderColor()
getLeftBorderColor
in interface Borderable
Color
of the Borderable's
left border.Borderable.getLeftBorderColor()
public int getLeftBorderSize()
getLeftBorderSize
in interface Borderable
Borderables's
left border.Borderable.getLeftBorderSize()
public int getLeftBorderStyle()
getLeftBorderStyle
in interface Borderable
Borderables's
left border.Borderable.getLeftBorderStyle()
public void setLeftBorderColor(Color borderColor)
Borderable
Color
of the Borderable's
left border.
setLeftBorderColor
in interface Borderable
Borderable.setLeftBorderColor(nextapp.echo.Color)
public void setLeftBorderSize(int borderSize)
Borderable
Borderables's
left border.
setLeftBorderSize
in interface Borderable
Borderable.setLeftBorderSize(int)
public void setLeftBorderStyle(int borderStyle)
Borderable
Borderables's
left border.
setLeftBorderStyle
in interface Borderable
Borderable.setLeftBorderStyle(int)
public Color getTopBorderColor()
getTopBorderColor
in interface Borderable
Color
of the Borderable's
top border.Borderable.getTopBorderColor()
public int getTopBorderSize()
getTopBorderSize
in interface Borderable
Borderables's
top border.Borderable.getTopBorderSize()
public int getTopBorderStyle()
getTopBorderStyle
in interface Borderable
Borderables's
top border.Borderable.getTopBorderStyle()
public void setTopBorderColor(Color borderColor)
Borderable
Color
of the Borderable's
top border.
setTopBorderColor
in interface Borderable
Borderable.setTopBorderColor(nextapp.echo.Color)
public void setTopBorderSize(int borderSize)
Borderable
Borderables's
top border.
setTopBorderSize
in interface Borderable
Borderable.setTopBorderSize(int)
public void setTopBorderStyle(int borderStyle)
Borderable
Borderables's
top border.
setTopBorderStyle
in interface Borderable
Borderable.setTopBorderStyle(int)
public Color getRightBorderColor()
getRightBorderColor
in interface Borderable
Color
of the Borderable's
right border.Borderable.getRightBorderColor()
public int getRightBorderSize()
getRightBorderSize
in interface Borderable
Borderables's
right border.Borderable.getRightBorderSize()
public int getRightBorderStyle()
getRightBorderStyle
in interface Borderable
Borderables's
right border.Borderable.getRightBorderStyle()
public void setRightBorderColor(Color borderColor)
Borderable
Color
of the Borderable's
right border.
setRightBorderColor
in interface Borderable
Borderable.setRightBorderColor(nextapp.echo.Color)
public void setRightBorderSize(int borderSize)
Borderable
Borderables's
right border.
setRightBorderSize
in interface Borderable
Borderable.setRightBorderSize(int)
public void setRightBorderStyle(int borderStyle)
Borderable
Borderables's
right border.
setRightBorderStyle
in interface Borderable
Borderable.setRightBorderStyle(int)
public Color getBottomBorderColor()
getBottomBorderColor
in interface Borderable
Color
of the Borderable's
bottom border.Borderable.getBottomBorderColor()
public int getBottomBorderSize()
getBottomBorderSize
in interface Borderable
Borderables's
bottom border.Borderable.getBottomBorderSize()
public int getBottomBorderStyle()
getBottomBorderStyle
in interface Borderable
Borderables's
bottom border.Borderable.getBottomBorderStyle()
public void setBottomBorderColor(Color borderColor)
Borderable
Color
of the Borderable's
bottom border.
setBottomBorderColor
in interface Borderable
Borderable.setBottomBorderColor(nextapp.echo.Color)
public void setBottomBorderSize(int borderSize)
Borderable
Borderables's
bottom border.
setBottomBorderSize
in interface Borderable
Borderable.setBottomBorderSize(int)
public void setBottomBorderStyle(int borderStyle)
Borderable
Borderables's
bottom border.
setBottomBorderStyle
in interface Borderable
Borderable.setBottomBorderStyle(int)
public ToolTipPopUp getToolTipPopUp()
ToolTipPopUpSupport
ToolTipPopUp
component used to
configure the rich tool tip support.
getToolTipPopUp
in interface ToolTipPopUpSupport
ToolTipPopUpSupport.getToolTipPopUp()
public java.lang.String getToolTipText()
ToolTipSupport
getToolTipText
in interface ToolTipSupport
getToolTipText
in class TextComponent
ToolTipSupport.getToolTipText()
public void setToolTipText(java.lang.String newValue)
ToolTipSupport
setToolTipText
in interface ToolTipSupport
setToolTipText
in class TextComponent
newValue
- The new tool tip text.ToolTipSupport.setToolTipText(java.lang.String)
public int getMouseCursor()
MouseCursorable
getMouseCursor
in interface MouseCursorable
MouseCursorable.getMouseCursor()
public java.lang.String getMouseCursorURI()
getMouseCursorURI
in interface MouseCursorable
MouseCursorable.getMouseCursorURI()
public void setMouseCursor(int mouseCursor)
MouseCursorable
setMouseCursor
in interface MouseCursorable
mouseCursor
- - the mouse cursor to useMouseCursorable.setMouseCursor(int)
public void setMouseCursorURI(java.lang.String mouseCursorURI)
MouseCursorable
setMouseCursorURI
in interface MouseCursorable
mouseCursorURI
- the URI to a custom platform mouse cursor.MouseCursorable.setMouseCursorURI(java.lang.String)
public void validate()
Component
validate()
is not inadvisable.
validate
in interface Component
validate
in class AbstractComponent
Component.validate()
public void applyStyle(Style style)
Component
Style
object. The version of this method in Component
will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
applyStyle
in interface Borderable
applyStyle
in interface MouseCursorable
applyStyle
in interface Component
applyStyle
in class TextField
style
- The style object from which to retrieve properties for this
Component
.Borderable.applyStyle(nextapp.echo.Style)
public java.lang.Object set(java.lang.reflect.Field field, java.lang.Object newValue) throws java.lang.Exception
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |