|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.component.AttributeEditorUtil
Utility class for use with AttributeEditors
| Constructor Summary | |
protected |
AttributeEditorUtil()
Constructor (should not be called) |
| Method Summary | |
static boolean |
isCustomAttribute(Attribute attribute)
Method isCustomAttribute returns true if the given Attribute instance contains the interface CustomAttribute. |
static boolean |
isCustomAttribute(java.lang.Class valueClass)
Method isCustomAttribute returns true if the given Class instance contains the interface CustomAttribute. |
static boolean |
isEditorAvailable(Attribute attribute)
Checks, if an editor is available for the given attribute |
static boolean |
isUndefinedEditable(java.lang.Object value)
Returns true, if the given value (represented by a complex attribute) is editable in the undefined state. |
static boolean |
renameCustomAttribute(AttributeSet set,
Attribute attribute,
java.lang.String value)
Renames the given custom attribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected AttributeEditorUtil()
| Method Detail |
public static final boolean renameCustomAttribute(AttributeSet set,
Attribute attribute,
java.lang.String value)
throws AttributeException,
ConstraintViolationException
set - The set containing the custom attributeattribute - The custom attributevalue - The new name of the attribute
AttributeException - Forwarding exception from the AttributeSet calls
ConstraintViolationException - Forwarding exception from the AttributeSet callspublic static boolean isCustomAttribute(java.lang.Class valueClass)
valueClass - the class to check
valueClass
contains CustomAttributeCustomAttributepublic static boolean isCustomAttribute(Attribute attribute)
attribute - the attribute to check
valueClass
contains CustomAttributeCustomAttributepublic static boolean isEditorAvailable(Attribute attribute)
attribute - The attribute to check
public static boolean isUndefinedEditable(java.lang.Object value)
value - The value to check
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||