< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/LazyActionMap.java
Print this page
*** 28,53 ****
import javax.swing.*;
import javax.swing.plaf.*;
/**
* An ActionMap that populates its contents as necessary. The
! * contents are populated by invoking the <code>loadActionMap</code>
* method on the passed in Object.
*
* @author Scott Violet
*/
@SuppressWarnings("serial") // Same-version serialization only
class LazyActionMap extends ActionMapUIResource {
/**
! * Object to invoke <code>loadActionMap</code> on. This may be
* a Class object.
*/
private transient Object _loader;
/**
* Installs an ActionMap that will be populated by invoking the
! * <code>loadActionMap</code> method on the specified Class
* when necessary.
* <p>
* This should be used if the ActionMap can be shared.
*
* @param c JComponent to install the ActionMap on.
--- 28,53 ----
import javax.swing.*;
import javax.swing.plaf.*;
/**
* An ActionMap that populates its contents as necessary. The
! * contents are populated by invoking the {@code loadActionMap}
* method on the passed in Object.
*
* @author Scott Violet
*/
@SuppressWarnings("serial") // Same-version serialization only
class LazyActionMap extends ActionMapUIResource {
/**
! * Object to invoke {@code loadActionMap} on. This may be
* a Class object.
*/
private transient Object _loader;
/**
* Installs an ActionMap that will be populated by invoking the
! * {@code loadActionMap} method on the specified Class
* when necessary.
* <p>
* This should be used if the ActionMap can be shared.
*
* @param c JComponent to install the ActionMap on.
*** 66,76 ****
SwingUtilities.replaceUIActionMap(c, map);
}
/**
* Returns an ActionMap that will be populated by invoking the
! * <code>loadActionMap</code> method on the specified Class
* when necessary.
* <p>
* This should be used if the ActionMap can be shared.
*
* @param c JComponent to install the ActionMap on.
--- 66,76 ----
SwingUtilities.replaceUIActionMap(c, map);
}
/**
* Returns an ActionMap that will be populated by invoking the
! * {@code loadActionMap} method on the specified Class
* when necessary.
* <p>
* This should be used if the ActionMap can be shared.
*
* @param c JComponent to install the ActionMap on.
< prev index next >