/*******************************************************************************
 *                      Copyright (c) 1999 Justin Couch
 *                               Java Source
 *
 * Raw J3D Tutorial
 *
 * Version History
 * Date        Version  Programmer
 * ----------  -------  ------------------------------------------
 * 01/08/1998  1.0.0    Justin Couch
 *
 ******************************************************************************/

// no package

// Standard imports
import java.awt.MenuItem;

// Application specific imports
// none

/**
 * An action that holds an integer for its action ID.
 * <P>
 * Basic view consists of the standard placement.
 *
 * @author Justin Couch
 * @version Who Cares!
 */
public class IntAction extends MenuItem
{
  private int value = -1;

  /**
   * Create a new menu item that contains the label and specific ID.
   *
   * @param label The descriptive label to appear on screen
   * @param val The ID value to keep
   */
  public IntAction(String label, int val)
  {
    super(label);

    value = val;
  }

  /**
   * Get the ID value this menu item represents
   *
   * @return The ID value
   */
  public int getValue()
  {
    return value;
  }
}
