Browse Source

REPORT-2419

master
hzzz 7 years ago
parent
commit
200f4bff69
  1. 2
      designer_form/src/com/fr/design/designer/creator/XWParameterLayout.java
  2. 10
      designer_form/src/com/fr/design/mainframe/MobileParaWidgetTable.java
  3. 2
      designer_form/src/com/fr/design/mainframe/WidgetPropertyPane.java

2
designer_form/src/com/fr/design/designer/creator/XWParameterLayout.java

@ -46,7 +46,7 @@ public class XWParameterLayout extends XWAbsoluteLayout {
* @return 尺寸 * @return 尺寸
*/ */
public Dimension initEditorSize() { public Dimension initEditorSize() {
return new Dimension(WFitLayout.DEFAULT_WIDTH+1000, WBorderLayout.DEFAULT_SIZE+1000); return new Dimension(WFitLayout.DEFAULT_WIDTH, WBorderLayout.DEFAULT_SIZE);
} }
/** /**

10
designer_form/src/com/fr/design/mainframe/MobileParaWidgetTable.java

@ -36,6 +36,7 @@ import java.util.EventObject;
*/ */
class MobileParaWidgetTable extends JTable { class MobileParaWidgetTable extends JTable {
private final int WIDGET_NAME_COLUMN = 1;
private FormDesigner designer; private FormDesigner designer;
private String[][] cellData; private String[][] cellData;
private String[] headers = {Inter.getLocText("Form-Widget_Name")}; private String[] headers = {Inter.getLocText("Form-Widget_Name")};
@ -341,7 +342,7 @@ class MobileParaWidgetTable extends JTable {
} }
Object[] rowValue = cellData[row]; Object[] rowValue = cellData[row];
if (column > -1 && column < rowValue.length) { if (column > -1 && column < rowValue.length) {
return cellData[row][1]; return cellData[row][WIDGET_NAME_COLUMN];
} }
return null; return null;
} }
@ -362,10 +363,10 @@ class MobileParaWidgetTable extends JTable {
return; return;
} }
if (aValue == null) { if (aValue == null) {
cellData[row][1] = null; cellData[row][WIDGET_NAME_COLUMN] = null;
return; return;
} }
cellData[row][1] = aValue.toString(); cellData[row][WIDGET_NAME_COLUMN] = aValue.toString();
} }
/** /**
@ -376,10 +377,7 @@ class MobileParaWidgetTable extends JTable {
* @return 是否可编辑 * @return 是否可编辑
*/ */
public boolean isCellEditable(int row, int column) { public boolean isCellEditable(int row, int column) {
// if(column ==1){
return false; return false;
// }
// return true;
} }
} }

2
designer_form/src/com/fr/design/mainframe/WidgetPropertyPane.java

@ -354,7 +354,7 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetProper
int value = downPanel.getVerticalScrollBar().getValue(); int value = downPanel.getVerticalScrollBar().getValue();
if (hasSelectParaPane(getEditingFormDesigner())) { if (hasSelectParaPane(getEditingFormDesigner())) {
cardLayout.show(centerPane, PARA); cardLayout.show(centerPane, PARA);
// mobileParaWidgetTable.refreshData(); mobileParaWidgetTable.refreshData();
} else { } else {
cardLayout.show(centerPane, BODY); cardLayout.show(centerPane, BODY);
mobileWidgetTable.refreshData(); mobileWidgetTable.refreshData();

Loading…
Cancel
Save