public class Component
implements IComponent, IResourceLoader
Represents a base class implementation of IComponent.
Constructors
Name | Description |
---|---|
Component() | Creates a Component object. |
Methods
Name | Description |
---|---|
addEventHandler(Object key, Delegate handler) | Adds an event handler for a specified key in the event list. |
addOnDispose(EventHandler value) | Adds an OnDispose event handler. |
componentChanged() | Calls the ISite.componentChanged method if the component is sited in a container. |
dispose() | Removes this component from the container if it is sited. |
fireEvent(Object key, Event e) | Fires an event from this component. |
getChildOf(IComponent component) | Checks if this component is a child of the specified component. |
getContainer() | Returns the container to which this component is sited if there is one. |
getDesignMode() | Determines if the component is currently in design mode. |
getDisposing() | Determines if the component is currently being disposed. |
getEventHandler(Object key) | Retrieves a specified event handler. |
getName() | Retrieves the component name as maintained by the component's site. |
getResource(String name) | Retrieves a named resource. |
getService(Class service) | Retrieves the service provided by the site. |
getSite() | Retrieves the site of this component. |
onDispose(Event e) | Calls an event handler when being disposed. |
removeEventHandler(Object key, Delegate handler) | Removes an OnDispose event handler. |
removeEventHandlers() | Removes all event handlers from this component. |
removeOnDispose(EventHandler value) | Removes an OnDispose event handler. |
setName(String value) | Sets the name of the component held by the site. |
setSite(ISite value) | Sets the site of this component. |
Creates a Component object.
Adds an event handler for a specified key in the event list.
Adds an OnDispose event handler.
Calls the ISite.componentChanged method if the component is sited in a container.
Removes this component from the container if it is sited.
Fires an event from this component.
Checks if this component is a child of the specified component.
Returns the container to which this component is sited if there is one.
Determines if the component is currently in design mode.
Determines if the component is currently being disposed.
Retrieves a specified event handler.
Returns the Site.name string, or returns null if the component is not sited.
Retrieves the component name as maintained by the component's site.
Retrieves a named resource.
Returns null currently.
Retrieves the service provided by the site.
Returns the site of this component.
Retrieves the site of this component.
Calls an event handler when being disposed.
Removes an OnDispose event handler.
Removes all event handlers from this component.
Removes an OnDispose event handler.
Sets the name of the component held by the site.
Sets the site of this component.