|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
jview.AbstractDisplayable
public abstract class AbstractDisplayable
Helper class that links its icon to a property.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
static String |
KEY_COMPONENTNAME
The key for component name. |
static String |
KEY_ICON
The key for the image icon. |
static String |
KEY_INSETS
The key to the insets. |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
protected |
AbstractDisplayable(Map<String,String> prop)
Constructor chaining. |
| Method Summary | |
|---|---|
String |
getComponentName()
If the name of the component returned should be set, we can do this adfter construction and calling this method. |
Icon |
getIcon()
If a icon property is set, we return the image icon from it. |
static Icon |
getIcon(PropertyBearing info)
If the KEY_ICON property points to a valid resource, we
try to construct an ImageIcon from it and return it. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jview.Displayable |
|---|
getRepresentation |
| Field Detail |
|---|
public static final String KEY_ICON
public static final String KEY_INSETS
public static final String KEY_COMPONENTNAME
| Constructor Detail |
|---|
protected AbstractDisplayable(Map<String,String> prop)
| Method Detail |
|---|
public String getComponentName()
public Icon getIcon()
getIcon in interface Displayablepublic static Icon getIcon(PropertyBearing info)
KEY_ICON property points to a valid resource, we
try to construct an ImageIcon from it and return it.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||