|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dishevelled.identify.IdentifyUtils
public final class IdentifyUtils
Provides static utility methods for determining the name property value and icon bundle for a bean.
| Nested Class Summary | |
|---|---|
(package private) static interface |
IdentifyUtils.IconBundleStrategy
Strategy used to find an icon bundle for a bean. |
(package private) static interface |
IdentifyUtils.NameStrategy
Strategy used to determine the value for a name property on a bean. |
| Method Summary | |
|---|---|
IconBundle |
getDefaultIconBundle()
Return the icon bundle to use as a default icon bundle, in the case the icon bundle strategy is unable to find an icon bundle for a bean. |
static IconBundle |
getIconBundleFor(Object bean)
Return an icon bundle for the specified bean using the set icon bundle strategy. |
IdentifyUtils.IconBundleStrategy |
getIconBundleStrategy()
Return the strategy used to find an icon bundle for a bean. |
static IdentifyUtils |
getInstance()
Return the static instance of IdentifyUtils. |
static String |
getNameFor(Object bean)
Return a name for the specified bean using the set name strategy. |
IdentifyUtils.NameStrategy |
getNameStrategy()
Return the strategy used to determine the value for a name property on a bean. |
void |
setDefaultIconBundle(IconBundle defaultIconBundle)
Set the default icon bundle to defaultIconBundle. |
void |
setIconBundleStrategy(IdentifyUtils.IconBundleStrategy iconBundleStrategy)
Set the strategy used to find an icon bundle for a bean to iconBundleStrategy. |
void |
setNameStrategy(IdentifyUtils.NameStrategy nameStrategy)
Set the strategy used to determine the value for a name property on a bean to nameStrategy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static IdentifyUtils getInstance()
public static String getNameFor(Object bean)
"null" if
bean is null.
bean - bean
getNameStrategy()public static IconBundle getIconBundleFor(Object bean)
null if
bean is null, and the default icon bundle
if an icon bundle cannot otherwise be found.
bean - bean
getIconBundleStrategy(),
getDefaultIconBundle()public IdentifyUtils.NameStrategy getNameStrategy()
public void setNameStrategy(IdentifyUtils.NameStrategy nameStrategy)
nameStrategy.
nameStrategy - name strategy, must not be nullpublic IdentifyUtils.IconBundleStrategy getIconBundleStrategy()
public void setIconBundleStrategy(IdentifyUtils.IconBundleStrategy iconBundleStrategy)
iconBundleStrategy.
iconBundleStrategy - icon bundle strategy, must not
be nullpublic IconBundle getDefaultIconBundle()
public void setDefaultIconBundle(IconBundle defaultIconBundle)
defaultIconBundle.
defaultIconBundle - the default icon bundle, must
not be null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||