* </p>
*/
public interface ITraceControlComponent extends IAdaptable {
-
+
// ------------------------------------------------------------------------
// Accessors
// ------------------------------------------------------------------------
* @return the name of the component
*/
public String getName();
-
/**
* Sets the name of the component to the given value.
* @param name - name to set
* @param image - image to the image location
*/
public void setImage(Image image);
+
/**
* @return tool tip with information about the component.
*/
public String getToolTip();
-
/**
* Sets the tool tip with information about the component.
* @param toolTip - the tool tip to set.
* @return returns the parent component.
*/
public ITraceControlComponent getParent();
-
/**
* Sets the parent component.
* @param parent - the parent to set.
* @return the children components
*/
public ITraceControlComponent[] getChildren();
-
/**
* Sets the children components.
* @param children - the children to set.
*/
public void setChildren(List<ITraceControlComponent> children);
-
/**
* Returns the child component with given name.
* @param name - name of child to find.
* @return child component or null.
*/
public ITraceControlComponent getChild(String name);
+ /**
+ * Gets children for given class type.
+ * @param clazz - a class type to get
+ * @return list of trace control components matching given class type.
+ */
+ public List<ITraceControlComponent> getChildren(Class<? extends ITraceControlComponent> clazz);
/**
* @return the LTTng control service implementation.
*/
public ILttngControlService getControlService();
-
+
/**
* Sets the LTTng control service implementation.
* @param service - the service to set.
*/
public void setControlService(ILttngControlService service);
-
+
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------
* @param parent - the parent where the child was added.
* @param component - the child that was added.
*/
- public void fireCompenentAdded(ITraceControlComponent parent, ITraceControlComponent component);
+ public void fireComponentAdded(ITraceControlComponent parent, ITraceControlComponent component);
/**
* Notifies listeners about the removal of a child.
* @param parent - the parent where the child was removed.
* @param component - the child that was removed.
*/
- public void fireCompenentRemoved(ITraceControlComponent parent, ITraceControlComponent component);
+ public void fireComponentRemoved(ITraceControlComponent parent, ITraceControlComponent component);
/**
* Notifies listeners about the change of a component.
* @param component - the component that was changed.
*/
- public void fireCompenentChanged(ITraceControlComponent component);
+ public void fireComponentChanged(ITraceControlComponent component);
}