Methods Summary |
---|
public void | addRecord()
_numberOfContainedRecords++;
addRecordToParent();
|
protected void | addRecordFromChild()Passes up the addition from child to parent
_numberOfRecordsFromChildren++;
addRecordToParent();
|
protected void | addRecordToParent()
TreeNode parent = getParent();
if (parent == null) {
return;
}
((CategoryNode) parent).addRecordFromChild();
|
public boolean | equals(java.lang.Object obj)
if (obj instanceof CategoryNode) {
CategoryNode node = (CategoryNode) obj;
String tit1 = getTitle().toLowerCase();
String tit2 = node.getTitle().toLowerCase();
if (tit1.equals(tit2)) {
return (true);
}
}
return (false);
|
public int | getNumberOfContainedRecords()
return _numberOfContainedRecords;
|
protected int | getNumberOfRecordsFromChildren()
return _numberOfRecordsFromChildren;
|
public java.lang.String | getTitle()
return (String) getUserObject();
|
protected int | getTotalNumberOfRecords()
return getNumberOfRecordsFromChildren() + getNumberOfContainedRecords();
|
public boolean | hasFatalChildren()
return _hasFatalChildren;
|
public boolean | hasFatalRecords()
return _hasFatalRecords;
|
public int | hashCode()
return (getTitle().hashCode());
|
public boolean | isSelected()
return _selected;
|
public void | resetNumberOfContainedRecords()
_numberOfContainedRecords = 0;
_numberOfRecordsFromChildren = 0;
_hasFatalRecords = false;
_hasFatalChildren = false;
|
public void | setAllDescendantsDeSelected()
Enumeration children = children();
while (children.hasMoreElements()) {
CategoryNode node = (CategoryNode) children.nextElement();
node.setSelected(false);
node.setAllDescendantsDeSelected();
}
|
public void | setAllDescendantsSelected()
Enumeration children = children();
while (children.hasMoreElements()) {
CategoryNode node = (CategoryNode) children.nextElement();
node.setSelected(true);
node.setAllDescendantsSelected();
}
|
public void | setHasFatalChildren(boolean flag)
_hasFatalChildren = flag;
|
public void | setHasFatalRecords(boolean flag)
_hasFatalRecords = flag;
|
public void | setSelected(boolean s)
if (s != _selected) {
_selected = s;
}
|
public java.lang.String | toString()
return (getTitle());
|