|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for things that can be opened and closed. Seems like a reasonable place to implement the lock API as well.
Field Summary |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Method Summary | |
boolean |
close(Commandable agent)
Notifies object that it's being closed. |
boolean |
isLocked()
Returns true if the object is locked. |
boolean |
isOpen()
Returns true if the object is currently open. |
void |
lock(Commandable agent)
Locks the lock. |
boolean |
open(Commandable agent)
Notifies object that it's being opened. |
void |
unlock(Commandable agent)
Unlocks the lock. |
Methods inherited from interface wyvern.lib.MethodHookable |
addMethodHook, removeMethodHook, runMethodHook |
Methods inherited from interface wyvern.lib.Broadcaster |
broadcast, broadcast, broadcast, broadcast, broadcast |
Method Detail |
public boolean isLocked()
public boolean isOpen()
public boolean open(Commandable agent)
agent
- the agent opening it (can be null)
public boolean close(Commandable agent)
agent
- the agent closed it (can be null)
public void lock(Commandable agent)
public void unlock(Commandable agent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |