|
|
|
@ -11,6 +11,7 @@ import com.fr.design.mainframe.vcs.VcsOperatorWorker;
|
|
|
|
|
import com.fr.design.mainframe.vcs.TableEntity; |
|
|
|
|
import com.fr.design.mainframe.vcs.TableValueOperator; |
|
|
|
|
import com.fr.design.mainframe.vcs.VcsTableEntity; |
|
|
|
|
import com.fr.design.mainframe.vcs.VcsTableOperatorListener; |
|
|
|
|
import com.fr.report.entity.VcsEntity; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
@ -25,7 +26,9 @@ import java.awt.event.ActionListener;
|
|
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.HashSet; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Set; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
import static com.fr.design.i18n.Toolkit.i18nText; |
|
|
|
@ -44,6 +47,8 @@ public class RecyclePane extends AbstractSupportSelectTablePane<VcsTableEntity>
|
|
|
|
|
public static final Icon ICON_DELETE = IconUtils.readSVGIcon("/com/fr/design/standard/vcslist/vcs_recycle_delete", IconUtils.ICON_TYPE_NORMAL); |
|
|
|
|
public static final Icon ICON_DELETE_DISABLE = IconUtils.readSVGIcon("/com/fr/design/standard/vcslist/vcs_recycle_delete", IconUtils.ICON_TYPE_DISABLED); |
|
|
|
|
|
|
|
|
|
private Set<VcsTableOperatorListener> listenerSet = new HashSet<>(); |
|
|
|
|
|
|
|
|
|
protected UITextField searchTextField; |
|
|
|
|
|
|
|
|
|
protected UILabel deleteLabel; |
|
|
|
@ -214,6 +219,7 @@ public class RecyclePane extends AbstractSupportSelectTablePane<VcsTableEntity>
|
|
|
|
|
model.setList(tableEntities); |
|
|
|
|
model.fireTableDataChanged(); |
|
|
|
|
listener.doAfterChooseYes(selectList); |
|
|
|
|
fireVcsListener(model.getList()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -274,6 +280,25 @@ public class RecyclePane extends AbstractSupportSelectTablePane<VcsTableEntity>
|
|
|
|
|
this.parentDialog = parentDialog; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加版本管理表格操作事件 |
|
|
|
|
* |
|
|
|
|
* @param listener 版本管理表格操作事件 |
|
|
|
|
*/ |
|
|
|
|
public void addVcsListener(VcsTableOperatorListener listener) { |
|
|
|
|
listenerSet.add(listener); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 触发版本管理表格操作事件 |
|
|
|
|
*/ |
|
|
|
|
public void fireVcsListener(List<VcsTableEntity> tableEntities) { |
|
|
|
|
for (VcsTableOperatorListener listener : listenerSet) { |
|
|
|
|
listener.doOperator(tableEntities); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 删除范围 |
|
|
|
|
* |
|
|
|
|