Class PVSelector

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PVSelector extends JPanel
PVSelector is a GUI component creating a tree-like PV selection and shows the selected PV in a text box. Note this is for single selection only.
Version:
0.1 30 Apr 2003
Author:
C.M. Chu
See Also:
  • Constructor Details

    • PVSelector

      public PVSelector(String label)
      The constructor. Just create objects we need internally.
      Parameters:
      label - - the label to use to comment text box
    • PVSelector

      public PVSelector(Accelerator accel, String label)
      The constructor. Just create objects we need internally.
      Parameters:
      accel - - The XAL accelerator object to build a tree from
      label - - the label to use to comment text box
  • Method Details

    • setAccelerator

      public void setAccelerator(Accelerator accel)
      set an accelertor to this PVSelector
      Parameters:
      accel - - the accelerator sequence
    • setLabel

      public void setLabel(String label)
      set the name of this PVSelector
    • getLabel

      public String getLabel()
      returns the name of this PVSelector
    • getTreeSelectionEventListenYes

      public boolean getTreeSelectionEventListenYes()
      returns the state of the tree selection listener
    • setTreeSelectionEventListenYes

      public void setTreeSelectionEventListenYes(boolean treeSelectionListenerYes)
      sets the state of the tree selection listener
    • getSlectButton

      public JButton getSlectButton()
      returns the reference to the command button
    • getSelectedPVName

      public String getSelectedPVName()
      convenience method to get selected name
    • getSelectedChannel

      public Channel getSelectedChannel()
      convenience method to get selected channel
    • setPVSelectedListener

      public void setPVSelectedListener(ActionListener actionListenerProxy)
      method to set a PVSectedListener
    • getPVSelectedListener

      public ActionListener getPVSelectedListener(ActionListener actionListenerProxy)
      method to get a PVSectedListener
    • getPVText

      public String getPVText()