|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.renderer.MappedValue
public class MappedValue
Compound implementation of XXValue. Currently, XX stands for String, Icon, Boolean.
Quick hack around #590-swingx: LabelProvider should respect StringValue when formatting (instead of going clever with icons). Note: this will change!
CheckBoxProvider,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jdesktop.swingx.renderer.IconValue |
|---|
IconValue.IconType |
| Field Summary |
|---|
| Fields inherited from interface org.jdesktop.swingx.renderer.IconValue |
|---|
NULL_ICON |
| Constructor Summary | |
|---|---|
MappedValue(StringValue stringDelegate,
IconValue iconDelegate)
|
|
MappedValue(StringValue stringDelegate,
IconValue iconDelegate,
BooleanValue booleanDelegate)
|
|
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.Object value)
|
javax.swing.Icon |
getIcon(java.lang.Object value)
Returns a icon representation of the given value. |
java.lang.String |
getString(java.lang.Object value)
Returns a string representation of the given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappedValue(StringValue stringDelegate,
IconValue iconDelegate)
public MappedValue(StringValue stringDelegate,
IconValue iconDelegate,
BooleanValue booleanDelegate)
| Method Detail |
|---|
public java.lang.String getString(java.lang.Object value)
PENDING JW: forgot - why not null return guaranteed?
This implementation delegates to the contained StringValue if available or returns an empty String, if not.
getString in interface StringValuevalue - the object to present as a string
public javax.swing.Icon getIcon(java.lang.Object value)
This implementation delegates to the contained IconValue if available or returns null, if not.
getIcon in interface IconValuevalue - the object to present as Icon
public boolean getBoolean(java.lang.Object value)
This implementation delegates to the contained BooleanValue if available or returns false, if not.
getBoolean in interface BooleanValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||