M - The model objectC - The toolkit container classT - The toolkit component classpublic abstract class UIComponent<M,C,T> extends Object implements IUIComponent<M,C,T>, IElementConfigurable
The UIComponent spans a hierarchical tree. Each UIComponent
maps to a real toolkit interface component that gets realized upon calling
"createComponent".
A UIComponent is associated with a model object via an
IValueHolder.
| Constructor and Description |
|---|
UIComponent() |
UIComponent(IUIComponent<?,C,T> parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(EventType type,
INotificationListener listener)
Add
listener to the collection of objects to be informed
when the receiver triggers an event of type name. |
void |
configure(IElement element) |
void |
createComponent(C parent)
Create the associated toolkit component.
|
void |
dispose()
Dispose all of the objects resources.
|
T |
getComponent()
The associated toolkit component.
|
IElement |
getConfiguration() |
IUIComponent |
getParent() |
M |
getValue() |
IValueHolder<M> |
getValueHolder() |
boolean |
isDisposed()
true if this object is already disposed. |
void |
removeNotificationListener(EventType type,
INotificationListener listener)
Remove
listener from the collection of objects to be
informed about events of type name. |
M |
setValue(M value) |
void |
setValueHolder(IValueHolder<M> pValueHolder) |
public UIComponent()
public UIComponent(IUIComponent<?,C,T> parent)
public void addNotificationListener(EventType type, INotificationListener listener)
INotificationSupportlistener to the collection of objects to be informed
when the receiver triggers an event of type name.addNotificationListener in interface INotificationSupporttype - The event type we are interested in.listener - The object to be informed about an event occurrencepublic void configure(IElement element) throws ConfigurationException
configure in interface IElementConfigurableConfigurationExceptionpublic final void createComponent(C parent)
IComponentProvidercreateComponent in interface IComponentProvider<C,T>public void dispose()
IDisposabledispose in interface IDisposablepublic final T getComponent()
IComponentProvidergetComponent in interface IComponentProvider<C,T>public IElement getConfiguration()
public IUIComponent getParent()
public IValueHolder<M> getValueHolder()
getValueHolder in interface IUIComponent<M,C,T>public boolean isDisposed()
IDisposabletrue if this object is already disposed.isDisposed in interface IDisposablepublic void removeNotificationListener(EventType type, INotificationListener listener)
INotificationSupportlistener from the collection of objects to be
informed about events of type name.removeNotificationListener in interface INotificationSupporttype - The event type we are no longer interested in.listener - The object registered for the event till now.public void setValueHolder(IValueHolder<M> pValueHolder)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.