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