| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.beans.FeatureDescriptor
|
+--com.togethersoft.openapi.ide.inspector.IdeInspectorComponent
|
+--com.togethersoft.openapi.ide.inspector.IdeInspectorPropertySetComponent
Represents inspector component that keeps a list of properties. This components handles the properties same way as IdeInspector handles the components.
| Field Summary | |
protected Vector | myConditions |
protected IdeContext | myContext |
protected double | myMaxWeight |
protected Vector | myProperties |
protected Vector | myVisibleProperties |
protected Vector | myWeights |
final static String | PROP_VISIBLE_PROPERTIES |
| Constructor Summary | |
IdeInspectorPropertySetComponent(IdeContext context)Creates new component keeps properties inside an inspector for specified context. | |
| Method Summary | |
void | addProperty(IdeInspectorProperty property, Condition condition)Adds new property to this component and sets weight for it to 1 more then maximum weight. |
void | addProperty(IdeInspectorProperty property, Condition condition, double weight)Adds new property with specified visibility condition and weight. |
void | addPropertyChangeListener(PropertyChangeListener listener)Adds new listener of property change event. |
IdeInspectorProperty | findProperty(String name)Search for the property specified by it's name. |
protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue)Initiates change of specified porperty. |
Condition | getCondition(IdeInspectorProperty property)Returns visibility condition for specified property. |
IdeInspectorProperty[] | getProperties()Returns all properties. |
IdeInspectorProperty[] | getVisibleProperties()Returns all visible properties. |
double | getWeight(IdeInspectorProperty property)Returns weight for specified property. |
void | propertyChange(PropertyChangeEvent e) |
void | removeProperty(IdeInspectorProperty property)Removes specified property, it's visibility condition and weight. |
void | removePropertyChangeListener(PropertyChangeListener listener)Removes listener of property change event. |
void | update()Rebuildes list of visible properties, weights of them and fires change of PROP_VISIBLE_PROPERTIES property. |
| Methods inherited from class com.togethersoft.openapi.ide.inspector.IdeInspectorComponent |
getService, setService |
| Methods inherited from class java.beans.FeatureDescriptor |
getName, setName, getDisplayName, setDisplayName, isExpert, setExpert, isHidden, setHidden, isPreferred, setPreferred, getShortDescription, setShortDescription, setValue, getValue, attributeNames |
| Methods inherited from class java.lang.Object |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |
| Field Detail |
protected Vector myConditions
protected IdeContext myContext
protected double myMaxWeight
protected Vector myProperties
protected Vector myVisibleProperties
protected Vector myWeights
public final static String PROP_VISIBLE_PROPERTIES
| Constructor Detail |
public IdeInspectorPropertySetComponent(IdeContext context)
| Method Detail |
public void addProperty(IdeInspectorProperty property, Condition condition)
public void addProperty(IdeInspectorProperty property, Condition condition, double weight)
public void addPropertyChangeListener(PropertyChangeListener listener)
public IdeInspectorProperty findProperty(String name)
String.null otherwise.protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public Condition getCondition(IdeInspectorProperty property)
public IdeInspectorProperty[] getProperties()
public IdeInspectorProperty[] getVisibleProperties()
public double getWeight(IdeInspectorProperty property)
double weight for specified property.public void propertyChange(PropertyChangeEvent e)
public void removeProperty(IdeInspectorProperty property)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void update()
| Association Links |
to Class com.togethersoft.openapi.ide.IdeContext
to Class com.togethersoft.openapi.ide.inspector.IdeInspectorProperty
to Class com.togethersoft.openapi.ide.inspector.IdeInspectorProperty
to Class com.togethersoft.openapi.ide.inspector.Condition
to Class java.util.Vector
to Class java.beans.PropertyChangeSupport
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||