|
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.TextComponent | +--java.awt.TextArea | +--com.sssw.rt.atlas.AtTextArea | +--com.sssw.rt.form.AgcTextArea
A text editor that creates and maintains multi-line text that requires no special formatting like bold, italic, or underline.
Fields inherited from class java.awt.TextArea |
SCROLLBARS_BOTH,
SCROLLBARS_HORIZONTAL_ONLY,
SCROLLBARS_NONE,
SCROLLBARS_VERTICAL_ONLY |
Fields inherited from class java.awt.TextComponent |
textListener |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Fields inherited from interface com.sssw.rt.form.AgiControl |
IMAGE_MODE_CENTERED,
IMAGE_MODE_NORMAL,
IMAGE_MODE_STRETCH,
IMAGE_MODE_TILED |
Constructor Summary | |
AgcTextArea()
|
Method Summary | |
Color |
getBackgroundColor()
Deprecated. use Component.getBackground() . |
boolean |
getEditable()
Deprecated. use TextComponent.isEditable() . |
boolean |
getEmptyStringIsNull()
Returns true if the "value" of any empty text control should be null, instead of the empty String. |
AgoFontIdentifier |
getFontIdentifier()
Returns the SilverStream font object (AgoFontIdentifier) for the control's text. |
Color |
getTextColor()
Deprecated. use Component.getForeground() . |
void |
setBackgroundColor(Color backgroundcolor)
Deprecated. use Component.setBackground(Color) . |
void |
setEmptyStringIsNull(boolean b)
If set to true, then the value of an empty text control is null, instead of the empty String. |
void |
setFontIdentifier(AgoFontIdentifier fontidentifier)
Assigns the SilverStream font object (AgoFontIdentifier) to the control's text. |
void |
setTextColor(Color color)
Deprecated. use Component.setForeground(Color) . |
Methods inherited from class com.sssw.rt.atlas.AtTextArea |
deliverMouseEvent,
deliverMouseMoveEvent,
doAtCommand,
enableAtCommands,
getHelper,
getToolTipText,
getToolTipText,
grabFocus,
isFocusTraversable,
isRequestFocusEnabled,
preprocessKeyEvent,
processEvent,
requestFocus,
setRequestFocusEnabled,
setToolTipText |
Methods inherited from class java.awt.TextArea |
addNotify,
append,
appendText,
getColumns,
getMinimumSize,
getMinimumSize,
getPreferredSize,
getPreferredSize,
getRows,
getScrollbarVisibility,
insert,
insertText,
minimumSize,
minimumSize,
paramString,
preferredSize,
preferredSize,
replaceRange,
replaceText,
setColumns,
setRows |
Methods inherited from class java.awt.TextComponent |
addTextListener,
getCaretPosition,
getSelectedText,
getSelectionEnd,
getSelectionStart,
getText,
isEditable,
processTextEvent,
removeNotify,
removeTextListener,
select,
selectAll,
setCaretPosition,
setEditable,
setSelectionEnd,
setSelectionStart,
setText |
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.AgiControl |
getBackgroundImage,
getBackgroundImageMode,
getComponent,
getHelpInfo,
setBackgroundImage,
setBackgroundImageMode,
setHelpInfo |
Constructor Detail |
public AgcTextArea()
Method Detail |
public boolean getEmptyStringIsNull()
public void setEmptyStringIsNull(boolean b)
public AgoFontIdentifier getFontIdentifier()
The AgoFontIdentifier object consists of three parts: a Font Name, a Font Style and a Font Size. The Font Style can be one of these values:
The Font Name can be one of these values: Dialog, SansSerif, Serif, Monospaced, Helvetica, TimesRoman, Courier, DialogInput, Zapfdingbats.
At runtime, Java translates this value to the appropriate font installed on the system.
The Font Size can be any integer.
The following code fragment illustrates how to construct a new AgoFontIdentifier object (called newFont)
and how to call the getFontIdentifier()
method:
AgoFontIdentifier font; font = TextArea1.getFontIdentifier();
AgcTextArea.setFontIdentifier(AgoFontIdentifier)
,
Font Name property,
Font Size property,
Font Style propertypublic void setFontIdentifier(AgoFontIdentifier fontidentifier)
fontidentifier
- specifies the AgoFontIdentifier object that assigns the font for the controlThe AgoFontIdentifier object consists of three parts: a Font Name, a Font Style and a Font Size. The Font Name can be one of these values: Dialog, SansSerif, Serif, Monospaced, Helvetica, TimesRoman, Courier, DialogInput, Zapfdingbats. At runtime, Java translates this value to the appropriate font installed on the system.
The Font Size can be any integer.
The Font Style can be one of these values:
This code fragment illustrates how to construct a new AgoFontIdentifier object (called newFont) and how to call
the setFontIdentifier()
method:
AgoFontIdentifier newFont; String newName; int newSize; int newStyle; newName="TimesRoman"; newSize=20; newStyle=AgoFontIdentifier.ITALIC; newFont=new AgoFontIdentifier(newName, newStyle, newSize); TextArea1.setFontIdentifier(newFont);
AgcTextArea.getFontIdentifier()
,
Font Name property,
Font Size property,
Font Style propertypublic Color getBackgroundColor()
Component.getBackground()
.
This example illustrates how to obtain the background Color of a control.
Color bgColor; bgColor = TextArea1.getBackgroundColor();
AgcTextArea.setBackgroundColor(Color)
public void setBackgroundColor(Color backgroundcolor)
Component.setBackground(Color)
.
backgroundcolor
- the instance of a java.awt.Color object or one of the Color constants, for example, Color.red.For controls that support it, the Transparent property must be false for the background Color to show.
The following example illustrates how to set the background Color on a control using one of the Color constants:
TextArea1.setBackgroundColor(Color.white);This example illustrates how to create a new Color and then use it to set the background Color:
Color colLabelColor = new Color(247, 247, 222); TextArea1.setBackgroundColor(colLabelColor);
AgcTextArea.getBackgroundColor()
public boolean getEditable()
TextComponent.isEditable()
.
When getEditable returns true, the user can edit the text. If the control is enabled but not editable, the user cannot change the value of the text, but can select, copy, and scroll the text.
The following code fragment illustrates how to use the getEditable()
method.
boolean editable; editable = TextArea1.getEditable();
public Color getTextColor()
Component.getForeground()
.
The following code fragment illustrates how to use the getTextColor()
method.
Color c; c = TextArea1.getTextColor();
AgcTextArea.setTextColor(Color)
public void setTextColor(Color color)
Component.setForeground(Color)
.
color
- specifies the instance of a java.awt.Color Object
or one of the Color constants, for example, Color.red.The following code fragment illustrates how to set the text Color to red.
TextArea1.setTextColor(Color.red);
AgcTextArea.getTextColor()
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |