fi.hut.tml.xsmiles.mlfc.encryption
Class EncryptionDialog

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.encryption.EncryptionDialog
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class EncryptionDialog
extends java.lang.Object
implements java.awt.event.ActionListener

Encryption dialogue.

Author:
honkkis, nps

Field Summary
protected  java.awt.event.ActionListener actionListener
          the dialogue's action listener
protected  java.awt.Container buttonPanel
          the button panel
protected  XButton cancelButton
          the cancel button
protected  java.awt.Container centerPanel
          the central panel of the dialogue
protected  ComponentFactory cfactory
          the component factory
protected  XButton decryptButton
          the decrypt button
protected  XButton encryptButton
          the encrypt button
protected  javax.swing.JFrame frame
          the frame of the dialogue
protected  XTextArea instLog
          the text area for the instance document
protected  java.io.File keystoreFile
          the keystore file name
protected  java.awt.Container mainPanel
          the main panel of the dialogue
protected  XButton selectKeyButton
          the key selection button
protected  XTextArea uiLog
          the text area for the user interface document
 
Constructor Summary
EncryptionDialog()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Button handler.
 void disposeDialog()
          Destroy the dialogue.
protected  ComponentFactory getComponentFactory()
          Get the component factory being used by this dialogue.
 void setActionListener(java.awt.event.ActionListener l)
          Set the action listener for the dialogue.
protected  void setComponentFactory(ComponentFactory f)
          Set the component factory to be used by this dialogue.
 EncryptionKey showDialog()
          Display the dialogue.
 void writeToInstance(org.w3c.dom.Node n)
          Display a document fragment in the instance document window.
protected  void writeToTextArea(org.w3c.dom.Node n, XTextArea log)
          Display a document fragment in a text area
 void writeToUI(org.w3c.dom.Node n)
          Display a document fragment in the user interface window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

protected javax.swing.JFrame frame
the frame of the dialogue


mainPanel

protected java.awt.Container mainPanel
the main panel of the dialogue


centerPanel

protected java.awt.Container centerPanel
the central panel of the dialogue


buttonPanel

protected java.awt.Container buttonPanel
the button panel


encryptButton

protected XButton encryptButton
the encrypt button


cancelButton

protected XButton cancelButton
the cancel button


decryptButton

protected XButton decryptButton
the decrypt button


selectKeyButton

protected XButton selectKeyButton
the key selection button


instLog

protected XTextArea instLog
the text area for the instance document


uiLog

protected XTextArea uiLog
the text area for the user interface document


keystoreFile

protected java.io.File keystoreFile
the keystore file name


cfactory

protected ComponentFactory cfactory
the component factory


actionListener

protected java.awt.event.ActionListener actionListener
the dialogue's action listener

Constructor Detail

EncryptionDialog

public EncryptionDialog()
Method Detail

showDialog

public EncryptionKey showDialog()
Display the dialogue.

Returns:
null

setActionListener

public void setActionListener(java.awt.event.ActionListener l)
Set the action listener for the dialogue. This listener will be notified when the dialogue is closed.

Parameters:
l - the action listener that will handle this dialogue's events

disposeDialog

public void disposeDialog()
Destroy the dialogue.


getComponentFactory

protected ComponentFactory getComponentFactory()
Get the component factory being used by this dialogue.

Returns:
the component factory being used

setComponentFactory

protected void setComponentFactory(ComponentFactory f)
Set the component factory to be used by this dialogue.

Parameters:
f - the component factory to use

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Button handler.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - the event to be processed

writeToInstance

public void writeToInstance(org.w3c.dom.Node n)
Display a document fragment in the instance document window.

Parameters:
n - the root of the document fragment to write

writeToUI

public void writeToUI(org.w3c.dom.Node n)
Display a document fragment in the user interface window.

Parameters:
n - the root of the document fragment to write

writeToTextArea

protected void writeToTextArea(org.w3c.dom.Node n,
                               XTextArea log)
Display a document fragment in a text area

Parameters:
n - the root of the document fragment to write
log - the text area to write to


X-Smiles 1.2