2026-02-07 18:54:19 +01:00
|
|
|
/* Author: Maple
|
|
|
|
|
* Feb. 2 2026
|
|
|
|
|
* */
|
|
|
|
|
|
|
|
|
|
package org.openautonomousconnection.oacswing.component;
|
|
|
|
|
|
2026-02-07 21:56:05 +01:00
|
|
|
import lombok.NonNull;
|
2026-02-07 18:54:19 +01:00
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
import javax.swing.tree.TreeModel;
|
|
|
|
|
import javax.swing.tree.TreeNode;
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
import java.util.Hashtable;
|
|
|
|
|
import java.util.Vector;
|
|
|
|
|
|
|
|
|
|
public class OACTree extends JTree implements OACComponent {
|
|
|
|
|
public OACTree() {
|
|
|
|
|
super();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public OACTree(Object[] value) {
|
|
|
|
|
super(value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public OACTree(Vector<?> value) {
|
|
|
|
|
super(value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public OACTree(Hashtable<?, ?> value) {
|
|
|
|
|
super(value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public OACTree(TreeNode root) {
|
|
|
|
|
super(root);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public OACTree(TreeNode root, boolean asksAllowsChildren) {
|
|
|
|
|
super(root, asksAllowsChildren);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public OACTree(TreeModel newModel) {
|
|
|
|
|
super(newModel);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Component add(Component comp) {
|
|
|
|
|
this.initOther(comp);
|
|
|
|
|
return super.add(comp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Component add(Component comp, int index) {
|
|
|
|
|
this.initOther(comp);
|
|
|
|
|
return super.add(comp, index);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2026-02-07 21:56:05 +01:00
|
|
|
public void add(@NonNull Component comp, Object constraints) {
|
2026-02-07 18:54:19 +01:00
|
|
|
this.initOther(comp);
|
|
|
|
|
super.add(comp, constraints);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Component add(String name, Component comp) {
|
|
|
|
|
this.initOther(comp);
|
|
|
|
|
return super.add(name, comp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void add(Component comp, Object constraints, int index) {
|
|
|
|
|
this.initOther(comp);
|
|
|
|
|
super.add(comp, constraints, index);
|
|
|
|
|
}
|
|
|
|
|
}
|