Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.diaam.lgpl.ts
Class ActionSauvegarde  view ActionSauvegarde download ActionSauvegarde.java

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycom.diaam.lgpl.ts.ActionSauvegarde
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ActionSauvegarde
extends javax.swing.AbstractAction

Pour proposer à l'utilisateur une sauvegarde d'un document ShSh. Pour l'utilisation, voir la doc de swing. Cette classe n'est pas trés élaborée, mais c'est pas grave. Cela viendra plus tard.

Version:
111999

Field Summary
 java.io.File fichierDeSauvegarde
          Le fichier de sauvegarde par défaut est "log.txt".
private  ShSh monShell
           
private  java.lang.Exception pasDeBol
           
 
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
ActionSauvegarde(ShSh shell)
           
ActionSauvegarde(ShSh shell, java.lang.String name)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          L'action se déclenche ! Elle ne fait rien de mal : elle sauvegarde le contenu du document dans un fichier texte, c'est tout.
 java.lang.Exception gargl()
          En cas que actionPerformed se passe mal, l'appli pourra trouver ici l'exception dénonciatrice.
 
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

fichierDeSauvegarde

public java.io.File fichierDeSauvegarde
Le fichier de sauvegarde par défaut est "log.txt".


monShell

private ShSh monShell

pasDeBol

private java.lang.Exception pasDeBol
Constructor Detail

ActionSauvegarde

public ActionSauvegarde(ShSh shell)

ActionSauvegarde

public ActionSauvegarde(ShSh shell,
                        java.lang.String name)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
L'action se déclenche ! Elle ne fait rien de mal : elle sauvegarde le contenu du document dans un fichier texte, c'est tout.


gargl

public java.lang.Exception gargl()
En cas que actionPerformed se passe mal, l'appli pourra trouver ici l'exception dénonciatrice. (A mon avis ça ne sert à rien)