|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.range2.RangedValuePolicy
public abstract class RangedValuePolicy
This class represents adjustable policies for RangedValue
.
Whenever a change any of the values (minimum, maximum or value) is made in
RangedValue
validate method will be called giving the
implementor of this interface the chance to adjust the values before they
are set and property change events invoked.
Note: Regardles of the changes proposed by validate method,
RangedValue
will always ensure the proper relation between the
values: values must always form increasing order (minimum, value,
maximum).
Constructor Summary | |
---|---|
RangedValuePolicy()
|
Method Summary | |
---|---|
void |
addPeerPolicy(RangedValuePolicy p)
Adds provided policy to the end of the chin |
RangedValuePolicy |
getPeerPolicy()
Returns the peer policy. |
RangedValuePolicy |
insertPeerPolicy(RangedValuePolicy p)
Inserts provided polici as first policy in chain, here next peer policy is this policy. |
RangedValuePolicy |
removePeerPolicy(RangedValuePolicy p)
Removes provided policy from the chain, and returnes first policy in chain. |
RangedValuePolicy |
removePeerPolicyByType(java.lang.Class<? extends RangedValuePolicy> c)
Removes provided policy from the chain, and returnes first policy in chain. |
abstract RangedValue |
validate(RangedValue params)
Passes the value triplet params that may be modified by
validate method. |
protected RangedValue |
validatePeerPolicy(RangedValue p)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangedValuePolicy()
Method Detail |
---|
public abstract RangedValue validate(RangedValue params)
params
that may be modified by
validate method. Regardles of the changes made, all three values will
still be made to comply with the basic definition of
RangedValue
.
Before or after this policy has been executed it must call protected method validatePeerPolicy(RangedValue).
params
- Triplet of values to validate.
public RangedValuePolicy insertPeerPolicy(RangedValuePolicy p)
p
- new first policy in chain
public void addPeerPolicy(RangedValuePolicy p)
p
- public RangedValuePolicy getPeerPolicy()
public RangedValuePolicy removePeerPolicy(RangedValuePolicy p)
p
- policy to be removed from chain
public RangedValuePolicy removePeerPolicyByType(java.lang.Class<? extends RangedValuePolicy> c)
p
- policy to be removed from chain
protected RangedValue validatePeerPolicy(RangedValue p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |