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

Quick Search    Search Deep

org.jext.misc
Class AutoSave  view AutoSave download AutoSave.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.jext.misc.AutoSave
All Implemented Interfaces:
java.lang.Runnable

public class AutoSave
extends java.lang.Thread


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private static int interval
           
private  org.jext.JextFrame parent
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AutoSave(org.jext.JextFrame parent)
          Starts the auto save thread.
 
Method Summary
protected  void finalize()
          Patch -> Memory management improvements : it may help the garbage collector.
static int getInterval()
          Returns the intervale, in seconds, between each save.
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
static void setInterval(int newInterval)
          Sets the interval, in seconds, between each save.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

private org.jext.JextFrame parent

interval

private static int interval
Constructor Detail

AutoSave

public AutoSave(org.jext.JextFrame parent)
Starts the auto save thread.

Method Detail

getInterval

public static int getInterval()
Returns the intervale, in seconds, between each save.


setInterval

public static void setInterval(int newInterval)
Sets the interval, in seconds, between each save.


run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.


finalize

protected void finalize()
                 throws java.lang.Throwable
Patch -> Memory management improvements : it may help the garbage collector. -> Author : Julien Ponge (julien@izforge.com) -> Date : 23, May 2001