AlphaMenuItem.java :  » Game » nullpomino » mu » nu » nullpo » gui » menu » Java Open Source

Java Open Source » Game » nullpomino 
nullpomino » mu » nu » nullpo » gui » menu » AlphaMenuItem.java
package mu.nu.nullpo.gui.menu;

import java.util.Arrays;
import java.util.Vector;

public class AlphaMenuItem extends NumericMenuItem {
  @SuppressWarnings("unused")
  private int index;
  @SuppressWarnings("unused")
  private Vector<String> choiceList;

  public AlphaMenuItem(String name, int color,Vector<String> choiceList){
    super(name,color,0,0,choiceList.size(),-1, ARITHSTYLE_MODULAR);
    this.choiceList=choiceList;
    state=0;
  }

  public AlphaMenuItem(String name, int color, String[] choiceList){
    this(name,color,new Vector<String>(Arrays.asList(choiceList)));
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.