|
|
@ -93,6 +93,7 @@ public class TemplateTreeSearchToolbarPane extends JPanel implements TreeSearchS |
|
|
|
add(contentPane, BorderLayout.CENTER); |
|
|
|
add(contentPane, BorderLayout.CENTER); |
|
|
|
setPreferredSize(new Dimension(240, 30)); |
|
|
|
setPreferredSize(new Dimension(240, 30)); |
|
|
|
TemplateTreeSearchManager.getInstance().registerTreeSearchStatusChangeListener(this); |
|
|
|
TemplateTreeSearchManager.getInstance().registerTreeSearchStatusChangeListener(this); |
|
|
|
|
|
|
|
BidiUtils.applyOrientationByLocale(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initContentPane() { |
|
|
|
private void initContentPane() { |
|
|
@ -133,7 +134,6 @@ public class TemplateTreeSearchToolbarPane extends JPanel implements TreeSearchS |
|
|
|
searchPane.add(searchLabel, BorderLayout.WEST); |
|
|
|
searchPane.add(searchLabel, BorderLayout.WEST); |
|
|
|
searchPane.add(searchTextField, BorderLayout.CENTER); |
|
|
|
searchPane.add(searchTextField, BorderLayout.CENTER); |
|
|
|
searchPane.add(returnLabel, BorderLayout.EAST); |
|
|
|
searchPane.add(returnLabel, BorderLayout.EAST); |
|
|
|
searchPane.applyComponentOrientation(BidiUtils.getOrientationByLocale()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initSearchTextField() { |
|
|
|
private void initSearchTextField() { |
|
|
@ -173,7 +173,6 @@ public class TemplateTreeSearchToolbarPane extends JPanel implements TreeSearchS |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.searchTextField.addKeyListener(enterPressed); |
|
|
|
this.searchTextField.addKeyListener(enterPressed); |
|
|
|
searchTextField.applyComponentOrientation(BidiUtils.getOrientationByLocale()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void dealWithTextChange() { |
|
|
|
private void dealWithTextChange() { |
|
|
@ -188,7 +187,6 @@ public class TemplateTreeSearchToolbarPane extends JPanel implements TreeSearchS |
|
|
|
toolbarPane = new JPanel(); |
|
|
|
toolbarPane = new JPanel(); |
|
|
|
toolbarPane.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
toolbarPane.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
toolbarPane.add(toolbar, BorderLayout.CENTER); |
|
|
|
toolbarPane.add(toolbar, BorderLayout.CENTER); |
|
|
|
toolbarPane.applyComponentOrientation(BidiUtils.getOrientationByLocale()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|