|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<FirePolicy>
com.miginfocom.property.FirePolicy
public enum FirePolicy
How the old and new property value should be compared and thus how to detect if an event change should be fired.
| Enum Constant Summary | |
|---|---|
ALWAYS
It will always fire and no comparison is made. |
|
NOT_EQUALS
The event will fire if the old and new value are not equals. |
|
NOT_SAME
The event will fire if the old and new value are not the same object |
|
| Method Summary | |
|---|---|
boolean |
shouldFire(java.lang.Object o1,
java.lang.Object o2)
Compares the two objects depending on the value of this. |
static FirePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FirePolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FirePolicy NOT_EQUALS
public static final FirePolicy NOT_SAME
public static final FirePolicy ALWAYS
| Method Detail |
|---|
public static FirePolicy[] values()
for (FirePolicy c : FirePolicy.values()) System.out.println(c);
public static FirePolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public final boolean shouldFire(java.lang.Object o1,
java.lang.Object o2)
o1 - The first object. Normally the "old" property value.o2 - The second object. Normally the "new" property value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||