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

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

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

origin: jfree/jcommon

/**
 * Nreates an ActionButton and assigns the given action with the button.
 *
 * @param action  the action.
 */
public ActionRadioButton(final Action action)
{
 setAction(action);
}
origin: jfree/jcommon

final Action oldAction = getAction();
if (oldAction != null)
 removeActionListener(oldAction);
 oldAction.removePropertyChangeListener(getPropertyChangeHandler());
  unregisterKeyboardAction(k);
if (this.action != null)
 addActionListener(newAction);
 newAction.addPropertyChangeListener(getPropertyChangeHandler());
 setText((String) (newAction.getValue(Action.NAME)));
 setToolTipText((String) (newAction.getValue(Action.SHORT_DESCRIPTION)));
 setIcon((Icon) newAction.getValue(Action.SMALL_ICON));
 setEnabled(this.action.isEnabled());
   setMnemonic(c.charValue());
   setMnemonic(c.intValue());
  registerKeyboardAction(newAction, k, WHEN_IN_FOCUSED_WINDOW);
origin: jfree/jcommon

 setEnabled(getAction().isEnabled());
 setIcon((Icon) getAction().getValue(Action.SMALL_ICON));
 setText((String) getAction().getValue
   (Action.NAME));
 ActionRadioButton.this.setToolTipText((String)
   getAction().getValue(Action.SHORT_DESCRIPTION));
final Action ac = getAction();
if (event.getPropertyName().equals(ActionDowngrade.ACCELERATOR_KEY))
 if (oldVal != null)
  unregisterKeyboardAction
    (oldVal);
  registerKeyboardAction(ac, k, WHEN_IN_FOCUSED_WINDOW);
   setMnemonic(c.charValue());
   setMnemonic(c.intValue());
origin: org.jfree/jcommon

/**
 * Enables and disables this button and if an action is assigned to this button the
 * propertychange is forwarded to the assigned action.
 *
 * @param b the new enable-state of this button
 */
public void setEnabled(final boolean b)
{
 super.setEnabled(b);
 if (getAction() != null)
 {
  getAction().setEnabled(b);
 }
}
origin: org.jfree/jcommon

final Action oldAction = getAction();
if (oldAction != null)
 removeActionListener(oldAction);
 oldAction.removePropertyChangeListener(getPropertyChangeHandler());
  unregisterKeyboardAction(k);
if (this.action != null)
 addActionListener(newAction);
 newAction.addPropertyChangeListener(getPropertyChangeHandler());
 setText((String) (newAction.getValue(Action.NAME)));
 setToolTipText((String) (newAction.getValue(Action.SHORT_DESCRIPTION)));
 setIcon((Icon) newAction.getValue(Action.SMALL_ICON));
 setEnabled(this.action.isEnabled());
   setMnemonic(c.charValue());
   setMnemonic(c.intValue());
  registerKeyboardAction(newAction, k, WHEN_IN_FOCUSED_WINDOW);
origin: org.jfree/jcommon

 setEnabled(getAction().isEnabled());
 setIcon((Icon) getAction().getValue(Action.SMALL_ICON));
 setText((String) getAction().getValue
   (Action.NAME));
 ActionRadioButton.this.setToolTipText((String)
   getAction().getValue(Action.SHORT_DESCRIPTION));
final Action ac = getAction();
if (event.getPropertyName().equals(ActionDowngrade.ACCELERATOR_KEY))
 if (oldVal != null)
  unregisterKeyboardAction
    (oldVal);
  registerKeyboardAction(ac, k, WHEN_IN_FOCUSED_WINDOW);
   setMnemonic(c.charValue());
   setMnemonic(c.intValue());
origin: jfree/jcommon

/**
 * Enables and disables this button and if an action is assigned to this button the
 * propertychange is forwarded to the assigned action.
 *
 * @param b the new enable-state of this button
 */
public void setEnabled(final boolean b)
{
 super.setEnabled(b);
 if (getAction() != null)
 {
  getAction().setEnabled(b);
 }
}
origin: org.jfree/com.springsource.org.jfree

final Action oldAction = getAction();
if (oldAction != null)
 removeActionListener(oldAction);
 oldAction.removePropertyChangeListener(getPropertyChangeHandler());
  unregisterKeyboardAction(k);
if (this.action != null)
 addActionListener(newAction);
 newAction.addPropertyChangeListener(getPropertyChangeHandler());
 setText((String) (newAction.getValue(Action.NAME)));
 setToolTipText((String) (newAction.getValue(Action.SHORT_DESCRIPTION)));
 setIcon((Icon) newAction.getValue(Action.SMALL_ICON));
 setEnabled(this.action.isEnabled());
   setMnemonic(c.charValue());
   setMnemonic(c.intValue());
  registerKeyboardAction(newAction, k, WHEN_IN_FOCUSED_WINDOW);
origin: org.jfree/com.springsource.org.jfree

 setEnabled(getAction().isEnabled());
 setIcon((Icon) getAction().getValue(Action.SMALL_ICON));
 setText((String) getAction().getValue
   (Action.NAME));
 ActionRadioButton.this.setToolTipText((String)
   getAction().getValue(Action.SHORT_DESCRIPTION));
final Action ac = getAction();
if (event.getPropertyName().equals(ActionDowngrade.ACCELERATOR_KEY))
 if (oldVal != null)
  unregisterKeyboardAction
    (oldVal);
  registerKeyboardAction(ac, k, WHEN_IN_FOCUSED_WINDOW);
   setMnemonic(c.charValue());
   setMnemonic(c.intValue());
origin: org.jfree/com.springsource.org.jfree

/**
 * Nreates an ActionButton and assigns the given action with the button.
 *
 * @param action  the action.
 */
public ActionRadioButton(final Action action)
{
 setAction(action);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Enables and disables this button and if an action is assigned to this button the
 * propertychange is forwarded to the assigned action.
 *
 * @param b the new enable-state of this button
 */
public void setEnabled(final boolean b)
{
 super.setEnabled(b);
 if (getAction() != null)
 {
  getAction().setEnabled(b);
 }
}
origin: org.jfree/jcommon

/**
 * Nreates an ActionButton and assigns the given action with the button.
 *
 * @param action  the action.
 */
public ActionRadioButton(final Action action)
{
 setAction(action);
}
org.jfree.ui.actionActionRadioButton

Javadoc

The ActionRadioButton is used to connect an Action and its properties to a JRadioButton. This functionality is already implemented in JDK 1.3 but needed for JDK 1.2.2 compatibility.

Most used methods

  • addActionListener
  • getAction
    Returns the assigned action or null if no action has been assigned.
  • getPropertyChangeHandler
    Returns and initializes the PropertyChangehandler for this ActionButton. The PropertyChangeHandler m
  • registerKeyboardAction
  • removeActionListener
  • setAction
    Assigns the given action to this button. The properties of the action will be assigned to the button
  • setEnabled
    Enables and disables this button and if an action is assigned to this button the propertychange is f
  • setIcon
  • setMnemonic
  • setText
  • setToolTipText
  • unregisterKeyboardAction
  • setToolTipText,
  • unregisterKeyboardAction

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
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