de.mindcrimeilab.xsanalyzer.util
Class JFileChooserMemento

java.lang.Object
  extended by de.mindcrimeilab.xsanalyzer.util.JFileChooserMemento
All Implemented Interfaces:
org.springframework.richclient.settings.support.Memento

public class JFileChooserMemento
extends Object
implements org.springframework.richclient.settings.support.Memento

Saves and restores state of java.swing.JFileChooser. Currently it handles only the last selected directory.

Version:
$Revision: 165 $
Author:
Michael Engelhardt, $Author: agony $

Constructor Summary
JFileChooserMemento(JFileChooser fileChooser)
          ctor()
 
Method Summary
 void restoreState(org.springframework.richclient.settings.Settings settings)
           
 void saveState(org.springframework.richclient.settings.Settings settings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JFileChooserMemento

public JFileChooserMemento(JFileChooser fileChooser)
ctor()

Parameters:
fileChooser - to save or restore state
Method Detail

restoreState

public void restoreState(org.springframework.richclient.settings.Settings settings)
Specified by:
restoreState in interface org.springframework.richclient.settings.support.Memento

saveState

public void saveState(org.springframework.richclient.settings.Settings settings)
Specified by:
saveState in interface org.springframework.richclient.settings.support.Memento


Copyright © 2010. All Rights Reserved.