net.sourceforge.queryviewer.ui.event
Class AbstractControler

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--net.sourceforge.queryviewer.ui.event.AbstractControler
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Direct Known Subclasses:
CloseControler, OpenControler, QueryControler, QuitControler

public abstract class AbstractControler
extends AbstractAction

Classe mère de tous les contrôles du QueryViewer. Pour que les sous-classe fonctionnent correctement, il va mettre à jour le Map tel que:

Created: Fri Jun 13 14:27:09 2003

Version:
$Id: AbstractControler.java,v 1.5 2003/06/23 08:32:23 avdyk Exp $
Author:
Arnaud Vandyck
See Also:
Serialized Form

Field Summary
protected  Query query
           
static String QUERY_PROPERTY
           
static String VIEW_INFO_PROPERTY
           
protected  ViewInfo viewInfo
           
 
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
AbstractControler(Query query)
           
 
Method Summary
abstract  void actionPerformed(ActionEvent action)
          Méthode héritée de ActionListener.
 Query getQuery()
          Get the Query value.
 ViewInfo getViewInfo()
          Get the ViewInfo value.
 void setQuery(Query newQuery)
          Set the Query value.
 void setViewInfo(ViewInfo newViewInfo)
          Set the ViewInfo value.
 
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
 

Field Detail

QUERY_PROPERTY

public static final String QUERY_PROPERTY
See Also:
Constant Field Values

VIEW_INFO_PROPERTY

public static final String VIEW_INFO_PROPERTY
See Also:
Constant Field Values

query

protected Query query

viewInfo

protected ViewInfo viewInfo
Constructor Detail

AbstractControler

public AbstractControler(Query query)
Method Detail

getQuery

public Query getQuery()
Get the Query value.

Returns:
the Query value.

setQuery

public void setQuery(Query newQuery)
Set the Query value.

Parameters:
newQuery - The new Query value.

getViewInfo

public ViewInfo getViewInfo()
Get the ViewInfo value.

Returns:
the ViewInfo value.

setViewInfo

public void setViewInfo(ViewInfo newViewInfo)
Set the ViewInfo value. ATTENTION Il faudrait peut-être renommer cette méthode en addViewInfo(ViewInfo) car peut-être que l'on pourrait ajouter plusieurs vues à un contrôleur.

Parameters:
newViewInfo - The new ViewInfo value.

actionPerformed

public abstract void actionPerformed(ActionEvent action)
Méthode héritée de ActionListener.

Parameters:
action - l'action qui vient d'avoir lieu


Copyright © 2003 STE-Formations Informatiques, FAPSE, ULg. All Rights Reserved.