コード例 #1
0
 /** @return List for all Actions */
 public static List<GeoPlatformActionCreator> getActionsCreator() {
   return new ArrayList<GeoPlatformActionCreator>(INSTANCE.getRegistry().values());
 }
コード例 #2
0
  /**
   * Return the Toolbar Action
   *
   * @param key key with the action is registered
   * @param tree treePanel which will contains the toolAction
   * @return null or the toolAction registered
   */
  public static GeoPlatformToolbarAction get(String key, TreePanel tree) {
    ToolbarTreeActionCreator toolActionCreator =
        (ToolbarTreeActionCreator) INSTANCE.getRegistry().get(key);

    return toolActionCreator == null ? null : toolActionCreator.createActionTool(tree);
  }
コード例 #3
0
  /**
   * @param key
   * @return null or the GeoPlatformToolbarAction
   */
  public static GeoPlatformToolbarAction get(String key) {
    ToolbarTreeActionCreator toolActionCreator =
        (ToolbarTreeActionCreator) INSTANCE.getRegistry().get(key);

    return toolActionCreator == null ? null : toolActionCreator.getAction();
  }
コード例 #4
0
 /**
  * @param key
  * @param toolActionCreator
  */
 public static void put(String key, ToolbarTreeActionCreator toolActionCreator) {
   if (key != null && toolActionCreator != null) {
     INSTANCE.getRegistry().put(key, toolActionCreator);
   }
 }