|
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.JLabel | +--com.sssw.rt.jform.AgcJLabel
A lightweight component that displays label text, an image, or both. To display multiline text, you can turn on word-wrapping. The label text can have text effects, such as drop shadow or embossing.
AgcJLabel is not a data-bound control and doesn't use a model for the displayed information.
Inner classes inherited from class javax.swing.JLabel |
JLabel.AccessibleJLabel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Field Summary | |
static int |
STYLE_DROP_SHADOW
Shadow effect (uses the text and shadow colors) |
static int |
STYLE_EMBOSSED
Embossed effect (uses the text, shadow, and highlight colors) |
static int |
STYLE_NORMAL
Regular, flat text (uses the text color only) |
Fields inherited from class javax.swing.JLabel |
labelFor |
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 | |
AgcJLabel()
Creates an instance of a label control with no image and with an empty string for the title. |
|
AgcJLabel(Icon image)
Creates an instance of a label control with the specified image. |
|
AgcJLabel(Icon image,
int horizontalAlignment)
Creates an instance of a label control with the specified image and horizontal alignment. |
|
AgcJLabel(String text)
Creates an instance of a label control with the specified text. |
|
AgcJLabel(String text,
Icon icon,
int horizontalAlignment)
Creates an instance of a label control with the specified text, image, and horizontal alignment. |
|
AgcJLabel(String text,
int horizontalAlignment)
Creates an instance of a label control with the specified text and horizontal alignment. |
Method Summary | |
Color |
getTextHighlightColor()
Gets the text highlight color. |
Color |
getTextShadowColor()
Gets the text shadow color. |
int |
getTextStyle()
Gets the text effect currently in use. |
boolean |
getWordWrap()
Gets the word wrap setting for the label. |
void |
setTextHighlightColor(Color color)
Sets the text highlight color. |
void |
setTextShadowColor(Color color)
Sets the text shadow color. |
void |
setTextStyle(int style)
Sets the text effect, such as drop-shadow or embossing. |
void |
setWordWrap(boolean wrap)
Sets the word wrap setting for the label. |
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 STYLE_NORMAL
public static final int STYLE_DROP_SHADOW
public static final int STYLE_EMBOSSED
Constructor Detail |
public AgcJLabel(String text, Icon icon, int horizontalAlignment)
text
- the text to be displayed by the labelicon
- the image to be displayed by the labelhorizontalAlignment
- one of the following constants
defined in SwingConstants:
LEFT, CENTER, RIGHT, LEADING or TRAILINGSwingConstants
public AgcJLabel(String text, int horizontalAlignment)
text
- the text to be displayed by the labelhorizontalAlignment
- one of the following constants
defined in SwingConstants:
LEFT, CENTER, RIGHT, LEADING or TRAILINGSwingConstants
public AgcJLabel(String text)
text
- the text to be displayed by the labelpublic AgcJLabel(Icon image, int horizontalAlignment)
icon
- the image to be displayed by the labelhorizontalAlignment
- one of the following constants
defined in SwingConstants:
LEFT, CENTER, RIGHT, LEADING or TRAILINGSwingConstants
public AgcJLabel(Icon image)
icon
- the image to be displayed by the labelpublic AgcJLabel()
Method Detail |
public int getTextStyle()
AgcJLabel.setTextStyle(int)
public void setTextStyle(int style)
style
- an int specifying a text effectAgcJLabel.getTextStyle()
public Color getTextShadowColor()
AgcJLabel.setTextShadowColor(Color)
,
AgcJLabel.getTextHighlightColor()
public void setTextShadowColor(Color color)
color
- a Color object specifying the color to be used for the text shadowAgcJLabel.getTextShadowColor()
,
AgcJLabel.setTextHighlightColor(Color)
public Color getTextHighlightColor()
AgcJLabel.setTextHighlightColor(Color)
,
AgcJLabel.getTextShadowColor()
public void setTextHighlightColor(Color color)
color
- a Color object specifying the color to be used for the text highlightAgcJLabel.getTextHighlightColor()
,
AgcJLabel.setTextShadowColor(Color)
public boolean getWordWrap()
AgcJLabel.getWordWrap()
public void setWordWrap(boolean wrap)
wrap
- a boolean value specifying whether to enable word wrapAgcJLabel.setWordWrap(boolean)
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |