From 55a8361b01b41febfbcee8d7b8b1c0b7dded9a21 Mon Sep 17 00:00:00 2001 From: plough Date: Mon, 7 Aug 2017 14:37:02 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-3163=20=E5=90=88=E4=BD=9C=E5=BC=80?= =?UTF-8?q?=E5=8F=919.0=E8=AE=BE=E8=AE=A1=E5=99=A8=3D>=E8=81=9A=E5=90=88?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=3D=E3=80=8B=E4=BB=A3=E7=A0=81=E8=A7=84?= =?UTF-8?q?=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/poly/PolyBlockProperTable.java | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/designer/src/com/fr/poly/PolyBlockProperTable.java b/designer/src/com/fr/poly/PolyBlockProperTable.java index f499973e67..647427c64a 100644 --- a/designer/src/com/fr/poly/PolyBlockProperTable.java +++ b/designer/src/com/fr/poly/PolyBlockProperTable.java @@ -20,9 +20,10 @@ public class PolyBlockProperTable extends JPanel { private UISpinner width; private UISpinner height; private BasicPropertyPane blockPropertyPane; - private boolean isPopulating = false; + private static final int MAX_SPINNER_VALUE = 10000; + public PolyBlockProperTable() { initPropertyPane(); initListener(this); @@ -35,10 +36,10 @@ public class PolyBlockProperTable extends JPanel { UIExpandablePane basicPane = new UIExpandablePane(Inter.getLocText("FR-Designer_Basic"), 280, 24, blockPropertyPane); this.add(basicPane, BorderLayout.NORTH); - x = new UISpinner(0, 1200, 1); - y = new UISpinner(0, 1200, 1); - width = new UISpinner(0, 1200, 1); - height = new UISpinner(0, 1200, 1); + x = new UISpinner(0, MAX_SPINNER_VALUE, 1); + y = new UISpinner(0, MAX_SPINNER_VALUE, 1); + width = new UISpinner(0, MAX_SPINNER_VALUE, 1); + height = new UISpinner(0, MAX_SPINNER_VALUE, 1); UIExpandablePane boundsPane = WidgetBoundsPaneFactory.createAbsoluteBoundsPane(x, y, width, height); this.add(boundsPane, BorderLayout.CENTER); } @@ -50,17 +51,6 @@ public class PolyBlockProperTable extends JPanel { if (tmpComp instanceof Container) { initListener((Container) tmpComp); } -// if (tmpComp instanceof GlobalNameObserver) { -// ((GlobalNameObserver) tmpComp).registerNameListener(new GlobalNameListener() { -// public void setGlobalName(String name) { -// globalName = name; -// } -// -// public String getGlobalName() { -// return globalName; -// } -// }); -// } if (tmpComp instanceof UIObserver) { ((UIObserver) tmpComp).registerChangeListener(new UIObserverListener() { @Override @@ -79,22 +69,16 @@ public class PolyBlockProperTable extends JPanel { * */ public void initPropertyGroups(Object source) { -// groups = new ArrayList(); if (source instanceof TemplateBlock) { TemplateBlock block = (TemplateBlock) source; -// PolyNameGroup namegroup = new PolyNameGroup(block); blockPropertyPane.getWidgetNameField().setText(block.getBlockName()); -// groups.add(new PropertyGroup(namegroup)); final PolyBoundsGroup boundsgroup = new PolyBoundsGroup(block, designer.getTarget()); x.setValue((int)boundsgroup.getValue(0, 1)); y.setValue((int)boundsgroup.getValue(1, 1)); width.setValue((int)boundsgroup.getValue(2, 1)); height.setValue((int)boundsgroup.getValue(3, 1)); -// groups.add(new PropertyGroup(boundsgroup)); } -// TableModel model = new BeanTableModel(); -// setModel(model); this.repaint(); }