jcreek.cke.command
Class RenameViewAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjcreek.cke.command.CreekAction
          extended byjcreek.cke.command.RenameViewAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public class RenameViewAction
extends CreekAction
implements java.beans.PropertyChangeListener

Title: JavaCreek Description: A Case based Reasoning Approach in java Copyright: Copyright (c) 2002 Company: Phil

Version:
1.0
Author:
Victor
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, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
RenameViewAction()
          Creates a new RenameViewAction object with the default action command string of "renameView".
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Performs the Rename action.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 
Methods inherited from class jcreek.cke.command.CreekAction
getDocument, getModel, getString, getView, getWindow, noCurrentDocument
 
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

RenameViewAction

public RenameViewAction()
Creates a new RenameViewAction object with the default action command string of "renameView". Note that the action will be disabled by default and will modify it's enabled state automatically as documents become dirty.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Performs the Rename action. This will possibly ask the user to input a title to save the View with

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
event - action event

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener


Created at IDI, NTNU by the Artificial Intelligence and Learning group