package SimpleOutline;
import DisplayProject.DisplayNode;
import DisplayProject.binding.beans.Observable;
import Framework.ImageData;
import Framework.RuntimeProperties;
import Framework.TextData;
import java.io.Serializable;
/**
* BrowserDisplayNode<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@SuppressWarnings("serial")
public class BrowserDisplayNode
extends DisplayNode
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
private ImageData image;
private TextData text;
// ------------
// Constructors
// ------------
public BrowserDisplayNode() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.image = null;
this.text = null;
}
// ----------------------
// Accessors and Mutators
// ----------------------
public void setImage(ImageData image) {
ImageData oldValue = this.image;
this.image = image;
// this.qq_Listeners.firePropertyChange("image", oldValue, this.image);
}
public ImageData getImage() {
return this.image;
}
public void setText(TextData text) {
TextData oldValue = this.text;
this.text = text;
// this.qq_Listeners.firePropertyChange("text", oldValue, this.text);
}
public TextData getText() {
return this.text;
}
// -------
// Methods
// -------
/**
* isChildOf<p>
* This method climbs up the hierachy a parents,<br>
* checking to make sure the 'Node' is not an ancestor.<br>
* Note that it works on GenericNode instead of<br>
* BrowserDisplayNode. This just makes it simpler so<br>
* we don't have to cast 'Parent'.<br>
* <p>
* @param node Type: DisplayNode
* @return boolean
*/
public boolean isChildOf(DisplayNode node) {
DisplayNode ancestor = (DisplayNode)this.getParent();
while (ancestor != null) {
if (ancestor == node) {
return true;
}
ancestor = (DisplayNode)ancestor.getParent();
}
return false;
}
} // end class BrowserDisplayNode
// c Pass 2 Conversion Time: 46 milliseconds