Tabnine Logo
DowngradeActionMap
Code IndexAdd Tabnine to your IDE (free)

How to use
DowngradeActionMap
in
org.jfree.ui.action

Best Java code snippets using org.jfree.ui.action.DowngradeActionMap (Showing top 9 results out of 315)

origin: org.jfree/jcommon

/**
 * Returns an array of the keys defined in this <code>ActionMap</code> and
 * its parent. This method differs from <code>keys()</code> in that
 * this method includes the keys defined in the parent.
 *
 * @return all keys of this map and all parents.
 */
public Object[] allKeys() {
  if (this.parent == null) {
    return keys();
  }
  final Object[] parentKeys = this.parent.allKeys();
  final Object[] key = keys();
  final Object[] retval = new Object[parentKeys.length + key.length];
  System.arraycopy(key, 0, retval, 0, key.length);
  System.arraycopy(retval, 0, retval, key.length, retval.length);
  return retval;
}
origin: jfree/jcommon

/**
 * Returns the binding for <code>key</code>, messaging the
 * parent <code>ActionMap</code> if the binding is not locally defined.
 *
 * @param key the key to be queried.
 * @return the action for this key, or null if there is no such action.
 */
public Action get(final Object key) {
  final Action retval = (Action) this.actionMap.get(key);
  if (retval != null) {
    return retval;
  }
  if (this.parent != null) {
    return this.parent.get(key);
  }
  return null;
}
origin: jfree/jcommon

/**
 * Adds a binding for <code>key</code> to <code>action</code>.
 * If <code>action</code> is null, this removes the current binding
 * for <code>key</code>.
 * <p>In most instances, <code>key</code> will be
 * <code>action.getValue(NAME)</code>.
 *
 * @param key the key for the action.
 * @param action the action to be added.
 */
public void put(final Object key, final Action action) {
  if (action == null) {
    remove(key);
  }
  else {
    if (this.actionMap.containsKey(key)) {
      remove(key);
    }
    this.actionMap.put(key, action);
    this.actionList.add (key);
  }
}
origin: org.jfree/jcommon

/**
 * Adds a binding for <code>key</code> to <code>action</code>.
 * If <code>action</code> is null, this removes the current binding
 * for <code>key</code>.
 * <p>In most instances, <code>key</code> will be
 * <code>action.getValue(NAME)</code>.
 *
 * @param key the key for the action.
 * @param action the action to be added.
 */
public void put(final Object key, final Action action) {
  if (action == null) {
    remove(key);
  }
  else {
    if (this.actionMap.containsKey(key)) {
      remove(key);
    }
    this.actionMap.put(key, action);
    this.actionList.add (key);
  }
}
origin: jfree/jcommon

/**
 * Returns an array of the keys defined in this <code>ActionMap</code> and
 * its parent. This method differs from <code>keys()</code> in that
 * this method includes the keys defined in the parent.
 *
 * @return all keys of this map and all parents.
 */
public Object[] allKeys() {
  if (this.parent == null) {
    return keys();
  }
  final Object[] parentKeys = this.parent.allKeys();
  final Object[] key = keys();
  final Object[] retval = new Object[parentKeys.length + key.length];
  System.arraycopy(key, 0, retval, 0, key.length);
  System.arraycopy(retval, 0, retval, key.length, retval.length);
  return retval;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the binding for <code>key</code>, messaging the
 * parent <code>ActionMap</code> if the binding is not locally defined.
 *
 * @param key the key to be queried.
 * @return the action for this key, or null if there is no such action.
 */
public Action get(final Object key) {
  final Action retval = (Action) this.actionMap.get(key);
  if (retval != null) {
    return retval;
  }
  if (this.parent != null) {
    return this.parent.get(key);
  }
  return null;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Adds a binding for <code>key</code> to <code>action</code>.
 * If <code>action</code> is null, this removes the current binding
 * for <code>key</code>.
 * <p>In most instances, <code>key</code> will be
 * <code>action.getValue(NAME)</code>.
 *
 * @param key the key for the action.
 * @param action the action to be added.
 */
public void put(final Object key, final Action action) {
  if (action == null) {
    remove(key);
  }
  else {
    if (this.actionMap.containsKey(key)) {
      remove(key);
    }
    this.actionMap.put(key, action);
    this.actionList.add (key);
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns an array of the keys defined in this <code>ActionMap</code> and
 * its parent. This method differs from <code>keys()</code> in that
 * this method includes the keys defined in the parent.
 *
 * @return all keys of this map and all parents.
 */
public Object[] allKeys() {
  if (this.parent == null) {
    return keys();
  }
  final Object[] parentKeys = this.parent.allKeys();
  final Object[] key = keys();
  final Object[] retval = new Object[parentKeys.length + key.length];
  System.arraycopy(key, 0, retval, 0, key.length);
  System.arraycopy(retval, 0, retval, key.length, retval.length);
  return retval;
}
origin: org.jfree/jcommon

/**
 * Returns the binding for <code>key</code>, messaging the
 * parent <code>ActionMap</code> if the binding is not locally defined.
 *
 * @param key the key to be queried.
 * @return the action for this key, or null if there is no such action.
 */
public Action get(final Object key) {
  final Action retval = (Action) this.actionMap.get(key);
  if (retval != null) {
    return retval;
  }
  if (this.parent != null) {
    return this.parent.get(key);
  }
  return null;
}
org.jfree.ui.actionDowngradeActionMap

Javadoc

An actionmap, which is JDK 1.2.2 compatible.

This implementation does not implement the ActionMap interface of JDK 1.3 or higher to maintain the compatibility with JDK 1.2 which does not know this interface.

The usage is still the same.

Most used methods

  • allKeys
    Returns an array of the keys defined in this ActionMap and its parent. This method differs from keys
  • get
    Returns the binding for key, messaging the parent ActionMap if the binding is not locally defined.
  • keys
    Returns the Action names that are bound in this ActionMap.
  • remove
    Removes the binding for key from this ActionMap.

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JList (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now