org.purl.sword.client
Class GuiClient.PostAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.purl.sword.client.GuiClient.PostAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
GuiClient

protected class GuiClient.PostAction
extends AbstractAction

Controlling action to post a file to the server.

Author:
Neil Taylor
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
GuiClient.PostAction()
          Create a post action.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Display the post dialog to run the post process.
protected  void initialisePostDialog()
          Initialise the post dialog.
 void setCollection(String collection)
          Called when there has been a new selection selected in the service dialog.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiClient.PostAction

public GuiClient.PostAction()
Create a post action.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Display the post dialog to run the post process.

Parameters:
event - The event.

setCollection

public void setCollection(String collection)
Called when there has been a new selection selected in the service dialog. This value is stored and used to set the currently selected collection in any post operation.

Parameters:
collection - The url of the post area of a collection.

initialisePostDialog

protected void initialisePostDialog()
Initialise the post dialog. Create it if necessary and then set any values from the property store.



Copyright © 2012. All Rights Reserved.