Codota Logo
ActionRadioButton
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now