|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tieable
A Tieable object has an associated serial number. The value of the serial should increase when the value of the object changes. A Tieable can "sync" with another Tieable, presumably by copying its serial number and other information. A given Tieable might only be able to synchronize with other Tiebles of certain types. If its sync() method is called with an object of the wrong type, it should probably thrown an IllegalArguemntException. See the "Tie" and "Controller" classes for information about how Tieable are used.
Method Summary | |
---|---|
long |
getSerialNumber()
Get the serial number associated with this Tieable. |
void |
sync(Tie tie,
Tieable newest)
This routine is called to tell this Tieable that the serial numbers of the Tieables that have been added to the Tie do not match. |
Method Detail |
---|
long getSerialNumber()
void sync(Tie tie, Tieable newest)
tie
- the tie connecting the objectsnewest
- the object to notify
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |