|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
org.compiere.swing.CLabel
public class CLabel
Label with Mnemonics interpretation
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
DEFAULT_ALIGNMENT
|
| 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 |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CLabel()
Creates a JLabel instance with
no image and with an empty string for the title. |
|
CLabel(Icon image)
Creates a Label instance with the specified image. |
|
CLabel(Icon image,
int horizontalAlignment)
Creates a Label instance with the specified
image and horizontal alignment. |
|
CLabel(String text)
Creates a Label instance with the specified text. |
|
CLabel(String label,
Component field)
Trailing Label for Field |
|
CLabel(String text,
Icon icon,
int horizontalAlignment)
Creates a Label instance with the specified
text, image, and horizontal alignment. |
|
CLabel(String text,
int horizontalAlignment)
Creates a Label instance with the specified
text and horizontal alignment. |
|
CLabel(String label,
String toolTip)
Creates a Label instance with the specified text. |
|
| Method Summary | |
|---|---|
char |
getSavedMnemonic()
|
void |
setBackground(Color bg)
Set Background |
void |
setFontBold(boolean bold)
Set Font to Bold |
void |
setLabelFor(Component c)
Set Label For |
void |
setReadWrite(boolean rw)
Set ReadWrite |
void |
setSavedMnemonic(char savedMnemonic)
|
void |
setText(String mnemonicLabel)
Set label text - if it includes &, the next character is the Mnemonic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int DEFAULT_ALIGNMENT
| Constructor Detail |
|---|
public CLabel(String text,
Icon icon,
int horizontalAlignment)
Label instance with the specified
text, image, and horizontal alignment.
The label is centered vertically in its display area.
The text is on the trailing edge of the image.
text - The text to be displayed by the label.icon - The image to be displayed by the label.horizontalAlignment - One of the following constants
defined in SwingConstants:
LEFT,
CENTER,
RIGHT,
LEADING or
TRAILING.
public CLabel(String text,
int horizontalAlignment)
Label instance with the specified
text and horizontal alignment.
The label is centered vertically in its display area.
text - The text to be displayed by the label.horizontalAlignment - One of the following constants
defined in SwingConstants:
LEFT,
CENTER,
RIGHT,
LEADING or
TRAILING.public CLabel(String text)
Label instance with the specified text.
The label is aligned against the leading edge of its display area,
and centered vertically.
text - The text to be displayed by the label.
public CLabel(Icon image,
int horizontalAlignment)
Label instance with the specified
image and horizontal alignment.
The label is centered vertically in its display area.
image - The image to be displayed by the label.horizontalAlignment - One of the following constants
defined in SwingConstants:
LEFT,
CENTER,
RIGHT,
LEADING or
TRAILING.public CLabel(Icon image)
Label instance with the specified image.
The label is centered vertically and horizontally
in its display area.
image - The image to be displayed by the label.public CLabel()
JLabel instance with
no image and with an empty string for the title.
The label is centered vertically
in its display area.
The label's contents, once set, will be displayed on the leading edge
of the label's display area.
public CLabel(String label,
String toolTip)
Label instance with the specified text.
The label is aligned against the leading edge of its display area,
and centered vertically.
label - The text to be displayed by the label.toolTip - The optional Tooltip text
public CLabel(String label,
Component field)
label - labelfield - field| Method Detail |
|---|
public void setBackground(Color bg)
setBackground in class JComponentbg - backgroundpublic void setFontBold(boolean bold)
bold - true bold false normalpublic void setText(String mnemonicLabel)
setText in class JLabelmnemonicLabel - Label containing Mnemonicpublic void setReadWrite(boolean rw)
rw - enabledpublic void setLabelFor(Component c)
setLabelFor in class JLabelc - componentpublic char getSavedMnemonic()
public void setSavedMnemonic(char savedMnemonic)
savedMnemonic - The savedMnemonic to set.
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||