Package pulse.util
Class InstanceDescriptor<T extends Reflexive>
- java.lang.Object
-
- pulse.util.InstanceDescriptor<T>
-
- All Implemented Interfaces:
Serializable,Property
public class InstanceDescriptor<T extends Reflexive> extends Object implements Property
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceDescriptor(Class<T> c, Object... arguments)InstanceDescriptor(String generalDescriptor, Class<T> c, Object... arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(DescriptorChangeListener l)booleanattemptUpdate(Object object)booleanequals(Object o)Set<String>getAllDescriptors()StringgetDescriptor(boolean addHtmlTags)Creates aStringto describe this property (often used in GUI applications).List<DescriptorChangeListener>getListeners()ObjectgetValue()Retrieves the value of thisProperty.Objectidentifier()<K extends Reflexive>
KnewInstance(Class<K> c, Object... arguments)voidsetSelectedDescriptor(String selectedDescriptor)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pulse.properties.Property
formattedOutput
-
-
-
-
Method Detail
-
getValue
public Object getValue()
Description copied from interface:PropertyRetrieves the value of thisProperty.
-
attemptUpdate
public boolean attemptUpdate(Object object)
- Specified by:
attemptUpdatein interfaceProperty
-
setSelectedDescriptor
public void setSelectedDescriptor(String selectedDescriptor)
-
identifier
public Object identifier()
- Specified by:
identifierin interfaceProperty
-
getDescriptor
public String getDescriptor(boolean addHtmlTags)
Description copied from interface:PropertyCreates aStringto describe this property (often used in GUI applications).- Specified by:
getDescriptorin interfaceProperty- Parameters:
addHtmlTags- iftrue, adds the 'html' tags at both ends of the descriptorString.- Returns:
- a
String, with or without 'html' tags, describing thisProperty
-
addListener
public void addListener(DescriptorChangeListener l)
-
getListeners
public List<DescriptorChangeListener> getListeners()
-
-