nl.tudelft.simulation.introspection.gui
Class CollectionTableModel.CollectionProperty

java.lang.Object
  extended bynl.tudelft.simulation.introspection.AbstractProperty
      extended bynl.tudelft.simulation.introspection.gui.CollectionTableModel.CollectionProperty
All Implemented Interfaces:
Property
Enclosing class:
CollectionTableModel

class CollectionTableModel.CollectionProperty
extends AbstractProperty
implements Property

The CollectionProperty


Constructor Summary
CollectionTableModel.CollectionProperty(java.lang.Integer key, java.lang.String name)
          This implementation is NOT thread-safe.
 
Method Summary
 java.lang.Object getInstance()
          Retrieves the introspected object, which contains this Property.
 java.lang.String getName()
          Retrieves the name of the property.
 java.lang.Class getType()
          Returns the type of this property's value.
 java.lang.Object getValue()
          Returns the current value of this property.
 boolean isEditable()
          Returns whether the value of this property may be altered.
protected  void setRegularValue(java.lang.Object value)
          Method used to set a regular (i.e.
 java.lang.String toString()
           
 
Methods inherited from class nl.tudelft.simulation.introspection.AbstractProperty
getComponentType, isCollection, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface nl.tudelft.simulation.introspection.Property
getComponentType, isCollection, setValue
 

Constructor Detail

CollectionTableModel.CollectionProperty

public CollectionTableModel.CollectionProperty(java.lang.Integer key,
                                               java.lang.String name)
This implementation is NOT thread-safe. When multiple users will edit the parent at the same time, errors are expected.

Parameters:
key - the key
name - the name
Method Detail

getInstance

public java.lang.Object getInstance()
Description copied from interface: Property
Retrieves the introspected object, which contains this Property.

Specified by:
getInstance in interface Property
Returns:
the instance
See Also:
Property.getInstance()

getName

public java.lang.String getName()
Description copied from interface: Property
Retrieves the name of the property.

Specified by:
getName in interface Property
Returns:
The name of the property
See Also:
Property.getName()

getType

public java.lang.Class getType()
Description copied from interface: Property
Returns the type of this property's value.

Specified by:
getType in interface Property
Returns:
A {see java.lang.Class}instance denoting the type of this property.
See Also:
Property.getType()

getValue

public java.lang.Object getValue()
Description copied from interface: Property
Returns the current value of this property.

Specified by:
getValue in interface Property
Returns:
The current value of this property.
See Also:
Property.getValue()

isEditable

public boolean isEditable()
Description copied from interface: Property
Returns whether the value of this property may be altered.

Specified by:
isEditable in interface Property
Returns:
'True', when this property's value can be altered, 'false' otherwise.
See Also:
Property.isEditable()

setRegularValue

protected void setRegularValue(java.lang.Object value)
Description copied from class: AbstractProperty
Method used to set a regular (i.e. not-composite) property value.

Specified by:
setRegularValue in class AbstractProperty
Parameters:
value - the new value
See Also:
AbstractProperty.setRegularValue(java.lang.Object)

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.