|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
It is an interface to be used in things that can be clipped (i.e. cut, copied, pasted).
Method Summary | |
void |
attach(Clippable newSon)
Attaches another object into this one. |
boolean |
canBeAttached(Clippable newSon)
Checks whether the passed object can be attached into this one. |
boolean |
canBeCopied()
Checks whether this object can be copied or not. |
boolean |
canBeCut()
Checks whether this object can be cut or not. |
Clippable |
copy()
Copies this object. |
Clippable |
cut()
Cuts the object. |
Clippable |
duplicate()
Duplicates (clones) this object. |
java.lang.Object |
getPlace()
Returns the place that contains this object. |
java.lang.String |
getType()
Returns the type of the object. |
java.lang.Object |
getValue()
Returns the value of the object. |
void |
paste(Clippable newFather)
Pastes the object into another. |
void |
setPlace(java.lang.Object place)
Sets the place where the object is put. |
void |
unclip()
It means that the status of the object must be reset. |
Method Detail |
public java.lang.String getType()
public java.lang.Object getValue()
public java.lang.Object getPlace()
public void setPlace(java.lang.Object place)
place
- The object that contains this object.public Clippable cut()
public Clippable copy()
public void unclip()
public void paste(Clippable newFather)
newFather
- The object to paste this object into.public void attach(Clippable newSon)
newSon
- The object to be pasted into this object.public boolean canBeCut()
true
: the object can be cut;
false
: otherwise.public boolean canBeCopied()
true
: the object can be copied;
false
: otherwise.public boolean canBeAttached(Clippable newSon)
newSon
- The new object that is going to be attached into this one.
true
: the object can be attached;
false
: otherwise.public Clippable duplicate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |