|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPolicyProvider
A policy provider supplies the component (e.g. a tree table or a timeline) that it is attached to with policy implementations. These implementations can be registered with the provider. They can be looked up based on the policy interface.
AbstractGanttChart.getPolicyProvider()
,
LayerContainer.getPolicyProvider()
,
TreeTable.getPolicyProvider()
,
Dateline.getPolicyProvider()
Method Summary | ||
---|---|---|
void |
addPolicyProviderListener(IPolicyProviderListener l)
Adds a listener to the policy provider that will be informed about changes to the provider. |
|
|
getPolicy(java.lang.Class<T> policyType)
Returns a policy implementation for the given policy type (policy interface). |
|
void |
removePolicyProviderListener(IPolicyProviderListener l)
Removes a listener from the policy provider. |
|
|
setPolicy(java.lang.Class<T> policyType,
T policyImpl)
Registers a policy implementation for the given policy type (policy interface). |
Method Detail |
---|
<T extends IPolicy> void setPolicy(java.lang.Class<T> policyType, T policyImpl)
T
- the policy typepolicyType
- the policy interface class (e.g. INodeEditPolicy
)policyImpl
- the policy implementation (e.g. DefaultNodeEditPolicy
)getPolicy(Class)
<T extends IPolicy> T getPolicy(java.lang.Class<T> policyType)
T
- the policy typepolicyType
- the policy interface class (e.g. INodeEditPolicy
)
DefaultNodeEditPolicy
)setPolicy(Class, IPolicy)
void addPolicyProviderListener(IPolicyProviderListener l)
l
- the added policy provider listenervoid removePolicyProviderListener(IPolicyProviderListener l)
l
- the removed policy provider listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |