Class ServerConnectPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ServerConnectPanel extends JPanel
Panel de conexión con los servers de catálogo.
Author:
Jorge Piera Llodra (piera_jor@gva.es)
See Also:
  • Field Details

    • protocolCombo

      protected JComboBox protocolCombo
    • protocolLabel

      protected JLabel protocolLabel
    • serverLabel

      protected JLabel serverLabel
  • Constructor Details

    • ServerConnectPanel

      public ServerConnectPanel()
      Creates new form ServerConnectPanel
  • Method Details

    • setDatabaseVisible

      protected void setDatabaseVisible(boolean isVisible)
      Set the database panel visible
      Parameters:
      isVisible -
    • addServer

      public void addServer(org.gvsig.utils.swing.jcomboServer.ServerData serverData)
      Adds a new server
      Parameters:
      serverData - Server to add
    • loadDrivers

      public void loadDrivers(Object[] drivers)
      Load the drivers
      Parameters:
      drivers -
    • setProtocol

      public void setProtocol(String protocol)
      Select a concrete protocol
      Parameters:
      protocol - Protocol to select
    • setPropertiesIcon

      public void setPropertiesIcon(Icon icon)
    • updateProtocol

      public void updateProtocol()
      Updates the protocol combo
    • updateServerByProtocol

      public void updateServerByProtocol()
    • getServer

      public org.gvsig.utils.swing.jcomboServer.ServerData getServer()
      Returns:
      the selected server
    • getAllServers

      public org.gvsig.utils.swing.jcomboServer.ServerData[] getAllServers()
    • getDriver

      public Object getDriver()
      Returns:
      the selected driver by protocol
    • getServerAddress

      public String getServerAddress()
      Returns:
      the server address
    • getDatabase

      public String getDatabase()
      Returns:
      the server address
    • setServerReply

      public void setServerReply(String text)
      Set the server reply
      Parameters:
      text - Text to write
    • addActionListener

      public void addActionListener(ActionListener listener)
      Adds a listener to manage the panel events
      Parameters:
      listener - Listener to add
    • enableSearchButton

      public void enableSearchButton(boolean isEnabled)
      Enable or disable the search button
      Parameters:
      isEnabled - If the search button has to be enabled
    • enableServerPropertiesButton

      public void enableServerPropertiesButton(boolean isEnabled)
      Enable or disable the server properties button
      Parameters:
      isEnabled - If the search button has to be enabled
    • setServerPropertiesButtonVisible

      public void setServerPropertiesButtonVisible(boolean isVisible)
      Set visible the properties button
      Parameters:
      isVisible - If the properties button has to be visible
    • setServerTextEnabled

      public void setServerTextEnabled(boolean isEnabled)