16 package net.squiz.matrix.assetmap;
19 import net.squiz.matrix.matrixtree.*;
21 import java.awt.event.*;
22 import net.squiz.matrix.core.*;
23 import net.squiz.matrix.ui.*;
24 import javax.swing.plaf.*;
25 import net.squiz.matrix.plaf.*;
29 protected MatrixTree tree;
30 private JSplitPane splitPane;
36 private void construct() {
37 splitPane =
new JSplitPane(JSplitPane.VERTICAL_SPLIT);
38 splitPane.setUI(
new MatrixSplitPaneUI());
40 JScrollPane scrollPane =
new JScrollPane(constructTree());
41 scrollPane.setBorder(BorderFactory.createEmptyBorder());
43 StatusKey statusKey =
new StatusKey();
45 splitPane.setTopComponent(scrollPane);
46 splitPane.setBottomComponent(statusKey);
47 splitPane.setOneTouchExpandable(
true);
48 splitPane.setDividerLocation(Integer.MAX_VALUE);
50 setLayout(
new BorderLayout());
51 JPanel tabUnderlay =
new JPanel();
52 tabUnderlay.setBackground(MatrixLookAndFeel.PANEL_COLOUR);
53 add(tabUnderlay, BorderLayout.WEST);
56 add(MatrixStatusBar.createStatusBar(), BorderLayout.SOUTH);
61 protected MatrixTree constructTree() {
62 tree = MatrixTreeBus.createTree(
new LoadingNode());
66 protected MatrixTree createFinderTree() {
67 tree = MatrixTreeBus.createFinderTree(
new LoadingNode());
71 public MatrixTree getTree() {
75 public String getName() {
76 return getAccessibleContext().getAccessibleName();
79 public void setName(String name) {
80 getAccessibleContext().setAccessibleName(name);
83 public JComponent getViewComponent() {
87 public JSplitPane getSplitPane() {