congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Collectors (java.util.stream)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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