Class StatusViewer

All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener, fr.esrf.tangoatk.core.IErrorListener, fr.esrf.tangoatk.core.IStringScalarListener, JDrawable, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class StatusViewer extends JPanel implements fr.esrf.tangoatk.core.IStringScalarListener, JDrawable
Author:
root
See Also:
  • Constructor Details

    • StatusViewer

      public StatusViewer()
      Creates new form StatusViewer
  • Method Details

    • setModel

      public void setModel(fr.esrf.tangoatk.core.IStringScalar statusAtt)
    • clearModel

      public void clearModel()
    • getModel

      public fr.esrf.tangoatk.core.IStringScalar getModel()
      getModel gets the model of this statusViewer.
      Returns:
      a IStringScalar value
    • getRows

      public int getRows()
    • setRows

      public void setRows(int rows)
    • getColumns

      public int getColumns()
    • setColumns

      public void setColumns(int columns)
    • getUseDeviceAlias

      public boolean getUseDeviceAlias()
      getUseDeviceAlias returns true if the device alias is displayed instead of device name
      Returns:
      a boolean value
    • setUseDeviceAlias

      public void setUseDeviceAlias(boolean b)
      setUseDeviceAlias use or not use device alias
      Parameters:
      b - True to enable device alias usage.
    • getText

      public JTextArea getText()
    • stringScalarChange

      public void stringScalarChange(fr.esrf.tangoatk.core.StringScalarEvent evt)
      Specified by:
      stringScalarChange in interface fr.esrf.tangoatk.core.IStringScalarListener
    • errorChange

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

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

      public void setFont(Font font)
      Overrides:
      setFont in class JComponent
    • setBackground

      public void setBackground(Color color)
      Overrides:
      setBackground in class JComponent
    • initForEditing

      public void initForEditing()
      Description copied from interface: JDrawable
      Call after a component of a JDSwingObject is created, this give a default look and feel for editing.
      Specified by:
      initForEditing in interface JDrawable
    • getComponent

      public JComponent getComponent()
      Specified by:
      getComponent in interface JDrawable
      Returns:
      the JComponent that implements this interface.
    • getExtensionList

      public String[] getExtensionList()
      Specified by:
      getExtensionList in interface JDrawable
      Returns:
      list of extension name for this objects (Empty array for none).
    • setExtendedParam

      public boolean setExtendedParam(String name, String value, boolean popupAllowed)
      Description copied from interface: JDrawable
      Sets the specified param.
      Specified by:
      setExtendedParam in interface JDrawable
      Parameters:
      name - Parameter name (Case unsensitive).
      value - Parameter value.
      popupAllowed - true when the JDrawable should display a popup if the parameter value is incorrect, false otherwise. Note that the JDrawable must not display an error message if the parameter does not exists even if popupAllowed is true.
      Returns:
      true if parameters has been succesfully applied, false otherwise.
    • getExtendedParam

      public String getExtendedParam(String name)
      Description copied from interface: JDrawable
      Returns the specified parameter value.
      Specified by:
      getExtendedParam in interface JDrawable
      Parameters:
      name - Param name (Case unsensitive).
      Returns:
      Empty string if not exists, the value otherwise.
    • getDescription

      public String getDescription(String extName)
      Description copied from interface: JDrawable
      Get a description of this extensions.
      Specified by:
      getDescription in interface JDrawable
      Parameters:
      extName - Extension name
      Returns:
      Empty string for no description.
    • main

      public static void main(String[] args)