|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ogs.support.Object | +--ogs.core.Feature
A feature is an object that can be attached to another object. While attached, a feature may modify the object that it is attached to. These modifications must be reversible if and when the feature is detached from the object.
Field Summary |
Fields inherited from class ogs.support.Object |
listeners |
Constructor Summary | |
protected |
Feature()
Create a new feature. |
Method Summary | |
boolean |
attachObject(Object object)
Attach this feature to an object. |
protected boolean |
canAttach(Object object)
Determine if this feature can be attached to an object. |
protected boolean |
canDetach()
Determine if this feature can be detached to an object. |
boolean |
detachObject()
Detach this feature from an object. |
Object |
getObject()
Determine the object that this feature is currently attached to. |
Methods inherited from class ogs.support.Object |
addListener, handleEvent, notifyListeners, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Feature()
Method Detail |
protected boolean canAttach(Object object)
object
- Object to attach this feature to.
public boolean attachObject(Object object)
object
- Object to attach this feature to.
protected boolean canDetach()
public boolean detachObject()
public Object getObject()
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |