All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.simulationconstructionset.gui.actions.configActions.SelectVarGroupAction Maven / Gradle / Ivy

There is a newer version: 0.25.3
Show newest version
package us.ihmc.simulationconstructionset.gui.actions.configActions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;

import us.ihmc.simulationconstructionset.gui.config.VarGroupSelector;

public class SelectVarGroupAction extends AbstractAction
{
   private static final long serialVersionUID = 7027661415555951268L;
   private String name;
   private VarGroupSelector varGroupSelector;

   public SelectVarGroupAction(VarGroupSelector selector, String name)
   {
      super(name);

      varGroupSelector = selector;
      this.name = name;

      // this.putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_E));
      putValue(Action.LONG_DESCRIPTION, "Long Description");
      putValue(Action.SHORT_DESCRIPTION, "Short Description");
   }

   @Override
   public void actionPerformed(ActionEvent e)
   {
      varGroupSelector.selectVarGroup(name);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy