nu.zoom.ldap.eon.connection
Interface ConnectionEditor

All Known Implementing Classes:
PasswordConnectionEditor

public interface ConnectionEditor

An editor for connections.

Version:
$Revision: 1.2 $
Author:
$Author: johan $

Method Summary
 JComponent createNewConnectionEditor()
          The editor should create a new connection and let the user edit the newly created connection.
 JComponent editConnection(Connection connection)
          Create an editor for the given connection.
 void setOwnerFrame(WorkbenchFrame frame)
          When the framework has wrapped the editor in a frame the frame will be handed to the editor so that the ditor can operate on the frame.
 

Method Detail

createNewConnectionEditor

JComponent createNewConnectionEditor()
The editor should create a new connection and let the user edit the newly created connection. The editor is responsible for persisting the connection when the user is done. The editor factory that provided the editor should let their listeners know when the connection data changes.

Returns:
An editor component that can create new connections.

editConnection

JComponent editConnection(Connection connection)
Create an editor for the given connection. If the editor does not know how to edit the given connection it should return null. The editor is responsonsible for making the connection persistant when the user is done editing. The editor factory that provided the editor should let their listeners know when the connection data changes.

Parameters:
connection - The connection that the user elected to edit.
Returns:
An editor component for the given connection.

setOwnerFrame

void setOwnerFrame(WorkbenchFrame frame)
When the framework has wrapped the editor in a frame the frame will be handed to the editor so that the ditor can operate on the frame.

Parameters:
frame - The frame that embeds the editor.


Copyright © 2011. All Rights Reserved.