edu.stanford.smi.protegex.owl.ui.cls
Class SwitchClassDefinitionResourceDisplayPlugin

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.ui.cls.SwitchClassDefinitionResourceDisplayPlugin
All Implemented Interfaces:
ResourceDisplayPlugin

public class SwitchClassDefinitionResourceDisplayPlugin
extends Object
implements ResourceDisplayPlugin

Author:
Holger Knublauch

Nested Class Summary
private  class SwitchClassDefinitionResourceDisplayPlugin.SwitchPanel
           
 
Field Summary
private static String PROPERTY
           
static boolean showWarning
           
 
Constructor Summary
SwitchClassDefinitionResourceDisplayPlugin()
           
 
Method Summary
static String getDefaultClassView()
           
private  SwitchableClassDefinitionWidget getWidget(JPanel hostPanel)
           
 void initResourceDisplay(RDFResource resource, JPanel hostPanel)
          Called whenever a new instance is displayed in a ResourceDisplay.
static void setClassesView(edu.stanford.smi.protege.util.PropertyList sources, String activeClassName)
           
static void setDefaultClassesView(String activeClassName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY

private static final String PROPERTY
See Also:
Constant Field Values

showWarning

public static boolean showWarning
Constructor Detail

SwitchClassDefinitionResourceDisplayPlugin

public SwitchClassDefinitionResourceDisplayPlugin()
Method Detail

getWidget

private SwitchableClassDefinitionWidget getWidget(JPanel hostPanel)

getDefaultClassView

public static String getDefaultClassView()

initResourceDisplay

public void initResourceDisplay(RDFResource resource,
                                JPanel hostPanel)
Description copied from interface: ResourceDisplayPlugin
Called whenever a new instance is displayed in a ResourceDisplay. This method should check the type of the Resource, and depending on this add components to the hostPanel (which is the container of arbitrary components in the bottom right area of the screen.

Specified by:
initResourceDisplay in interface ResourceDisplayPlugin
Parameters:
resource - the currently selected Frame
hostPanel - the JPanel that can be modified

setClassesView

public static void setClassesView(edu.stanford.smi.protege.util.PropertyList sources,
                                  String activeClassName)

setDefaultClassesView

public static void setDefaultClassesView(String activeClassName)