Browse Source

换一下方法调用方式

persist/11.0-arabic
obo 4 months ago
parent
commit
042f0ff75d
  1. 2
      designer-base/src/main/java/com/fr/design/actions/server/ConnectionListAction.java
  2. 2
      designer-base/src/main/java/com/fr/design/actions/server/GlobalTableDataAction.java
  3. 7
      designer-base/src/main/java/com/fr/design/data/datapane/management/search/pane/TreeSearchToolbarPane.java
  4. 2
      designer-base/src/main/java/com/fr/design/mainframe/loghandler/LogMessageBar.java
  5. 4
      designer-base/src/main/java/com/fr/design/mainframe/manager/search/searcher/control/pane/TemplateTreeSearchToolbarPane.java

2
designer-base/src/main/java/com/fr/design/actions/server/ConnectionListAction.java

@ -119,7 +119,7 @@ public class ConnectionListAction extends UpdateAction {
menuItem.setName(getName()); menuItem.setName(getName());
setPressedIcon4Button(menuItem); setPressedIcon4Button(menuItem);
setDisabledIcon4Button(menuItem); setDisabledIcon4Button(menuItem);
menuItem.applyComponentOrientation(BidiUtils.getOrientationByLocale()); BidiUtils.applyOrientationByLocale(menuItem);
object = menuItem; object = menuItem;
this.putValue(UILockMenuItem.class.getName(), object); this.putValue(UILockMenuItem.class.getName(), object);

2
designer-base/src/main/java/com/fr/design/actions/server/GlobalTableDataAction.java

@ -182,7 +182,7 @@ public class GlobalTableDataAction extends UpdateAction implements ResponseDataS
setPressedIcon4Button(menuItem); setPressedIcon4Button(menuItem);
setDisabledIcon4Button(menuItem); setDisabledIcon4Button(menuItem);
object = menuItem; object = menuItem;
menuItem.applyComponentOrientation(BidiUtils.getOrientationByLocale()); BidiUtils.applyOrientationByLocale(menuItem);
this.putValue(UILockMenuItem.class.getName(), object); this.putValue(UILockMenuItem.class.getName(), object);
ServerTableDataLockChangeChecker.getInstance().addEditLockChangeListener((UILockMenuItem)object); ServerTableDataLockChangeChecker.getInstance().addEditLockChangeListener((UILockMenuItem)object);
} }

7
designer-base/src/main/java/com/fr/design/data/datapane/management/search/pane/TreeSearchToolbarPane.java

@ -89,12 +89,7 @@ public class TreeSearchToolbarPane extends JPanel implements TreeSearchStatusCha
add(contentPane, BorderLayout.CENTER); add(contentPane, BorderLayout.CENTER);
setPreferredSize(new Dimension(240, 30)); setPreferredSize(new Dimension(240, 30));
TableDataTreeSearchManager.getInstance().registerTreeSearchStatusChangeListener(this); TableDataTreeSearchManager.getInstance().registerTreeSearchStatusChangeListener(this);
this.applyComponentOrientation(BidiUtils.getOrientationByLocale()); BidiUtils.applyOrientationByLocale(this);
toolbar.applyComponentOrientation(BidiUtils.getOrientationByLocale());
toolbarPane.applyComponentOrientation(BidiUtils.getOrientationByLocale());
searchPane.applyComponentOrientation(BidiUtils.getOrientationByLocale());
searchTextField.applyComponentOrientation(BidiUtils.getOrientationByLocale());
contentPane.applyComponentOrientation(BidiUtils.getOrientationByLocale());
} }
private void initContentPane() { private void initContentPane() {

2
designer-base/src/main/java/com/fr/design/mainframe/loghandler/LogMessageBar.java

@ -53,7 +53,7 @@ public class LogMessageBar extends JPanel {
return; return;
} }
dlg = new LogDetailPane().showDialog(); dlg = new LogDetailPane().showDialog();
dlg.applyComponentOrientation(BidiUtils.getOrientationByLocale()); BidiUtils.applyOrientationByLocale(dlg);
dlg.setVisible(true); dlg.setVisible(true);
} }
}); });

4
designer-base/src/main/java/com/fr/design/mainframe/manager/search/searcher/control/pane/TemplateTreeSearchToolbarPane.java

@ -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());
} }
/** /**

Loading…
Cancel
Save