|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfable.adt.FableComponent
fable.adt.Folder
public class Folder
This class represents the folder contains folders, feeds, and/or articles. Folder contains its description.
Constructor Summary | |
---|---|
Folder()
Constructs a new empty folder. |
Method Summary | |
---|---|
void |
accept(FableVisitor v)
Accept the visitor v to visit this. |
void |
acceptRecursive(FableVisitor v)
Accept the visitor v to visit this, and recurse on children of this. |
boolean |
addChild(FableComponent fc)
Add c as a child of this. |
boolean |
isSimilarTo(FableComponent fc)
Returns true if this and fc are similar. |
java.lang.String |
toString()
Returns string representation of this folder. |
Methods inherited from class fable.adt.FableComponent |
---|
activate, addStructuralChangeListener, getChildren, getDate, getDescendants, getParent, getPosition, getTitle, isAncestorOf, moveDown, moveUp, removeAllListeners, removeChild, removeStructuralChangeListener, setParent, setPosition, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Folder()
Method Detail |
---|
public boolean isSimilarTo(FableComponent fc)
isSimilarTo
in class FableComponent
fc
- FableComponent object to compare.
public java.lang.String toString()
toString
in class java.lang.Object
public final boolean addChild(FableComponent fc)
addChild
in interface FableContainer
addChild
in class FableComponent
fc
- A child to be added.
java.lang.NullPointerException
- if fc is null.public void accept(FableVisitor v)
FableComponent
accept
in class FableComponent
v
- the visitor to visit this.public void acceptRecursive(FableVisitor v)
FableComponent
acceptRecursive
in class FableComponent
v
- the visitor to visit this and decendants of this.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |