nu.zoom.ldap.eon.event
Class ActionUtils

java.lang.Object
  extended by nu.zoom.ldap.eon.event.ActionUtils

public class ActionUtils
extends Object

Version:
$Revision: 1.2 $
Author:
$Author: johan $

Method Summary
static void setActionValues(Action action, ActionValues values)
          Set the action values (icon, tooltip et c.).
static void setActionValues(Action action, ActionValues values, JComponent component)
          Set the action values (icon, tooltip etc) and bind accelerator key to the WHEN_FOCUSED input map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setActionValues

public static void setActionValues(Action action,
                                   ActionValues values)
Set the action values (icon, tooltip et c.).

Parameters:
action - The action to decorate. Must not be null.
values - The values to use. Must not be null.
See Also:
setActionValues(Action, ActionValues, JComponent)

setActionValues

public static void setActionValues(Action action,
                                   ActionValues values,
                                   JComponent component)
Set the action values (icon, tooltip etc) and bind accelerator key to the WHEN_FOCUSED input map.

Parameters:
action - The action to decorate. Must not be null.
values - The values to use. Must not be null.
component - The component that we are to bind the accelrator keys to. Can be null to not bind the accelerator keys to the input map.


Copyright © 2011. All Rights Reserved.