TPTP 4.1.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.analysis.util.ui.propertysheet
Interface IPropertyModel

All Known Implementing Classes:
AbstractPropertyModel, MergedPropertyModel

public interface IPropertyModel

IPropertyModel


Method Summary
 void addListValue(java.lang.Object oNewValue, IListPropertyDescriptor listPd)
          Add a value to a list of values.
 void addPropertyChangeListener(IPropertyChangeListener pcl)
          Add a property change listener.
 void addPropertyChangeListener(IPropertyDescriptor pd, IPropertyChangeListener pcl)
          Add a property change listener.
 IPropertyModel createChildModel(java.lang.Object o)
          Create a child model.
 java.lang.Object createNewListValue(IListPropertyDescriptor listPd)
          Create a new list of values for the list property descriptor.
 void dispose()
          Dispose the object.
 IObjectConverter findConverter(java.lang.Class cFromType, java.lang.Class cToType)
          Find a converter by name.
 IPropertyDescriptor findDescriptor(java.lang.String sName)
          Find a descriptor by name.
 java.lang.Object[] getListValues(IListPropertyDescriptor listPd)
          Get the list of values for the list property descriptor.
 java.lang.Object getValue(IPropertyDescriptor pd)
          Get the value for the property descriptor.
 IPropertyDescriptor[] propertyDescriptors()
          Return the list of property descriptors.
 void removeListValue(java.lang.Object oNewValue, IListPropertyDescriptor listP)
          Remove a value from the list of values.
 void removePropertyChangeListener(IPropertyChangeListener pcl)
          Remove a property change listener.
 void removePropertyChangeListener(IPropertyDescriptor pd, IPropertyChangeListener pcl)
          Remove a property change listener.
 void setValue(IPropertyDescriptor pd, java.lang.Object oValue)
          Set the value for the property descriptor.
 

Method Detail

propertyDescriptors

public IPropertyDescriptor[] propertyDescriptors()
Return the list of property descriptors.

Returns:

findDescriptor

public IPropertyDescriptor findDescriptor(java.lang.String sName)
Find a descriptor by name.

Parameters:
sName -
Returns:

findConverter

public IObjectConverter findConverter(java.lang.Class cFromType,
                                      java.lang.Class cToType)
Find a converter by name.

Parameters:
cFromType -
cToType -
Returns:

getValue

public java.lang.Object getValue(IPropertyDescriptor pd)
                          throws java.lang.Exception
Get the value for the property descriptor.

Parameters:
pd -
Returns:
Throws:
java.lang.Exception

setValue

public void setValue(IPropertyDescriptor pd,
                     java.lang.Object oValue)
              throws java.lang.Exception
Set the value for the property descriptor.

Parameters:
pd -
oValue -
Throws:
java.lang.Exception

getListValues

public java.lang.Object[] getListValues(IListPropertyDescriptor listPd)
                                 throws java.lang.Exception
Get the list of values for the list property descriptor.

Parameters:
listPd -
Returns:
Throws:
java.lang.Exception

createNewListValue

public java.lang.Object createNewListValue(IListPropertyDescriptor listPd)
Create a new list of values for the list property descriptor.

Parameters:
listPd -
Returns:

addListValue

public void addListValue(java.lang.Object oNewValue,
                         IListPropertyDescriptor listPd)
                  throws java.lang.Exception
Add a value to a list of values.

Parameters:
oNewValue -
listPd -
Throws:
java.lang.Exception

removeListValue

public void removeListValue(java.lang.Object oNewValue,
                            IListPropertyDescriptor listP)
                     throws java.lang.Exception
Remove a value from the list of values.

Parameters:
oNewValue -
listP -
Throws:
java.lang.Exception

addPropertyChangeListener

public void addPropertyChangeListener(IPropertyChangeListener pcl)
Add a property change listener.

Parameters:
pcl -

removePropertyChangeListener

public void removePropertyChangeListener(IPropertyChangeListener pcl)
Remove a property change listener.

Parameters:
pcl -

addPropertyChangeListener

public void addPropertyChangeListener(IPropertyDescriptor pd,
                                      IPropertyChangeListener pcl)
Add a property change listener.

Parameters:
pd -
pcl -

removePropertyChangeListener

public void removePropertyChangeListener(IPropertyDescriptor pd,
                                         IPropertyChangeListener pcl)
Remove a property change listener.

Parameters:
pd -
pcl -

createChildModel

public IPropertyModel createChildModel(java.lang.Object o)
                                throws java.lang.Exception
Create a child model.

Parameters:
o -
Returns:
Throws:
java.lang.Exception

dispose

public void dispose()
Dispose the object.


TPTP 4.1.0 Platform Project
Public API Specification