|
|||||||||
| 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.dishevelled.identify.IdLabel
public final class IdLabel
An extension of JLabel that displays the name property value and appropriate icon from an icon bundle for a given bean.
| 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 IconSize |
DEFAULT_ICON_SIZE
Default icon size. |
static IconState |
DEFAULT_ICON_STATE
Default icon state. |
| 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 | |
|---|---|
IdLabel()
Create a new label with a null value. |
|
IdLabel(Object value)
Create a new label for the specified value. |
|
IdLabel(Object value,
IconSize iconSize)
Create a new label for the specified value with the specified icon size. |
|
| Method Summary | |
|---|---|
void |
applyComponentOrientation(ComponentOrientation orientation)
|
Rectangle |
getBounds()
|
Rectangle |
getBounds(Rectangle rv)
|
Icon |
getDisabledIcon()
|
int |
getHeight()
|
Icon |
getIcon()
|
IconSize |
getIconSize()
Return the icon size for this label. |
IconState |
getIconState()
Return the icon state for this label. |
(package private) IconTextDirection |
getIconTextDirection()
Return the icon text direction for this label. |
Dimension |
getMaximumSize()
|
Dimension |
getMinimumSize()
|
Dimension |
getPreferredSize()
|
Dimension |
getSize()
|
String |
getText()
|
Object |
getValue()
Return the value for this label. |
Rectangle |
getVisibleRect()
|
int |
getWidth()
|
void |
paintComponent(Graphics g)
|
void |
setComponentOrientation(ComponentOrientation orientation)
|
void |
setEnabled(boolean enabled)
|
void |
setIconSize(IconSize iconSize)
Set the icon size for this label to iconSize. |
void |
setIconState(IconState iconState)
Set the icon state for this label to iconState. |
void |
setValue(Object value)
Set the value for this label to value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final IconSize DEFAULT_ICON_SIZE
public static final IconState DEFAULT_ICON_STATE
| Constructor Detail |
|---|
public IdLabel()
public IdLabel(Object value)
value - value
public IdLabel(Object value,
IconSize iconSize)
value - valueiconSize - icon size, must not be null| Method Detail |
|---|
public Object getValue()
public void setValue(Object value)
value.
This is a bound property.
value - value for this labelpublic IconSize getIconSize()
public void setIconSize(IconSize iconSize)
iconSize.
This is a bound property.
iconSize - icon size, must not be nullpublic IconState getIconState()
public void setIconState(IconState iconState)
iconState.
This is a bound property.
iconState - icon state, must not be nullIconTextDirection getIconTextDirection()
public void setComponentOrientation(ComponentOrientation orientation)
setComponentOrientation in class Componentpublic void applyComponentOrientation(ComponentOrientation orientation)
applyComponentOrientation in class Containerpublic void setEnabled(boolean enabled)
setEnabled in class JComponentpublic String getText()
getText in class JLabelpublic Icon getIcon()
getIcon in class JLabelpublic Icon getDisabledIcon()
getDisabledIcon in class JLabelpublic Rectangle getBounds()
getBounds in class Componentpublic Rectangle getBounds(Rectangle rv)
getBounds in class JComponentpublic Dimension getMaximumSize()
getMaximumSize in class JComponentpublic Dimension getMinimumSize()
getMinimumSize in class JComponentpublic Dimension getPreferredSize()
getPreferredSize in class JComponentpublic Dimension getSize()
getSize in class Componentpublic Rectangle getVisibleRect()
getVisibleRect in class JComponentpublic int getHeight()
getHeight in class JComponentpublic int getWidth()
getWidth in class JComponentpublic void paintComponent(Graphics g)
paintComponent in class JComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||