Lines Matching defs:keys
348 * Creates a {@code InputMapUIResource} from <code>keys</code>. This is
350 * invoking {@code loadKeyBindings(map, keys)}, and returning the
353 * @param keys alternating pairs of {@code keystroke-action key}
360 public static InputMap makeInputMap(Object[] keys) {
362 loadKeyBindings(retMap, keys);
368 * <code>keys</code>. This is a convenience method for creating a
370 * loadKeyBindings(map, keys)}, and returning the {@code
375 * @param keys alternating pairs of {@code keystroke-action key}
386 Object[] keys) {
388 loadKeyBindings(retMap, keys);
412 * Supplying a {@code null} list of bindings ({@code keys}) does not
421 * @param keys bindings to add to {@code retMap}
422 * @throws NullPointerException if {@code keys} is
431 public static void loadKeyBindings(InputMap retMap, Object[] keys) {
432 if (keys != null) {
433 for (int counter = 0, maxCounter = keys.length;
435 Object keyStrokeO = keys[counter++];
439 retMap.put(ks, keys[counter]);