Method Summary |
|
public void | addEvent(EventGeneric event) Adds a new event.
Parameters: event - event to add. |
public boolean | addTarget(GUI gui, VisualElement parent) Attaches this target to a specific parent element.
Parameters: gui - current GUI instance. Parameters: parent - parent element. |
public boolean | canAddTarget(VisualElement parent) Checks that this target can be attached to a specific parent element.
Parameters: parent - parent element. |
public void | disposed() Called when this target is disposed.
none. |
public boolean | equals(Object o) Compares two targets.
Parameters: o - target to compare to. |
public Set<Class> | getEventTypesInUse() Returns the event types of events associated to this target.
none. |
public List<EventGeneric> | getEvents(Date begin, Date end, Class clazz) Returns events from the first BEFORE begin (or at begin) to the last AFTER end (or at end).
Parameters: begin - start time. Parameters: end - end time. Parameters: clazz - type of events. |
public EventGeneric | getLastEvent(Class clazz) Returns the last event.
Parameters: clazz - type of events. |
public String | getName() Returns the name of this target.
none. |
public int | hashCode() Returns the hashcode for this target.
none. |
public void | registerComponent(BasicComponent component, Class clazz) Informs this target that this component is interested in this type of events.
Parameters: component - component to register. Parameters: clazz - type of events. |
public void | removeEvents(Class clazz) |
public void | unregisterComponent(BasicComponent component, Class clazz) Unregister a component. |