Protege 2.1

edu.stanford.smi.protege.util
Interface Validatable

All Known Implementing Classes:
AbstractValidatableComponent, KnowledgeBaseSourcesEditor, SelectClsesPanel, ServerPanel

public interface Validatable

An interface that allows the implementer to veto a change or to record whatever is necessary when a save succeeds.

Author:
Ray Fergerson

Method Summary
 void saveContents()
          Save the contents of the current fields of this component to the underlying data structure.
 boolean validateContents()
          Check whether the current values of the fields in this component are valid.
 

Method Detail

saveContents

public void saveContents()
Save the contents of the current fields of this component to the underlying data structure. This method is called only after validateContents() has returned true for this object and, possibly, for other objects.


validateContents

public boolean validateContents()
Check whether the current values of the fields in this component are valid. If they are, return true. If not, prompt the user with a dialog explaining the problem and return false.


Protege 2.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.