verinec.validation.gui.actions
Class SchemaLinkingPaneActionListener

java.lang.Object
  extended by verinec.validation.gui.actions.SchemaLinkingPaneActionListener
All Implemented Interfaces:
ActionListener, EventListener
Direct Known Subclasses:
AddAction, RemoveAction, UpdateAction

public abstract class SchemaLinkingPaneActionListener
extends Object
implements ActionListener

An abstract ActionListener to edit Schema Locations in the netsim logfile.

Version:
$Revision: 47 $
Author:
Dominik Jungo

Field Summary
protected  Element element
          documents content as element. will be used to save the document and to add content.
protected  JTextField field
          the textfield that contains a schema location
protected  ValidatorEditorPanel vep
          the editor
 
Constructor Summary
SchemaLinkingPaneActionListener(ValidatorEditorPanel vep, JTextField field, Element element)
          Creates a new ActionListener
 
Method Summary
protected  void saveAndReload()
          Saves the element into the open file, reloads the file and displays it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

vep

protected ValidatorEditorPanel vep
the editor


field

protected JTextField field
the textfield that contains a schema location


element

protected Element element
documents content as element. will be used to save the document and to add content.

Constructor Detail

SchemaLinkingPaneActionListener

public SchemaLinkingPaneActionListener(ValidatorEditorPanel vep,
                                       JTextField field,
                                       Element element)
Creates a new ActionListener

Parameters:
vep - the edior
field - the textfield that contains a schema location
element - the element that will be used to save the document and to add content.
Method Detail

saveAndReload

protected void saveAndReload()
                      throws VerinecException
Saves the element into the open file, reloads the file and displays it.

Throws:
VerinecException - if the file could not be saved or loaded

Copyright © 2005 Verinec, DIUF