DESY ACOP Beans Home

de.desy.acop.displayers.selector
Class ChannelSelector

java.lang.Object
  extended by de.desy.acop.displayers.selector.ChannelSelector

public class ChannelSelector
extends java.lang.Object

This class offers a method that opens an input dialog with a list of Integers where an index can be selected and returned.

Author:
tkusterle

Constructor Summary
ChannelSelector()
           
 
Method Summary
static int selectChannelDialog(java.awt.Component c, int length, int current)
          Displays a JDialog, which allows user to choose a specific index from the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelSelector

public ChannelSelector()
Method Detail

selectChannelDialog

public static int selectChannelDialog(java.awt.Component c,
                                      int length,
                                      int current)
Displays a JDialog, which allows user to choose a specific index from the list.

Parameters:
c - the owner of the dialog
length - the highest index number displayed (excluded)
current - default selected index
Returns:
the selected index


Copyright © 2010. All Rights Reserved.