use of cern.gp.explorer.TreeExplorer in project ACS by ACS-Community.
the class PrintUtil method print.
/* (non-Javadoc)
* @see cern.gp.printing.PrintStrategy#print(java.awt.print.Printable)
*/
public void print(Component component) {
Printable printable = null;
if (component instanceof TreeExplorer) {
printable = new PrintableTreeExplorer((TreeExplorer) component);
} else if (component instanceof ListTableExplorer) {
printable = new PrintableListTableExplorer((ListTableExplorer) component);
} else {
printable = new PrintableComponent(component);
}
printPDF(component.getName(), printable);
}
use of cern.gp.explorer.TreeExplorer in project ACS by ACS-Community.
the class TestTreeExplorer method createTreeExplorer.
public static TreeExplorer createTreeExplorer() {
TreeExplorer expl = null;
try {
GPNode root = NodeFactory.createNode(new SimpleDemoBean("parent"), new RecursiveChildrenListManager());
expl = new TreeExplorer();
expl.setRootNode(root);
} catch (IntrospectionException ex) {
ex.printStackTrace();
}
return expl;
}
use of cern.gp.explorer.TreeExplorer in project ACS by ACS-Community.
the class TestTreeExplorerWithButtons method createTreeExplorer.
public static TreeExplorer createTreeExplorer() {
TreeExplorer expl = null;
try {
GPNode root = NodeFactory.createNode(new SimpleDemoBean("parent"), new RecursiveChildrenListManager());
expl = new TreeExplorer();
expl.setRootNode(root);
} catch (IntrospectionException ex) {
ex.printStackTrace();
}
return expl;
}
use of cern.gp.explorer.TreeExplorer in project ACS by ACS-Community.
the class TestTreeExplorerWithButtons method main.
public static void main(String[] args) {
TreeExplorer expl = createTreeExplorer();
JPanel panel = ActionUtils.createJButtonPanel(new Class[] { PropertiesAction.class, OpenLocalExplorerAction.class });
expl.add(panel, BorderLayout.SOUTH);
WindowUtils.openInMode(expl, "TestTreeExplorer");
}
Aggregations