|
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.JPanel
|
+--com.sssw.rt.atlas.AtPanel
|
+--com.sssw.rt.form.PvBasePanel
|
+--com.sssw.rt.form.AgcRectangle
The AgcRectangle control (Rectangle) provides a way to visually organize or group other controls on a form. It may be used to group Radio Buttons, database navigation buttons, or other related controls or images. Rectangles are display-only. Note that Non-SilverStream controls may not participate in the SilverStream transparency scheme. For this reason, it is recommented that all rectangle controls be place behind othercontrols so they do not occlude them.
| Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Field Summary | |
static int |
BORDER_GROOVED
Draw a grooved border. |
static int |
BORDER_LOWERED
Draw a lowered border. |
static int |
BORDER_NONE
No border is displayed. |
static int |
BORDER_OUTLINE
Draw a one-pixel border. |
static int |
BORDER_RAISED
Draw a raised border. |
| Fields inherited from class com.sssw.rt.atlas.AtPanel |
BGIMAGE_DRAW_CENTERED,
BGIMAGE_DRAW_NORMAL,
BGIMAGE_DRAW_STRETCH,
BGIMAGE_DRAW_TILED |
| 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 | |
AgcRectangle()
|
|
| Method Summary | |
int |
getBorderStyle()
Returns the control's border style. |
Color |
getColor()
Returns the control's fill Color. |
Color |
getForeground()
Returns the Color of the control's text. |
String |
getText()
Get the label text of the rectangle. |
Color |
getTextColor()
Deprecated. use AgcRectangle.getForeground() |
void |
setBackground(Color color)
Assigns an instance of the java.awt.Color to the control's background. |
void |
setBorderStyle(int style)
Assigns a style for the control's border. |
void |
setColor(Color color)
Assigns the control's fill Color. |
void |
setFontIdentifier(AgoFontIdentifier font)
Assigns the SilverStream font object (AgoFontIdentifier) to the control's text. |
void |
setForeground(Color color)
Assigns an instance of the java.awt.Color to the control's text. |
void |
setText(String text)
Assigns the control's text. |
void |
setTextColor(Color color)
Deprecated. use AgcRectangle.setForeground(Color) |
| Methods inherited from class com.sssw.rt.form.PvBasePanel |
getBackgroundColor,
getFontIdentifier,
setBackgroundColor |
| Methods inherited from class com.sssw.rt.atlas.AtPanel |
addImpl,
addNotify,
clientPaint,
clientPaint,
deliverMouseEvent,
deliverMouseMoveEvent,
doAtCommand,
drawTiledImage,
enableAtCommands,
getBackgroundImage,
getBackgroundImageMode,
getHelper,
getTransparent,
hide,
hideToolTip,
imageUpdate,
isFocusTraversable,
isOptimizedDrawingEnabled,
ownedImage,
paintBorder,
paintComponent,
paintImmediately,
paintImmediately,
paintNow,
preprocessKeyEvent,
processEvent,
reshape,
setBackgroundImage,
setBackgroundImageMode,
setTransparent,
show,
showToolTip |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
printComponents,
processContainerEvent,
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.AgiControl |
getComponent,
getHelpInfo,
setHelpInfo |
| Field Detail |
public static final int BORDER_NONE
AgcRectangle.getBorderStyle(),
AgcRectangle.setBorderStyle(int)public static final int BORDER_OUTLINE
AgcRectangle.getBorderStyle(),
AgcRectangle.setBorderStyle(int)public static final int BORDER_LOWERED
AgcRectangle.getBorderStyle(),
AgcRectangle.setBorderStyle(int)public static final int BORDER_RAISED
AgcRectangle.getBorderStyle(),
AgcRectangle.setBorderStyle(int)public static final int BORDER_GROOVED
AgcRectangle.getBorderStyle(),
AgcRectangle.setBorderStyle(int)| Constructor Detail |
public AgcRectangle()
| Method Detail |
public String getText()
The following code fragment illustrates how to call getText().
String s; s = ControlName1.getText();
AgcRectangle.setText(String)public void setText(String text)
text - specifies the text to assign to the controlThe following code fragment illustrates how to use the setText() method.
ControlName1.setText("Add");
AgcRectangle.getText()public Color getTextColor()
AgcRectangle.getForeground()
The following code fragment illustrates how to use the getTextColor() method.
Color c; c = ControlName1.getTextColor();
AgcRectangle.setTextColor(Color)public Color getForeground()
The following code fragment illustrates how to use the getTextColor() method.
Color c; c = ControlName1.getForeground();
AgcRectangle.setForeground(Color)public void setTextColor(Color color)
AgcRectangle.setForeground(Color)
color - specifies the instance of a java.awt.Color Object or one of the Color constants, for example, Color.redThe following code fragment illustrates how to set the text Color to red.
ControlName1.setTextColor(Color.red);
AgcRectangle.getTextColor()public void setForeground(Color color)
color - specifies the instance of a java.awt.Color Object or one of the Color constants, for example, Color.redThe following code fragment illustrates how to set the text Color to red.
ControlName1.setForeground(Color.red);
AgcRectangle.getForeground()public void setBackground(Color color)
color - specifies the instance of a java.awt.Color Object or one of the Color constants, for example, Color.redThe following code fragment illustrates how to set the background Color to red.
ControlName1.setBackground(Color.red);
public void setFontIdentifier(AgoFontIdentifier font)
font - specifies the AgoFontIdentifier object that assigns the font for the control.
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); ControlName1.setFontIdentifier(newFont);
AgoFontIdentifier,
PvBasePanel.getFontIdentifier(),
Font Name property,
Font Size property,
Font Style propertypublic Color getColor()
AgcRectangle.setColor(Color)public void setColor(Color color)
color - specifies the instance of a java.awt.Color object or one of the color constants (e.g., Color.red)The following code fragment illustrates how to set the color of a control to red.
ControlName1.setColor(Color.red);
AgcRectangle.getColor()public int getBorderStyle()
The following code fragment illustrates how to obtain the border style.
int borderStyle; borderStyle = ControlName1.getBorderStyle();
AgcRectangle.setBorderStyle(int)public void setBorderStyle(int style)
style - specifies the border styleThese constants must be qualified with the classname, for example, AgcRectangle.BORDER_OUTLINE.
The following code fragment illustrates how to set a rectangle's border style to none.
ControlName1.setBorderStyle(AgcRectangle.BORDER_NONE);
AgcRectangle.getBorderStyle(),
Border Style property
|
SilverStream Application Server 3.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||