Class DevicePropertyDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class DevicePropertyDialog extends JDialog implements PropertyChangeListener
A modal JDialog to view and modify a device property
Author:
SOLEIL
See Also:
  • Field Details

    • devicePropertyModel

      protected fr.esrf.tangoatk.core.DeviceProperty devicePropertyModel
    • valueField

      protected JTextArea valueField
    • ok

      protected JButton ok
    • apply

      protected JButton apply
    • cancel

      protected JButton cancel
    • refresh

      protected JButton refresh
    • nameLabel

      protected JLabel nameLabel
    • propertyBox

      protected Box propertyBox
    • buttonBox

      protected Box buttonBox
    • globalBox

      protected Box globalBox
  • Constructor Details

    • DevicePropertyDialog

      public DevicePropertyDialog(Dialog parent, String title)
      Constructs the dialog with a parent Dialog and a title. Use setModel to associate a DeviceProperty.
      Parameters:
      parent - Parent dialog
      title - Dialog title
    • DevicePropertyDialog

      public DevicePropertyDialog(Frame parent, String title)
      Constructs the dialog with a parent Frame and a title. Use setModel to associate a DeviceProperty.
      Parameters:
      parent - Parent dialog
      title - Dialog title
    • DevicePropertyDialog

      public DevicePropertyDialog(Dialog parent)
      Constructs the dialog with a parent Dialog and no title. Use setModel to associate a DeviceProperty.
      Parameters:
      parent - Parent dialog
    • DevicePropertyDialog

      public DevicePropertyDialog(Frame parent)
      Constructs the dialog with a parent Frame and no title. Use setModel to associate a DeviceProperty.
      Parameters:
      parent - Parent frame
    • DevicePropertyDialog

      public DevicePropertyDialog()
      Constructs the dialog with no parent and no title. Use setModel to associate a DeviceProperty.
  • Method Details

    • setDevicePropertyModel

      public void setDevicePropertyModel(fr.esrf.tangoatk.core.DeviceProperty property)
      Associates a DeviceProperty with this JDialog
      Parameters:
      property - the DeviceProperty you wish to view
    • getDevicePropertyModel

      public fr.esrf.tangoatk.core.DeviceProperty getDevicePropertyModel()
      A method to know the associated device property
      Returns:
      a DeviceProperty
    • clearDevicePropertyModel

      public void clearDevicePropertyModel()
      A method to dissociate this JDialog with any DeviceProperty
    • initComponents

      protected void initComponents()
    • apply

      protected void apply()
    • cancel

      protected void cancel()
    • refresh

      protected void refresh()
    • propertyChange

      public void propertyChange(PropertyChangeEvent arg0)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • main

      public static void main(String[] args)
      This allows you to have an example.
      Parameters:
      args - To view your own device property, launch with 2 arguments [device name,prop name]