Class ScalarAttributeSetPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
fr.esrf.tangoatk.widget.attribute.ScalarAttributeSetPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ScalarAttributeSetPanel extends JPanel
A ScalarAttributeSetPanel is a Swing JPanel which displays the "read value" of a scalar attribute together with it's corresponding setter (or editor). At the left side the label of the attribute is displayed and at the right side the unit is displayed (when relevant). The label and the unit are optional. The ScalarAttributeSetPanel selects an adapted setPanel according to the type of it's model (INumberScalar, IStringScalar).
See Also:
  • Constructor Details

    • ScalarAttributeSetPanel

      public ScalarAttributeSetPanel()
  • Method Details

    • setFont

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

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

      public void setAttModel(fr.esrf.tangoatk.core.IAttribute iatt)
    • getAttModel

      public fr.esrf.tangoatk.core.IAttribute getAttModel()
    • setLabelVisible

      public void setLabelVisible(boolean lv)
    • getLabelVisible

      public boolean getLabelVisible()
    • setUnitVisible

      public void setUnitVisible(boolean uv)
    • getUnitVisible

      public boolean getUnitVisible()
    • clearModel

      public void clearModel()