Lines Matching defs:opt
210 private void addLabeledOption(JPanel group, String title, Component opt,
222 group.add(opt, c);
247 SaneOption opt = sane.getOptionDescriptor(saneHandle, i);
248 if (opt == null)
255 System.out.println("Option title: " + opt.title);
256 System.out.println("Option desc: " + opt.desc);
257 System.out.println("Option type: " + opt.type);
260 if (opt.unit == SaneOption.UNIT_NONE)
261 title = opt.title;
263 title = opt.title + " [" +
264 opt.unitString(unitLength) + ']';
265 switch (opt.type)
278 SaneCheckBox cbox = new SaneCheckBox(opt.title,
279 this, i, opt.desc);
289 if (opt.size != 4)
291 switch (opt.constraintType)
296 opt.rangeConstraint.min,
297 opt.rangeConstraint.max,
298 opt.unit == SaneOption.UNIT_MM,
299 this, i, opt.desc);
306 this, i, opt.desc);
314 if (opt.size != 4)
316 switch (opt.constraintType)
321 opt.rangeConstraint.min,
322 opt.rangeConstraint.max,
323 this, i, opt.desc);
330 this, i, opt.desc);
338 switch (opt.constraintType)
343 this, i, opt.desc);
349 this, i, opt.desc);
360 JButton btn = new SaneButton(title, this, i, opt.desc);
719 public SaneCheckBox(String title, Jscanimage dlg, int opt, String tip)
723 optNum = opt;
767 public SaneSlider(int min, int max, Jscanimage dlg, int opt, String tip)
771 optNum = opt;
834 Jscanimage dlg, int opt, String tip)
837 super(SCALE_MIN, SCALE_MAX, dlg, opt, tip);
893 public SaneButton(String title, Jscanimage dlg, int opt, String tip)
897 optNum = opt;
926 public SaneComboBox(Jscanimage dlg, int opt, String tip)
929 optNum = opt;
963 public SaneStringBox(Jscanimage dlg, int opt, String tip)
965 super(dlg, opt, tip);
974 SaneOption opt = dialog.getSane().getOptionDescriptor(
976 if (opt == null)
980 for (int i = 0; opt.stringListConstraint[i] != null; i++)
981 addItem(opt.stringListConstraint[i]);
983 byte buf[] = new byte[opt.size + 1];
1011 public SaneIntBox(Jscanimage dlg, int opt, String tip)
1013 super(dlg, opt, tip);
1022 SaneOption opt = dialog.getSane().getOptionDescriptor(
1024 if (opt == null)
1028 int cnt = opt.wordListConstraint[0];
1030 addItem(String.valueOf(opt.wordListConstraint[i + 1]));
1065 public SaneFixedBox(Jscanimage dlg, int opt, String tip)
1067 super(dlg, opt, tip);
1076 SaneOption opt = dialog.getSane().getOptionDescriptor(
1078 if (opt == null)
1082 int cnt = opt.wordListConstraint[0];
1085 opt.wordListConstraint[i + 1])));
1123 public SaneTextField(int width, Jscanimage dlg, int opt, String tip)
1127 optNum = opt;