Browse Source

属性保持private

master
zack 9 years ago
parent
commit
222efe686b
  1. 10
      designer_base/src/com/fr/design/data/datapane/TableDataSourceOP.java
  2. 9
      designer_base/src/com/fr/design/data/datapane/TableDataTree.java
  3. 26
      designer_base/src/com/fr/design/data/datapane/TableDataTreePane.java

10
designer_base/src/com/fr/design/data/datapane/TableDataSourceOP.java

@ -30,13 +30,21 @@ public class TableDataSourceOP implements UserObjectOP<TableDataWrapper> {
public static final int STORE_PRECEDURE_DATA = 2;
public static int dataMode = -1;
protected DesignModelAdapter<?, ?> tc;
private DesignModelAdapter<?, ?> tc;
public TableDataSourceOP(DesignModelAdapter<?, ?> tc) {
this.tc = tc;
}
public DesignModelAdapter<?, ?> getTc() {
return tc;
}
public void setTc(DesignModelAdapter<?, ?> tc) {
this.tc = tc;
}
/**
* 初始化数据集的list
*

9
designer_base/src/com/fr/design/data/datapane/TableDataTree.java

@ -32,7 +32,7 @@ public class TableDataTree extends UserObjectRefreshJTree<TableDataSourceOP> {
this.setEditable(false);
}
// CellRenderer
protected DefaultTreeCellRenderer tableDataTreeCellRenderer = new DefaultTreeCellRenderer() {
private DefaultTreeCellRenderer tableDataTreeCellRenderer = new DefaultTreeCellRenderer() {
private static final long serialVersionUID = 1L;
@Override
@ -81,6 +81,13 @@ public class TableDataTree extends UserObjectRefreshJTree<TableDataSourceOP> {
}
};
public DefaultTreeCellRenderer getTableDataTreeCellRenderer() {
return tableDataTreeCellRenderer;
}
public void setTableDataTreeCellRenderer(DefaultTreeCellRenderer tableDataTreeCellRenderer) {
this.tableDataTreeCellRenderer = tableDataTreeCellRenderer;
}
protected void refreshTreeNode(ExpandMutableTreeNode eTreeNode, String childName) {
if (interceptRefresh(eTreeNode)) {

26
designer_base/src/com/fr/design/data/datapane/TableDataTreePane.java

@ -77,8 +77,8 @@ public class TableDataTreePane extends DockingView implements ResponseDataSource
return singleton;
}
protected static TableDataTree dataTree;
protected TableDataSourceOP op;
private TableDataTree dataTree;
private TableDataSourceOP op;
private MenuDef addMenuDef;
private EditAction editAction;
@ -147,6 +147,26 @@ public class TableDataTreePane extends DockingView implements ResponseDataSource
checkButtonEnabled();
}
public void setDataTree(TableDataTree dataTree) {
this.dataTree = dataTree;
}
public TableDataSourceOP getOp() {
return op;
}
public void setOp(TableDataSourceOP op) {
this.op = op;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public MenuDef getAddMenuDef() {
return addMenuDef;
}
@ -275,7 +295,7 @@ public class TableDataTreePane extends DockingView implements ResponseDataSource
/**
* 刷新
*/
public static void refresh() {
public void refresh() {
dataTree.refresh();
}

Loading…
Cancel
Save