Protege 2.1.1

edu.stanford.smi.protege.widget
Interface TabWidget

All Superinterfaces:
Disposable, Plugin, Selectable, Widget
All Known Implementing Classes:
AbstractTabWidget

public interface TabWidget
extends Widget

Basic interface for all tab widgets.

Author:
Ray Fergerson

Method Summary
 boolean canClose()
          Called when the user attempts to close a project.
 boolean canSave()
          Called when the user attempts to save a project.
 void close()
          Called when the user attempts to close a project and all tabs return 'true' from their #canClose() methods.
 Icon getIcon()
           
 String getShortDescription()
           
 void save()
          Called when the user attempts to save a project and all tabs return 'true' from their #canSave() methods.
 void setup(WidgetDescriptor descriptor, Project project)
           
 void synchronizeClsTree(Collection clsPath)
           
 
Methods inherited from interface edu.stanford.smi.protege.widget.Widget
configure, getDescriptor, getKnowledgeBase, getLabel, getProject, initialize, setLabel
 
Methods inherited from interface edu.stanford.smi.protege.util.Selectable
addSelectionListener, clearSelection, getSelection, notifySelectionListeners, removeSelectionListener
 
Methods inherited from interface edu.stanford.smi.protege.plugin.Plugin
getName
 
Methods inherited from interface edu.stanford.smi.protege.util.Disposable
dispose
 

Method Detail

canClose

public boolean canClose()
Called when the user attempts to close a project. Return 'true' you tab is in such a state that a close is possible. If for some reason you must prevent a close then you must pop up a dialog letting the user know why the close is not allowed. You should then return 'false'. Most tabs will always return true.


canSave

public boolean canSave()
Called when the user attempts to save a project. Return 'true' you tab is in such a state that a save is possible. If for some reason you must prevent a save then you must pop up a dialog letting the user know why the save is not allowed. You should then return 'false'. Most tabs will always return true.


close

public void close()
Called when the user attempts to close a project and all tabs return 'true' from their #canClose() methods. Do any tab specific close operations in this method. Most tabs will do nothing.


getIcon

public Icon getIcon()

getShortDescription

public String getShortDescription()

save

public void save()
Called when the user attempts to save a project and all tabs return 'true' from their #canSave() methods. Do any tab specific save operations in this method. Most tabs will do nothing.


setup

public void setup(WidgetDescriptor descriptor,
                  Project project)

synchronizeClsTree

public void synchronizeClsTree(Collection clsPath)

Protege 2.1.1

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