2015-01-06 17:14:16 +01:00
|
|
|
package com.minres.scviewer.database;
|
2015-01-03 16:34:32 +01:00
|
|
|
|
|
|
|
import java.beans.PropertyChangeListener;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2015-01-06 17:14:16 +01:00
|
|
|
public class HierNode implements IHierNode {
|
2015-01-03 16:34:32 +01:00
|
|
|
|
|
|
|
protected String name;
|
|
|
|
|
2015-01-06 17:14:16 +01:00
|
|
|
protected ArrayList<IHierNode> childs;
|
2015-01-03 16:34:32 +01:00
|
|
|
|
|
|
|
public HierNode(String name) {
|
|
|
|
this.name=name;
|
2015-01-06 17:14:16 +01:00
|
|
|
childs = new ArrayList<IHierNode>();
|
2015-01-03 16:34:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void addPropertyChangeListener(PropertyChangeListener l) {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void removePropertyChangeListener(PropertyChangeListener l) {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getFullName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name=name;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-01-06 17:14:16 +01:00
|
|
|
public List<IHierNode> getChildNodes() {
|
2015-01-03 16:34:32 +01:00
|
|
|
return childs;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|