diff --git a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java index e35d0c056..b5daed04e 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java +++ b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java @@ -684,7 +684,7 @@ public class AlphaFineDialog extends UIDialog { } else { try { Thread.sleep(10); - doSearch(searchTextField.getText()); + doSearch(searchTextField.getText().toLowerCase()); } catch (InterruptedException e1) { FRLogger.getLogger().error(e1.getMessage()); } diff --git a/designer/src/com/fr/design/mainframe/alphafine/preview/DocumentPreviewPane.java b/designer/src/com/fr/design/mainframe/alphafine/preview/DocumentPreviewPane.java index ed96fbed9..6aa46f1a6 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/preview/DocumentPreviewPane.java +++ b/designer/src/com/fr/design/mainframe/alphafine/preview/DocumentPreviewPane.java @@ -3,7 +3,6 @@ package com.fr.design.mainframe.alphafine.preview; import com.fr.design.gui.itextarea.UITextArea; import com.fr.design.mainframe.alphafine.AlphaFineConstants; -import com.fr.design.utils.gui.GUICoreUtils; import javax.swing.*; import java.awt.*; @@ -16,30 +15,18 @@ public class DocumentPreviewPane extends JPanel { public DocumentPreviewPane(String title, String summary) { this.setLayout(new BorderLayout()); this.setBackground(Color.WHITE); + this.setPreferredSize(new Dimension(AlphaFineConstants.RIGHT_WIDTH, AlphaFineConstants.CONTENT_HEIGHT)); UITextArea titleArea = new UITextArea(title); - UITextArea contentArea = new UITextArea(summary); - titleArea.setOpaque(false); - contentArea.setOpaque(false); - titleArea.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); + titleArea.setBorder(null); + titleArea.setEditable(false); titleArea.setForeground(AlphaFineConstants.BLUE); - contentArea.setForeground(AlphaFineConstants.BLACK); - titleArea.setPreferredSize(new Dimension(360, 30)); titleArea.setFont(AlphaFineConstants.LARGE_FONT); - contentArea.setFont(AlphaFineConstants.MEDIUM_FONT); add(titleArea, BorderLayout.NORTH); + UITextArea contentArea = new UITextArea(summary); + contentArea.setEditable(false); + contentArea.setBorder(null); + contentArea.setForeground(AlphaFineConstants.BLACK); + contentArea.setFont(AlphaFineConstants.MEDIUM_FONT); add(contentArea, BorderLayout.CENTER); } - - - public static void main(String[] args) { - JFrame jf = new JFrame("test"); - jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - JPanel content = (JPanel) jf.getContentPane(); - content.setLayout(null); - - content.add(new DocumentPreviewPane("test", "ababababaabbababab")); - GUICoreUtils.centerWindow(jf); - jf.setSize(400, 400); - jf.setVisible(true); - } } diff --git a/designer/src/com/fr/design/widget/CellWidgetCardPane.java b/designer/src/com/fr/design/widget/CellWidgetCardPane.java index 3d135d34c..b3f5fef11 100644 --- a/designer/src/com/fr/design/widget/CellWidgetCardPane.java +++ b/designer/src/com/fr/design/widget/CellWidgetCardPane.java @@ -1,6 +1,7 @@ package com.fr.design.widget; import com.fr.design.data.DataCreatorUI; +import com.fr.design.designer.IntervalConstants; import com.fr.design.dialog.BasicPane; import com.fr.design.dialog.BasicScrollPane; import com.fr.design.foldablepane.UIExpandablePane; @@ -73,7 +74,7 @@ public class CellWidgetCardPane extends BasicPane { tabbedPane = new CardLayout(); center = new JPanel(tabbedPane); jPanel.add(center, BorderLayout.CENTER); - + jPanel.setBorder(BorderFactory.createEmptyBorder(0, IntervalConstants.INTERVAL_L6, 0, 0)); attriTabPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); eventTabPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); initPaneList(); @@ -91,7 +92,7 @@ public class CellWidgetCardPane extends BasicPane { } }; tabsHeaderIconPane.setNeedLeftRightOutLine(false); - jPanel.add(tabsHeaderIconPane, BorderLayout.NORTH); + this.add(tabsHeaderIconPane, BorderLayout.NORTH); widgetPropertyPane = new BasicWidgetPropertySettingPane(); diff --git a/designer/src/com/fr/design/widget/WidgetPane.java b/designer/src/com/fr/design/widget/WidgetPane.java index 61e79acb8..36f99491f 100644 --- a/designer/src/com/fr/design/widget/WidgetPane.java +++ b/designer/src/com/fr/design/widget/WidgetPane.java @@ -92,7 +92,9 @@ public class WidgetPane extends AbstractAttrNoScrollPane implements ItemListener AttributeChangeListener listener = new AttributeChangeListener() { @Override public void attributeChange() { - CellWidgetPropertyPane.getInstance().update(); + if(shouldFireSelectedEvent){ + CellWidgetPropertyPane.getInstance().update(); + } } }; diff --git a/designer/src/com/fr/design/widget/ui/ButtonDefinePane.java b/designer/src/com/fr/design/widget/ui/ButtonDefinePane.java index 59a5b62bb..e8ae05c31 100644 --- a/designer/src/com/fr/design/widget/ui/ButtonDefinePane.java +++ b/designer/src/com/fr/design/widget/ui/ButtonDefinePane.java @@ -28,6 +28,12 @@ public class ButtonDefinePane extends AbstractDataModify