/** * Returns an action map to use by a text area.<p> * * This method is not named <code>getActionMap()</code> because there is * a package-private method in <code>BasicTextAreaUI</code> with that name. * Thus, creating a new method with that name causes certain compilers to * issue warnings that you are not actually overriding the original method * (since it is package-private). * * @return The action map. * @see #createRTextAreaActionMap() */ private ActionMap getRTextAreaActionMap() { // Get the UIManager-cached action map; if this is the first // RTextArea created, create the action map and cache it. ActionMap map = (ActionMap)UIManager.get(getActionMapName()); if (map==null) { map = createRTextAreaActionMap(); UIManager.put(getActionMapName(), map); } ActionMap componentMap = new ActionMapUIResource(); componentMap.put("requestFocus", new FocusAction()); if (map != null) { componentMap.setParent(map); } return componentMap; }
/** * Returns an action map to use by a text area.<p> * * This method is not named <code>getActionMap()</code> because there is * a package-private method in <code>BasicTextAreaUI</code> with that name. * Thus, creating a new method with that name causes certain compilers to * issue warnings that you are not actually overriding the original method * (since it is package-private). * * @return The action map. * @see #createRTextAreaActionMap() */ private ActionMap getRTextAreaActionMap() { // Get the UIManager-cached action map; if this is the first // RTextArea created, create the action map and cache it. ActionMap map = (ActionMap)UIManager.get(getActionMapName()); if (map==null) { map = createRTextAreaActionMap(); UIManager.put(getActionMapName(), map); } ActionMap componentMap = new ActionMapUIResource(); componentMap.put("requestFocus", new FocusAction()); if (map != null) { componentMap.setParent(map); } return componentMap; }
/** * Returns an action map to use by a text area.<p> * * This method is not named <code>getActionMap()</code> because there is * a package-private method in <code>BasicTextAreaUI</code> with that name. * Thus, creating a new method with that name causes certain compilers to * issue warnings that you are not actually overriding the original method * (since it is package-private). * * @return The action map. * @see #createRTextAreaActionMap() */ private ActionMap getRTextAreaActionMap() { // Get the UIManager-cached action map; if this is the first // RTextArea created, create the action map and cache it. ActionMap map = (ActionMap)UIManager.get(getActionMapName()); if (map==null) { map = createRTextAreaActionMap(); UIManager.put(getActionMapName(), map); } ActionMap componentMap = new ActionMapUIResource(); componentMap.put("requestFocus", new FocusAction()); if (map != null) componentMap.setParent(map); return componentMap; }
/** * Returns an action map to use by a text area.<p> * * This method is not named <code>getActionMap()</code> because there is * a package-private method in <code>BasicTextAreaUI</code> with that name. * Thus, creating a new method with that name causes certain compilers to * issue warnings that you are not actually overriding the original method * (since it is package-private). * * @return The action map. * @see #createRTextAreaActionMap() */ private ActionMap getRTextAreaActionMap() { // Get the UIManager-cached action map; if this is the first // RTextArea created, create the action map and cache it. ActionMap map = (ActionMap)UIManager.get(getActionMapName()); if (map==null) { map = createRTextAreaActionMap(); UIManager.put(getActionMapName(), map); } ActionMap componentMap = new ActionMapUIResource(); componentMap.put("requestFocus", new FocusAction()); if (map != null) componentMap.setParent(map); return componentMap; }