| |||||||||
| 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.util.table.RwiElementsComponent
Class RwiElementsComponent provides a storage for keeping IdeInspectorProperties
relating to the same RwiElements.
For each RwiElement there is an associated IdeInspectorPropertySetComponent (presumably
containg some set of IdeInspectorProperties related to the RwiElement).
This class contains abstract method
IdeInspectorPropertySetComponent createIdePropertySetForRwiElement(RwiElement rwiElement);
which is used in the addRwiElement(RwiElement rwiElement) method.
In the createIdePropertySetForRwiElement method you must create an instance of
IdeInspectorPropertySetComponent and fill it with appropriate IdeInspectorProperties.
Method checkRwiElement(RwiElement) is used in addRwiElement method to check if the specified
method is suitable for this storage. If you want to work only with specific RwiElements, you must override this method.
| Field Summary | |
protected IdeContext | myContext |
| Constructor Summary | |
RwiElementsComponent(IdeContext context)Constructs RwiElementsComponent object for the specified IdeContext. | |
| Method Summary | |
void | addPropertyChangeListener(PropertyChangeListener listener)Adds specified listener of the property changes. |
void | addRwiElement(RwiElement rwiElement)Adds a PropertySet to the specified RwiElement to this component. |
protected boolean | checkRwiElement(RwiElement rwiElement)Should be overridden for working only with specific kinds of RwiElements. |
protected abstract IdeInspectorPropertySetComponent | createIdePropertySetForRwiElement(RwiElement rwiElement)In this method you must create IdeInspectorPropertySetComponent with some IdeInspectorProperties. |
protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue)Fires change of property. |
protected RwiElement[] | getCandidatesToAdd() |
int | getRwiElementIndex(RwiElement rwiElement)Returns the index of the specified RwiElement in this component. |
RwiElement[] | getRwiElements()Returns all inspected RwiElement |
IdeInspectorPropertySetComponent[] | getRwiElementsPropertySets()Returns an array of IdeInspectorPropertySetComponent |
void | removePropertyChangeListener(PropertyChangeListener listener)Removes specified listener of property changes. |
void | removeRwiElement(RwiElement rwiElement)Removes PropertySet of the specified RwiElement from this component. |
protected void | resetElements()Removes all PropertySetComponents from this component. |
void | update() |
| 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 IdeContext myContext
| Constructor Detail |
public RwiElementsComponent(IdeContext context)
RwiElementsComponent object for the specified IdeContext.IdeContext containing RwiElements| Method Detail |
public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener to be addedpublic void addRwiElement(RwiElement rwiElement)
RwiElement to this component.RwiElement for which PropertySet will be addedprotected boolean checkRwiElement(RwiElement rwiElement)
RwiElements.trueprotected abstract IdeInspectorPropertySetComponent createIdePropertySetForRwiElement(RwiElement rwiElement)
IdeInspectorPropertySetComponent with some IdeInspectorProperties.
For example:
protected IdeInspectorPropertySetComponent createIdePropertySetForRwiElement(RwiElement rwiElement){
IdeInspectorPropertySetComponent idePropertySetComponent = new IdeInspectorPropertySetComponent(null);
idePropertySetComponent.addProperty(new RwiInspectorStringProperty(rwiElement, RwiProperty.NAME), null);
idePropertySetComponent.addProperty(new RwiInspectorStringProperty(rwiElement, RwiProperty.TYPE), null);
idePropertySetComponent.addProperty(new RwiInspectorStringProperty(rwiElement, RwiProperty.UNIQUE_NAME), null);
return idePropertySetForBeanProperty;
}In this example we create three IdeInspectorProperties in each IdeInspectorPropertySetComponent. The RwiElementsTableModel will treat it as we were defining three columns in the table.
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
String Name of the property to be changedObject Old value of this propertyObject New value of this propertyprotected RwiElement[] getCandidatesToAdd()
public int getRwiElementIndex(RwiElement rwiElement)
RwiElement in this component.int index of specified RwiElement in this componentpublic RwiElement[] getRwiElements()
RwiElements.- Returns: An array of RwiElements
public IdeInspectorPropertySetComponent[] getRwiElementsPropertySets()
IdeInspectorPropertySetComponents (this array represents the rows for the table model).- Returns: an array of IdeInspectorPropertySetComponents
- See Also:
- RwiElementsTableModel
public void removePropertyChangeListener(PropertyChangeListener listener)
listener of property changes.PropertyChangeListener to be removedpublic void removeRwiElement(RwiElement rwiElement)
RwiElement from this component.RwiElement for which PropertySet will be removedprotected void resetElements()
PropertySetComponents from this component.public void update()
| Association Links |
to Class java.util.Vector
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 | ||||||||