Class ExitDialog


java.lang.Object

extended byicecube.testdaq.display.ExitDialog


public class ExitDialog


ExitDialog creates an exit confirmation dialog whenever a user decides to exit a program.


Method Summary


static public void

exit()

Creates an exit dialog asking the user to confirm the exit.


Class ColorRenderer


java.lang.Object
extended byjava.awt.Component
  extended byjava.awt.Container
    extended byjavax.swing.JComponent
      extended byjava.swing.JLabel
        extended byicecube.testdaq.display.ColorRenderer

public class ColorRenderer
extends JLabel
implements TableCellRenderer
ColorRenderer is used to create a color table cell renderer in order to display color fields on a JTable.

Constructor Summary

ColorRenderer(boolean isBordered)
        Creates a ColorRenderer object and sets isBordered.

Method Summary

public Component

getTableCellRendererComponent(JTable table,Object color,boolean isSelected,boolean hasFocus,int row,int column)



Sets the background and creates the border if isBordered is true.


Class FileListTools

java.lang.Object
extended byicecube.testdaq.display.FileListTools

public class FileListTools

FileListTools provides tools and methods for use in various file list tables.

Method Summary

public static Color

setAcc(boolean acc)

Returns the color corresponding to the accessibility variable acc (green for true, red for false).

public static Color

setProgress(int number)

Returns the color corresponding to the progress variable number.


Class ExitWindow

java.lang.Object
extended byjava.awt.event.WindowAdapter
   extended byicecube.testdaq.display.ExitWindow

public class ExitWindow
extends WindowAdapter

ExitWindow is used to monitor when the window it is listening to is closing.  It calls the ExitDialog 's exit method when it detects the window is closing.

Method Summary

public void

windowClosing(WindowEvent e)

Calls the ExitDialog's exit() method.




Class IntegerDocument

java.lang.Object
extended byjavax.swing.text.AbstractDocument
   extended byjavax.swing.text.PlainDocument
      extended byicecube.testdaq.display.IntegerDocument

IntegerDocument allows only integers to be entered in a text field. 

Method Summary

public void

iinsertString(int offset, String s, AttributeSet attributeSet) throws BadLocationException

Allows only integers as input.