/* */ package NET.worlds.console; /* */ /* */ import java.util.Vector; /* */ /* */ /* */ /* */ /* */ /* */ public class AvatarDialogTest /* */ implements AvatarDialogCallback /* */ { /* 12 */ private static final String[] components = { "Color", "Weather", "Height", /* 13 */ "Shape" }; /* */ /* 15 */ private static final String[] colors = { "Red", "Orange", "Yellow", /* 16 */ "Green", "Blue", "Violet" }; /* */ /* 18 */ private static final String[] weather = { "Sunny", "Cloudy", "Raining", /* 19 */ "Snowing" }; /* */ /* 21 */ private static final String[] heights = { "Short", "Medium", "Tall" }; /* */ /* 23 */ private static final String[] shapes = { "Circle", "Rectangle", "Triangle" }; /* */ /* 25 */ private static final String[][] items = { colors, weather, heights, shapes }; /* */ /* 27 */ private static int[] settings = new int[components.length]; /* */ /* */ /* */ /* */ public Vector getComponents() /* */ { /* 33 */ return stringsToVector(components); /* */ } /* */ /* */ public Vector getChoices(int index) { /* 37 */ return stringsToVector(items[index]); /* */ } /* */ /* */ public int getCurrentSelection(int index) { /* 41 */ return settings[index]; /* */ } /* */ /* */ public void setCurrentSelection(int index, int choice) { /* 45 */ settings[index] = choice; /* */ } /* */ /* */ private static Vector stringsToVector(String[] strings) { /* 49 */ Vector v = new Vector(); /* 50 */ for (int i = 0; i < strings.length; i++) /* 51 */ v.addElement(strings[i]); /* 52 */ return v; /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\AvatarDialogTest.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */