|
|
|
@ -285,20 +285,19 @@ public class TableDataTreePane extends BasicTableDataTreePane {
|
|
|
|
|
/** |
|
|
|
|
* 注册ExtraAction |
|
|
|
|
* |
|
|
|
|
* @param key 标识符 |
|
|
|
|
* @param extraAction TableDataTree工具栏的扩展接口Action |
|
|
|
|
*/ |
|
|
|
|
public static void registerExtraAction(String key, AbstractExtraAction extraAction) { |
|
|
|
|
extraActions.put(key, extraAction); |
|
|
|
|
public static void registerExtraAction(AbstractExtraAction extraAction) { |
|
|
|
|
extraActions.put(extraAction.getClass().getSimpleName(), extraAction); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 移除ExtraAction |
|
|
|
|
* |
|
|
|
|
* @param key 标识符 |
|
|
|
|
* @param extraAction TableDataTree工具栏的扩展接口Action |
|
|
|
|
*/ |
|
|
|
|
public static void removeExtraAction(String key) { |
|
|
|
|
extraActions.remove(key); |
|
|
|
|
public static void removeExtraAction(AbstractExtraAction extraAction) { |
|
|
|
|
extraActions.remove(extraAction.getClass().getSimpleName()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|