|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.customattribute.DirectoryLocationAttribute
Class DirectoryLocationAttribute implements the CustomAttribute interface to create an Attribute which represents a Directory Location in a FileSystem. Thus the DirectoryLocationEditor opens a FileChooser and the DirectoryLocationRenderer is a simple Label.
| Constructor Summary | |
DirectoryLocationAttribute()
Creates a new DirectoryLocationAttribute with UNKNOWN as
location. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones this attribute. |
java.lang.Object |
cloneValue()
Returns a new String instance with the internal location as value. |
Constraint |
getConstraint()
Does nothing and returns null. |
CustomAttributeEditor |
getEditor()
Returns an instance of the DirectoryLocationEditor. |
java.lang.String |
getGeneratorKey()
Returns a String which will be used as key to retrieve the
generator for this CustomAttribute. |
java.lang.String |
getName()
Returns the name. |
CustomAttributeRenderer |
getRenderer()
Returns the DirectoryLocationRenderer. |
java.lang.String |
getStringRepresentation()
Returns a String representation for the value of this
attribute, which will be used to create an instance
of this attribute via the CustomAttributeGenerator. |
java.lang.String |
getTitle()
Returns a descriptive title for this Attribute. |
AttributeType |
getType()
Returns a new instance of FileAttributeTypeConstant. |
java.lang.Object |
getValue()
Returns the location. |
boolean |
isMutable()
Returns the mutable flag. |
java.lang.Object |
newValueInstance()
Creates a copy of the this attributes location. |
void |
setConstraint(Constraint constraint)
Ignored. |
void |
setMutable(boolean mutable)
Sets the mutable flag. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setValue(java.lang.Object value)
Sets the location string of this attribute. |
java.lang.String |
toString()
|
boolean |
useDefaultEditor()
If the CustomAttribute does not implement its own editor, it
can use the default editors if the value is one of the recognized types
(e.g. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DirectoryLocationAttribute()
UNKNOWN as
location.
| Method Detail |
public CustomAttributeEditor getEditor()
getEditor in interface CustomAttributeCustomAttributeEditor for this attribute.CustomAttribute.getEditor()public void setValue(java.lang.Object value)
setValue in interface Attributevalue - the new value of the attribute.Attribute.setValue(Object)public java.lang.Object getValue()
getValue in interface AttributeAttribute.getValue()public CustomAttributeRenderer getRenderer()
getRenderer in interface CustomAttributeCustomAttributeRenderer for this attribute.CustomAttribute.getRenderer()public java.lang.Object newValueInstance()
newValueInstance in interface CustomAttributeObject for the value part of this attribute.CustomAttribute.newValueInstance()public java.lang.String getTitle()
DirectoryLocation Attribute.public java.lang.String getName()
getName in interface Attributepublic void setName(java.lang.String name)
setName in interface CustomAttributename - The name to setpublic java.lang.String getStringRepresentation()
CustomAttributeString representation for the value of this
attribute, which will be used to create an instance
of this attribute via the CustomAttributeGenerator.
getStringRepresentation in interface CustomAttributeString representation of this attribute.
public java.lang.Object cloneValue()
throws java.lang.CloneNotSupportedException
cloneValue in interface Attributejava.lang.CloneNotSupportedException - may be thrown
if invoking this method on the value is not allowed or supported.Attribute.cloneValue()public AttributeType getType()
FileAttributeTypeConstant.
getType in interface AttributeAttribute.getType()public boolean isMutable()
isMutable in interface Attributetrue, if it is mutable; false, if
it is immutable.Attribute.isMutable()public void setMutable(boolean mutable)
setMutable in interface Attributemutable - the new value of the mutable flag.Attribute.setMutable(boolean)public Constraint getConstraint()
null.
getConstraint in interface RestrictableRestrictable.getConstraint()public void setConstraint(Constraint constraint)
setConstraint in interface Restrictableconstraint - the root of the constraint treeRestrictable.setConstraint(com.tensegrity.generic.constraint.Constraint)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
AttributeString instances are immutable. The value of the attribute is
copied by means of the clone method of
Object.
clone in interface Attributejava.lang.CloneNotSupportedExceptionpublic java.lang.String getGeneratorKey()
CustomAttributeString which will be used as key to retrieve the
generator for this CustomAttribute. Applications should use
this key to provide a registry-alike mechanism to obtain generators.
getGeneratorKey in interface CustomAttributeString usable as a key for this attribute.public java.lang.String toString()
public boolean useDefaultEditor()
CustomAttributeCustomAttribute does not implement its own editor, it
can use the default editors if the value is one of the recognized types
(e.g. String, Integer, etc.)
useDefaultEditor in interface CustomAttributeCustomAttribute.getEditor() returns null
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||