Browse Source

REPORT-138249 cpt支持数据集替换 代码规范

release/11.0
Destiny.Lin 3 weeks ago
parent
commit
3d49bf6c11
  1. 11
      designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java
  2. 2
      designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreeToolBarActionProvider.java

11
designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java

@ -148,7 +148,7 @@ public class TableDataTreePane extends BasicTableDataTreePane {
private EsdOffAction esdOffAction; private EsdOffAction esdOffAction;
private SwitchAction switchAction; private SwitchAction switchAction;
private PreviewTableDataAction previewTableDataAction; private PreviewTableDataAction previewTableDataAction;
private Set<ExtraAction> extraActions = new HashSet<>(); private Set<AbstractExtraAction> extraActions = new HashSet<>();
private JPanel serverDatasetAuthTipJPanel = new JPanel(); private JPanel serverDatasetAuthTipJPanel = new JPanel();
private TableDataSearchRemindPane remindPane; private TableDataSearchRemindPane remindPane;
@ -727,7 +727,7 @@ public class TableDataTreePane extends BasicTableDataTreePane {
} }
private void checkExtraActionEnable(int dataMode, int selectioncount, boolean hasSelectedIndependentColumns) { private void checkExtraActionEnable(int dataMode, int selectioncount, boolean hasSelectedIndependentColumns) {
for (ExtraAction action : extraActions) { for (AbstractExtraAction action : extraActions) {
action.setEnabled(action.checkEnable(dataMode, selectioncount, hasSelectedIndependentColumns)); action.setEnabled(action.checkEnable(dataMode, selectioncount, hasSelectedIndependentColumns));
} }
} }
@ -1239,9 +1239,12 @@ public class TableDataTreePane extends BasicTableDataTreePane {
} }
} }
public abstract class ExtraAction extends UpdateAction { /**
* TableDataTree工具栏的扩展接口Action
*/
public abstract class AbstractExtraAction extends UpdateAction {
public ExtraAction() { public AbstractExtraAction() {
init(); init();
} }

2
designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreeToolBarActionProvider.java

@ -21,5 +21,5 @@ public interface TableDataTreeToolBarActionProvider extends Mutable {
* *
* @return 创建出来的Action对象 * @return 创建出来的Action对象
*/ */
TableDataTreePane.ExtraAction createAction(); TableDataTreePane.AbstractExtraAction createAction();
} }

Loading…
Cancel
Save