eu.geclipse.ui.properties
Class AbstractProperty<ESourceType>
java.lang.Object
eu.geclipse.ui.properties.AbstractProperty<ESourceType>
- Type Parameters:
ESourceType - type of object, for which property will be shown
- All Implemented Interfaces:
- IProperty<ESourceType>
- Direct Known Subclasses:
- MultilineProperty
public abstract class AbstractProperty<ESourceType>
- extends java.lang.Object
- implements IProperty<ESourceType>
Abstract class for read-only property
|
Constructor Summary |
AbstractProperty(java.lang.String name,
java.lang.String category)
|
AbstractProperty(java.lang.String name,
java.lang.String category,
boolean showEmptyValue)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractProperty
public AbstractProperty(java.lang.String name,
java.lang.String category,
boolean showEmptyValue)
- Parameters:
name - Property namecategory - Property category. May be nullshowEmptyValue - if false, then property will be hidden when its value is empty
AbstractProperty
public AbstractProperty(java.lang.String name,
java.lang.String category)
- Parameters:
name - Property namecategory - Property category. May be null
getValue
public abstract java.lang.Object getValue(ESourceType sourceObject)
- Have to be implemented in every property. In most cases return property
value as String, but it may also return
IPropertySource for complex
property
- Specified by:
getValue in interface IProperty<ESourceType>
- Parameters:
sourceObject - Object, for which property will be displayed
- Returns:
- Property value
- See Also:
org.eclipse.ui.views.properties.IPropertySource#getPropertyValue(Object)
getDescriptor
public IPropertyDescriptor getDescriptor(java.lang.Class<? extends AbstractPropertySource<?>> propSourceClass)
- Specified by:
getDescriptor in interface IProperty<ESourceType>
- Parameters:
propSourceClass - property source in which this IProperty object is
- Returns:
- property descriptor
isShowEmptyValue
public boolean isShowEmptyValue()
- Specified by:
isShowEmptyValue in interface IProperty<ESourceType>
- Returns:
- true if property containg null value should be shown