|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.buffalo.fs7.mathlib.MathlibEvent
A MathlibEvent is fired whenever a variable is created, deleted or changes it's value. With this mechanism all listeners are notified about a change in the Mathlib scope. The event is usually fired by the Parse class, but exceptionally as well in the jaQuzzi program.
MathlibEventListener| Field Summary | |
static int |
ADD
variable added |
static int |
CHANGE
variable value change |
static int |
CHANGE_CATEGORY
variable category change |
static int |
CHANGE_NAME
variable name change |
static int |
REMOVE
variable removed |
| Constructor Summary | |
MathlibEvent(java.lang.Object source,
java.lang.String objectName,
java.lang.String newName,
java.lang.String category,
MathObject mathObject,
int action)
creates a MathlibEvent |
|
MathlibEvent(java.lang.String objectName,
MathObject mathObject,
int action)
creates a MathlibEvent |
|
MathlibEvent(java.lang.String oldName,
java.lang.String newName)
creates a rename MathlibEvent |
|
MathlibEvent(java.lang.String objectName,
java.lang.String newName,
java.lang.String category,
MathObject mathObject,
int action)
creates a MathlibEvent |
|
| Method Summary | |
int |
getAction()
returns the action code of the mathlib event |
java.lang.String |
getCategory()
returns the category of the MathObject |
MathObject |
getMathObject()
returns the value of the affected MathObject |
java.lang.String |
getNewName()
return the newName argument |
java.lang.String |
getObjectName()
returns the name of the affected MathObject |
java.lang.Object |
getSource()
returns the origin of the MathlibEvent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int ADD
public static int REMOVE
public static int CHANGE
public static int CHANGE_NAME
public static int CHANGE_CATEGORY
| Constructor Detail |
public MathlibEvent(java.lang.Object source,
java.lang.String objectName,
java.lang.String newName,
java.lang.String category,
MathObject mathObject,
int action)
source - the source object causing the eventobjectName - the name of the affected MathObjectnewName - a possible new name for the MathObjectcategory - the category of the mathObjectmathObject - the value of the MathObjectaction - the action code
public MathlibEvent(java.lang.String objectName,
java.lang.String newName,
java.lang.String category,
MathObject mathObject,
int action)
objectName - the name of the affected MathObjectnewName - a possible new name for the MathObjectcategory - the category of the mathObjectmathObject - the value of the MathObjectaction - the action code
public MathlibEvent(java.lang.String objectName,
MathObject mathObject,
int action)
objectName - the name of the affected MathObjectmathObject - the value of the MathObjectaction - the action code
public MathlibEvent(java.lang.String oldName,
java.lang.String newName)
objectName - the name of the affected MathObjectnewName - a possible new name for the MathObject| Method Detail |
public java.lang.Object getSource()
public int getAction()
public java.lang.String getNewName()
public java.lang.String getObjectName()
public MathObject getMathObject()
public java.lang.String getCategory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||