예제 #1
0
 /** Dispose of the panel */
 @Override
 public void dispose() {
   watcher.dispose();
   sel_model.removeProxySelectionListener(sel_listener);
   clear();
   super.dispose();
 }
예제 #2
0
 /** Initialize the widgets on the panel */
 @Override
 public void initialize() {
   super.initialize();
   ButtonGroup group = new ButtonGroup();
   group.add(on_btn);
   group.add(off_btn);
   JPanel b_pnl = new JPanel(new GridLayout(1, 2));
   b_pnl.add(on_btn);
   b_pnl.add(off_btn);
   setTitle(I18N.get("ramp_meter.selected"));
   add("device.name");
   add(name_lbl);
   add("camera");
   add(preset_btn, Stretch.LAST);
   preset_btn.setBorder(UI.buttonBorder());
   add("location");
   add(location_lbl, Stretch.LAST);
   add("device.operation");
   add(operation_lbl, Stretch.LAST);
   // Make label opaque so that we can set the background color
   operation_lbl.setOpaque(true);
   add("ramp.meter.rate");
   add(release_lbl);
   add("ramp.meter.cycle");
   add(cycle_lbl, Stretch.LAST);
   add("ramp.meter.queue");
   add(queue_lbl);
   add(shrink_btn, Stretch.NONE);
   add(grow_btn, Stretch.LAST);
   add("ramp.meter.lock");
   add(lock_cbx, Stretch.LAST);
   add("ramp.meter.metering");
   add(b_pnl, Stretch.LAST);
   watcher.initialize();
   clear();
   sel_model.addProxySelectionListener(sel_listener);
 }
예제 #3
0
 /** Set the selected ramp meter */
 public void setSelected(RampMeter rm) {
   watcher.setProxy(rm);
 }