/** Returns the selected item in the next popup menu. */ public String getNextChoice() { if (choice==null) return ""; Choice thisChoice = (Choice)(choice.elementAt(choiceIndex)); String item = thisChoice.getSelectedItem(); if (macro) { String label = (String)labels.get((Object)thisChoice); item = Macro.getValue(macroOptions, label, item); if (item!=null && item.startsWith("&")) // value is macro variable item = getChoiceVariable(item); } if (recorderOn) recordOption(thisChoice, item); choiceIndex++; return item; }
/** Returns the selected item in the next popup menu. */ public String getNextChoice() { if (choice==null) return ""; Choice thisChoice = (Choice)(choice.elementAt(choiceIndex)); String item = thisChoice.getSelectedItem(); if (macro) { String label = (String)labels.get((Object)thisChoice); item = Macro.getValue(macroOptions, label, item); if (item!=null && item.startsWith("&")) // value is macro variable item = getChoiceVariable(item); } if (recorderOn) recordOption(thisChoice, item); choiceIndex++; return item; }
/** Returns the selected item in the next radio button group. */ public String getNextRadioButton() { if (radioButtonGroups==null) return null; CheckboxGroup cg = (CheckboxGroup)(radioButtonGroups.elementAt(radioButtonIndex)); radioButtonIndex++; Checkbox checkbox = cg.getSelectedCheckbox(); String item = "null"; if (checkbox!=null) item = checkbox.getLabel(); if (macro) { String label = (String)labels.get((Object)cg); item = Macro.getValue(macroOptions, label, item); } if (recorderOn) recordOption(cg, item); return item; }
/** Returns the selected item in the next radio button group. */ public String getNextRadioButton() { if (radioButtonGroups==null) return null; CheckboxGroup cg = (CheckboxGroup)(radioButtonGroups.elementAt(radioButtonIndex)); radioButtonIndex++; Checkbox checkbox = cg.getSelectedCheckbox(); String item = "null"; if (checkbox!=null) item = checkbox.getLabel(); if (macro) { String label = (String)labels.get((Object)cg); item = Macro.getValue(macroOptions, label, item); } if (recorderOn) recordOption(cg, item); return item; }
s = Recorder.fixString(s); if (!smartRecording || !s.equals((String)defaultStrings.elementAt(sfIndex))) recordOption(tf, s); else if (Recorder.getCommandOptions()==null) Recorder.recordOption(" ");
s = Recorder.fixString(s); if (!smartRecording || !s.equals((String)defaultStrings.elementAt(sfIndex))) recordOption(tf, s); else if (Recorder.getCommandOptions()==null) Recorder.recordOption(" ");
recordOption(tf, trim(theText));
recordOption(tf, trim(theText));
String item = thisChoice.getSelectedItem(); if (!(item.equals("*None*")&&getTitle().equals("Merge Channels"))) recordOption(thisChoice, thisChoice.getSelectedItem());
String item = thisChoice.getSelectedItem(); if (!(item.equals("*None*")&&getTitle().equals("Merge Channels"))) recordOption(thisChoice, thisChoice.getSelectedItem());