Class RegistrySelector

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class RegistrySelector extends JPanel
Component for selecting a registry service. This looks mostly like a combo box with registry URLs in it, but also allows the user to query the registry for other registry services, which then populate the combo box futher.
Since:
9 Feb 2009
Author:
Mark Taylor
See Also:
  • Constructor Details

    • RegistrySelector

      public RegistrySelector()
      Constructs a registry selector with a new RI1 selection model.
    • RegistrySelector

      public RegistrySelector(RegistrySelectorModel model)
      Constructs a registry selector with a given selection model.
      Parameters:
      model - selection model
  • Method Details

    • setModel

      public void setModel(RegistrySelectorModel model)
      Sets the selection model for this selector.
      Parameters:
      model - new model
    • getModel

      public RegistrySelectorModel getModel()
      Returns the selection model for this selector.
      Returns:
      model
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • getUrl

      public String getUrl()
      Returns the currently selected registry Access URL.
      Returns:
      access URL
    • getRegistryUpdateAction

      public Action getRegistryUpdateAction()
      Returns an action which will update the list of registries by making a search in the registry for suitable registry entries. Although this sounds neat, at time of writing it's not much use since the relevant entries in the registry are largely incorrect.
      Returns:
      registry update action