|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.cosylab.gui.components.range2.RangedValueEvent
public class RangedValueEvent
This is the event object holding the information about the change in
RangedValue
. This implementation notifies about changes in
minimum, maximum, value or policy changes. More than one change can be
carried by this event.
Field Summary | |
---|---|
static int |
MAXIMUM_CHANGED
|
static int |
MINIMUM_CHANGED
|
static int |
POLICY_CHANGED
|
static int |
RAW_VALUE_CHANGED
|
static int |
VALUE_CHANGED
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
RangedValueEvent(java.lang.Object source,
boolean policyChanged)
Constructor for RangedValueEvent. |
|
RangedValueEvent(java.lang.Object source,
boolean min,
boolean max,
boolean val,
boolean raw)
Constructor for RangedValueEvent. |
Method Summary | |
---|---|
int |
getChange()
Returns the change mask. |
boolean |
isMaximumChanged()
Returns whether value has changed. |
boolean |
isMinimumChanged()
Reuturns whether minimum has changed. |
boolean |
isMinMaxChanged()
Returns whether minimum and maximum have changed. |
boolean |
isMinOrMaxChanged()
Returns whether minimum or maximum have changed. |
boolean |
isPolicyChanged()
Returns whether the policies have changed. |
boolean |
isRawValueChanged()
Returns whether value has changed. |
boolean |
isValueChanged()
Returns whether value has changed. |
protected void |
setBit(int bit,
boolean state)
|
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MINIMUM_CHANGED
public static final int MAXIMUM_CHANGED
public static final int VALUE_CHANGED
public static final int RAW_VALUE_CHANGED
public static final int POLICY_CHANGED
Constructor Detail |
---|
public RangedValueEvent(java.lang.Object source, boolean min, boolean max, boolean val, boolean raw)
source
- min
- boolean Has minimum changed.max
- boolean Has maximum changed.val
- boolean Has value changed.public RangedValueEvent(java.lang.Object source, boolean policyChanged)
source
- ObjectpolicyAdded
- boolean True if policy added, false if removed.Method Detail |
---|
protected final void setBit(int bit, boolean state)
bit
- intstate
- booleanpublic final boolean isMinimumChanged()
public final boolean isMaximumChanged()
public final boolean isValueChanged()
public final boolean isRawValueChanged()
public final boolean isMinMaxChanged()
public final boolean isMinOrMaxChanged()
public final boolean isPolicyChanged()
public final int getChange()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |