Browse Source

REPORT-2419

master
hzzz 8 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 尺寸
*/
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 {
private final int WIDGET_NAME_COLUMN = 1;
private FormDesigner designer;
private String[][] cellData;
private String[] headers = {Inter.getLocText("Form-Widget_Name")};
@ -341,7 +342,7 @@ class MobileParaWidgetTable extends JTable {
}
Object[] rowValue = cellData[row];
if (column > -1 && column < rowValue.length) {
return cellData[row][1];
return cellData[row][WIDGET_NAME_COLUMN];
}
return null;
}
@ -362,10 +363,10 @@ class MobileParaWidgetTable extends JTable {
return;
}
if (aValue == null) {
cellData[row][1] = null;
cellData[row][WIDGET_NAME_COLUMN] = null;
return;
}
cellData[row][1] = aValue.toString();
cellData[row][WIDGET_NAME_COLUMN] = aValue.toString();
}
/**
@ -376,10 +377,7 @@ class MobileParaWidgetTable extends JTable {
* @return 是否可编辑
*/
public boolean isCellEditable(int row, int column) {
// if(column ==1){
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();
if (hasSelectParaPane(getEditingFormDesigner())) {
cardLayout.show(centerPane, PARA);
// mobileParaWidgetTable.refreshData();
mobileParaWidgetTable.refreshData();
} else {
cardLayout.show(centerPane, BODY);
mobileWidgetTable.refreshData();

Loading…
Cancel
Save