Class StringImageTableViewer

All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener, fr.esrf.tangoatk.core.IErrorListener, fr.esrf.tangoatk.core.IStringImageListener, ActionListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class StringImageTableViewer extends JTableRow implements fr.esrf.tangoatk.core.IStringImageListener
A StringImageTableViewer is a Swing JTable provided for the StringImage attributes. The elements of the string image attribute will be displayed in a two dimensional matrix, displayed by a Swing JTable. The attribute used as the model for this viewer should implement the IStringImage interface. The viewer is updated when the string image attribute value changes.
See Also:
  • Constructor Details

    • StringImageTableViewer

      public StringImageTableViewer()
  • Method Details

    • getAttModel

      public fr.esrf.tangoatk.core.IStringImage getAttModel()
    • setAttModel

      public void setAttModel(fr.esrf.tangoatk.core.IStringImage siModel)
    • getQualityEnabled

      public boolean getQualityEnabled()
      getQualityEnabled returns a boolean to know whether quality will be displayed as background or not.
      Returns:
      a boolean value
    • setQualityEnabled

      public void setQualityEnabled(boolean b)
      setQualityEnabled view or not the attribute quality for this viewer
      Parameters:
      b - If True the background Color represents the attribute quality factor
    • clearModel

      public void clearModel()
    • setBackground

      public void setBackground(Color bg)
      Overrides:
      setBackground in class JComponent
    • stringImageChange

      public void stringImageChange(fr.esrf.tangoatk.core.StringImageEvent e)
      Specified by:
      stringImageChange in interface fr.esrf.tangoatk.core.IStringImageListener
    • stateChange

      public void stateChange(fr.esrf.tangoatk.core.AttributeStateEvent evt)
      Specified by:
      stateChange in interface fr.esrf.tangoatk.core.IAttributeStateListener
    • errorChange

      public void errorChange(fr.esrf.tangoatk.core.ErrorEvent evt)
      Specified by:
      errorChange in interface fr.esrf.tangoatk.core.IErrorListener
    • setStringImageValue

      protected void setStringImageValue(String[][] val)
    • main

      public static void main(String[] args)