jap
Class JAPConfInfoServiceSavePoint

java.lang.Object
  extended by jap.JAPConfInfoServiceSavePoint
All Implemented Interfaces:
IJAPConfSavePoint

public class JAPConfInfoServiceSavePoint
extends java.lang.Object
implements IJAPConfSavePoint

This is the implementation for the infoservice savepoint. It is needed for restoring an old or the default configuration, if the user presses "Cancel" or "Reset to defaults".


Field Summary
private  boolean m_automaticInfoServiceChanges
          Whether automatic changes of infoservice are enabled (if the default infoservice fails).
private  boolean m_automaticInfoServiceRequestsDisabled
          Whether automatic infoservice requests are disabled or not.
private  java.util.Vector m_knownInfoServices
          The Vector of all known infoservices.
private  InfoServiceDBEntry m_preferredInfoService
          The preferred infoservice.
 
Constructor Summary
JAPConfInfoServiceSavePoint()
           
 
Method Summary
 void createSavePoint()
          This method will store the current infoservice configuration in this savepoint.
 void restoreDefaults()
          Loads the default infoservice configuration.
 void restoreSavePoint()
          Restores the old infoservice configuration (stored with the last call of createSavePoint()).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_knownInfoServices

private java.util.Vector m_knownInfoServices
The Vector of all known infoservices.


m_preferredInfoService

private InfoServiceDBEntry m_preferredInfoService
The preferred infoservice.


m_automaticInfoServiceRequestsDisabled

private boolean m_automaticInfoServiceRequestsDisabled
Whether automatic infoservice requests are disabled or not.


m_automaticInfoServiceChanges

private boolean m_automaticInfoServiceChanges
Whether automatic changes of infoservice are enabled (if the default infoservice fails).

Constructor Detail

JAPConfInfoServiceSavePoint

public JAPConfInfoServiceSavePoint()
Method Detail

createSavePoint

public void createSavePoint()
This method will store the current infoservice configuration in this savepoint.

Specified by:
createSavePoint in interface IJAPConfSavePoint

restoreSavePoint

public void restoreSavePoint()
Restores the old infoservice configuration (stored with the last call of createSavePoint()).

Specified by:
restoreSavePoint in interface IJAPConfSavePoint

restoreDefaults

public void restoreDefaults()
Loads the default infoservice configuration.

Specified by:
restoreDefaults in interface IJAPConfSavePoint