|
|
|
@ -38,7 +38,7 @@ import java.awt.image.ImageObserver;
|
|
|
|
|
public class DragToolBarPane extends WidgetToolBarPane { |
|
|
|
|
private DefaultListModel toolbarButtonListModel = new DefaultListModel(); |
|
|
|
|
private JList toolbarButtonList; |
|
|
|
|
|
|
|
|
|
private static final int SOLID_WIDTH_TOOLBAR = 499; |
|
|
|
|
public DragToolBarPane() { |
|
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
|
|
|
|
@ -67,10 +67,10 @@ public class DragToolBarPane extends WidgetToolBarPane {
|
|
|
|
|
toolbarButtonList.setDragEnabled(true); |
|
|
|
|
toolbarButtonList.setTransferHandler(new FromTransferHandler()); |
|
|
|
|
northToolBar = new ToolBarPane(); |
|
|
|
|
northToolBar.setPreferredSize(new Dimension(ImageObserver.WIDTH, 26)); |
|
|
|
|
northToolBar.setPreferredSize(new Dimension(BidiUtils.rtl() ? SOLID_WIDTH_TOOLBAR : ImageObserver.WIDTH, 26)); |
|
|
|
|
northToolBar.setBackground(Color.lightGray); |
|
|
|
|
southToolBar = new ToolBarPane(); |
|
|
|
|
southToolBar.setPreferredSize(new Dimension(ImageObserver.WIDTH, 26)); |
|
|
|
|
southToolBar.setPreferredSize(new Dimension(BidiUtils.rtl() ? SOLID_WIDTH_TOOLBAR : ImageObserver.WIDTH, 26)); |
|
|
|
|
southToolBar.setBackground(Color.lightGray); |
|
|
|
|
JPanel northContentPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
SettingToolBar top = new SettingToolBar(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ToolBar_Top"), northToolBar); |
|
|
|
@ -87,10 +87,8 @@ public class DragToolBarPane extends WidgetToolBarPane {
|
|
|
|
|
movePane.add(northContentPane, BorderLayout.NORTH); |
|
|
|
|
movePane.add(toolbarButtonList, BorderLayout.CENTER); |
|
|
|
|
movePane.add(southContentPane, BorderLayout.SOUTH); |
|
|
|
|
BidiUtils.setOrientationByLocale(toolbarButtonList); |
|
|
|
|
// SplitPane
|
|
|
|
|
this.add(new JScrollPane(movePane), BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
this.add(BidiUtils.applyOrientationByLocale(new JScrollPane(movePane)), BorderLayout.CENTER); |
|
|
|
|
JPanel buttonPane = FRGUIPaneFactory.createCenterFlowInnerContainer_S_Pane(); |
|
|
|
|
UIButton defaultButton = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Use_Default_ToolBar")); |
|
|
|
|
defaultButton.addActionListener(new ActionListener() { |
|
|
|
|