|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.ui.widget.OWLUI
public class OWLUI
A collection of global utilities for OWL user interface components.
Note: as of 3.2 beta, much of the functionality was moved into ProtegeUI and its helper classes.
Field Summary | |
---|---|
static String |
CODE_MENU
Deprecated. use constant from AbstractOWLModelAction |
static String |
CONSTRAINT_CHECKING
|
static String |
OWL_MENU
Deprecated. use constant from AbstractOWLModelAction |
static String |
SORT_CLASS_TREE_AFTER_LOAD
|
static String |
TOOLS_MENU
Deprecated. use constant from AbstractOWLModelAction |
static String |
USE_CACHE_HEURISTICS_PROP
|
static int |
WIZARD_HELP_HEIGHT
|
Constructor Summary | |
---|---|
OWLUI()
|
Method Summary | |
---|---|
static void |
addCopyPastePopup(JTextComponent textComponent)
Add a context menu containing Cut, Copy, Paste and InsertUnicode |
static JButton |
addFrameTreeFinderButton(edu.stanford.smi.protege.ui.Finder finder,
Action action)
|
static JComponent |
createHelpPanel(String text,
String title)
|
static JComponent |
createHelpPanel(String text,
String title,
int maxHeight)
|
static JComponent |
createHelpPanel(String text,
String title,
int maxHeight,
Icon icon)
|
static JFileChooser |
createJFileChooser(String fileDescription,
String suffix)
|
static JToolBar |
createToolBar()
|
static Component |
findComponent(Container container,
Class componentClass)
Descends into the component tree of a given Container and returns the first sub-component of a given Java class. |
static OWLBrowserSlotPattern |
fixBrowserSlotPattern(edu.stanford.smi.protege.model.Project project,
edu.stanford.smi.protege.model.Cls cls)
|
static void |
fixBrowserSlotPatterns(edu.stanford.smi.protege.model.Project project)
|
static int |
getConfirmationThreshold(OWLModel owlModel)
|
static edu.stanford.smi.protege.model.Cls |
getOneNamedDirectTypeWithBrowserPattern(OWLIndividual instance)
Get one named direct type for an owl individual. |
static OWLToolTipGenerator |
getOWLToolTipGenerator()
|
static String |
getOWLToolTipText(RDFResource res)
|
static String |
getOWLToolTipText(RDFSClass aClass)
|
static Collection |
getPathsToRoot(RDFResource resource)
Computes all paths from a resource to the root node (owl:Thing) by navigating the direct-superclasses slot. |
static Collection |
getPathsToRoot(RDFResource resource,
edu.stanford.smi.protege.model.Slot navigationSlot)
Computes all paths from a resource to the root node (owl:Thing) by navigating on the navigationSlot. |
static Collection |
getPathsToRoot(RDFResource resource,
edu.stanford.smi.protege.model.Slot navigationSlot,
Class resourceClass)
Computes all paths from a resource to the root node (owl:Thing) by navigating on the navigationSlot. |
static edu.stanford.smi.protege.widget.SlotWidget |
getSiblingSlotWidget(Component widget,
edu.stanford.smi.protege.model.Slot slot)
|
static boolean |
getSortClassTreeAfterLoadOption()
|
static boolean |
getSortClassTreeOption()
|
static boolean |
getSortPropertiesTreeOption()
|
static TreePath |
getTreePath(JTree tree,
Collection objectPath)
|
static String |
getWidgetLabel(edu.stanford.smi.protege.model.Slot slot)
|
static void |
handleError(OWLModel owlModel,
Throwable t)
|
static void |
handleError(Throwable t)
Deprecated. |
static boolean |
isConfirmationNeeded(OWLModel owlModel)
|
static boolean |
isConfirmed(OWLModel owlModel,
boolean value)
|
static boolean |
isConfirmed(edu.stanford.smi.protege.model.Project project,
boolean value)
Deprecated. |
static boolean |
isConstraintChecking(OWLModel owlModel)
|
static boolean |
isDragAndDropSupported(OWLModel owlModel)
|
static boolean |
isExternalResourcesSupported(OWLModel owlModel)
|
static boolean |
isUnsuitableTab(String className)
|
static RDFSClass |
pickConcreteClass(OWLModel owlModel,
Collection allowedClasses)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static RDFSClass |
pickConcreteClass(OWLModel owlModel,
Collection allowedClasses,
String label)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static RDFSClass |
pickConcreteClass(OWLModel owlModel,
String label)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static OWLNamedClass |
pickOWLNamedClass(OWLModel owlModel,
Collection classes,
String label)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static Collection |
pickRDFProperties(Collection properties,
String title)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static RDFProperty |
pickRDFProperty(Collection allowedProperties,
String title)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static RDFResource |
pickRDFResource(Collection allowedClasses)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static RDFResource |
pickRDFResourceFromCollection(Collection allowedResources,
String label)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static Collection |
pickRDFResources(Collection allowedClasses)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static Collection |
pickRDFResources(Collection allowedClasses,
boolean allowsMultipleSelection)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static RDFSNamedClass |
pickRDFSNamedClass(OWLModel owlModel,
Collection cs,
String label)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static RDFSNamedClass |
pickRDFSNamedClass(OWLModel owlModel,
String label)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static Collection |
pickRDFSNamedClasses(OWLModel owlModel,
String label)
Deprecated. use ProtegeUI.getSelectionDialogFactory()... |
static Component |
searchComponentOfType(Container c,
Class type)
|
static void |
selectResource(RDFResource r,
HostResourceDisplay host)
Select a class or other resource - works even when the caller is in a dialog. |
static void |
setConstraintChecking(OWLModel owlModel,
boolean value)
|
static void |
setDragAndDropSupported(OWLModel owlModel,
boolean value)
|
static void |
setExternalResourcesSupported(OWLModel owlModel,
boolean value)
|
static void |
setOWLToolTipGenerator(OWLToolTipGenerator ttg)
|
static boolean |
setSelectedNodeInTree(edu.stanford.smi.protege.util.SelectableTree tree,
RDFResource resource)
Selects an RDF resource in a selectable class-subclass tree. |
static boolean |
setSelectedNodeInTree(edu.stanford.smi.protege.util.SelectableTree tree,
RDFResource resource,
edu.stanford.smi.protege.model.Slot navigationSlot)
Selects an RDF resource in a selectable tree. |
static boolean |
setSelectedNodeInTree(edu.stanford.smi.protege.util.SelectableTree tree,
RDFResource resource,
edu.stanford.smi.protege.model.Slot navigationSlot,
Class resourceClass)
Selects an RDF resource in a selectable tree. |
static void |
setSortClassTreeAfterLoadOption(boolean classTreeSortedAfterLoad)
|
static void |
setSortClassTreeOption(boolean classTreeSorted)
|
static void |
setSortPropertiesTreeOption(boolean propertiesTreeSorted)
|
static boolean |
showConfirmDialog(edu.stanford.smi.protege.model.Project project,
String message,
String title)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static boolean |
showConfirmDialog(String message,
String title)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showErrorMessageDialog(Component parent,
String message)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showErrorMessageDialog(OWLModel owlModel,
String message)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showErrorMessageDialog(edu.stanford.smi.protege.model.Project project,
String message)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showErrorMessageDialog(edu.stanford.smi.protege.model.Project project,
String message,
String title)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showErrorMessageDialog(String message)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showErrorMessageDialog(String message,
String title)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showMessageDialog(Component parent,
String message)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showMessageDialog(OWLModel owlModel,
String message)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showMessageDialog(OWLModel owlModel,
String message,
String title,
int type)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showMessageDialog(edu.stanford.smi.protege.model.Project project,
String message)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showMessageDialog(edu.stanford.smi.protege.model.Project project,
String message,
String title,
int type)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showMessageDialog(String message)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
static void |
showMessageDialog(String message,
String title,
int type)
Deprecated. use ProtegeUI.getModalDialogFactory()... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SORT_CLASS_TREE_AFTER_LOAD
public static final String USE_CACHE_HEURISTICS_PROP
@Deprecated public static String CODE_MENU
public static final String CONSTRAINT_CHECKING
@Deprecated public static String OWL_MENU
@Deprecated public static final String TOOLS_MENU
public static final int WIZARD_HELP_HEIGHT
Constructor Detail |
---|
public OWLUI()
Method Detail |
---|
public static void selectResource(RDFResource r, HostResourceDisplay host)
r
- the resource to select in the interfacehost
- (optional) the host resource display on which you want
to select the Resourcepublic static void addCopyPastePopup(JTextComponent textComponent)
textComponent
- Add a context menu to this componentpublic static JButton addFrameTreeFinderButton(edu.stanford.smi.protege.ui.Finder finder, Action action)
public static JFileChooser createJFileChooser(String fileDescription, String suffix)
public static JComponent createHelpPanel(String text, String title)
public static JComponent createHelpPanel(String text, String title, int maxHeight)
public static JComponent createHelpPanel(String text, String title, int maxHeight, Icon icon)
public static JToolBar createToolBar()
public static Component findComponent(Container container, Class componentClass)
container
- the Container to start looking intocomponentClass
- the component class to look for
public static int getConfirmationThreshold(OWLModel owlModel)
public static String getOWLToolTipText(RDFSClass aClass)
public static String getOWLToolTipText(RDFResource res)
public static OWLToolTipGenerator getOWLToolTipGenerator()
public static edu.stanford.smi.protege.widget.SlotWidget getSiblingSlotWidget(Component widget, edu.stanford.smi.protege.model.Slot slot)
public static String getWidgetLabel(edu.stanford.smi.protege.model.Slot slot)
@Deprecated public static void handleError(Throwable t)
public static void handleError(OWLModel owlModel, Throwable t)
public static boolean isConfirmationNeeded(OWLModel owlModel)
@Deprecated public static boolean isConfirmed(edu.stanford.smi.protege.model.Project project, boolean value)
public static boolean isConfirmed(OWLModel owlModel, boolean value)
public static boolean isConstraintChecking(OWLModel owlModel)
public static boolean isDragAndDropSupported(OWLModel owlModel)
public static boolean isExternalResourcesSupported(OWLModel owlModel)
@Deprecated public static RDFSClass pickConcreteClass(OWLModel owlModel, String label)
@Deprecated public static RDFSClass pickConcreteClass(OWLModel owlModel, Collection allowedClasses)
@Deprecated public static RDFSClass pickConcreteClass(OWLModel owlModel, Collection allowedClasses, String label)
@Deprecated public static Collection pickRDFProperties(Collection properties, String title)
@Deprecated public static RDFProperty pickRDFProperty(Collection allowedProperties, String title)
@Deprecated public static RDFResource pickRDFResource(Collection allowedClasses)
@Deprecated public static Collection pickRDFResources(Collection allowedClasses)
@Deprecated public static Collection pickRDFResources(Collection allowedClasses, boolean allowsMultipleSelection)
@Deprecated public static RDFResource pickRDFResourceFromCollection(Collection allowedResources, String label)
@Deprecated public static RDFSNamedClass pickRDFSNamedClass(OWLModel owlModel, String label)
@Deprecated public static RDFSNamedClass pickRDFSNamedClass(OWLModel owlModel, Collection cs, String label)
@Deprecated public static Collection pickRDFSNamedClasses(OWLModel owlModel, String label)
@Deprecated public static OWLNamedClass pickOWLNamedClass(OWLModel owlModel, Collection classes, String label)
public static Component searchComponentOfType(Container c, Class type)
public static void setConstraintChecking(OWLModel owlModel, boolean value)
public static void setDragAndDropSupported(OWLModel owlModel, boolean value)
public static void setExternalResourcesSupported(OWLModel owlModel, boolean value)
public static void setOWLToolTipGenerator(OWLToolTipGenerator ttg)
@Deprecated public static void showErrorMessageDialog(String message)
@Deprecated public static void showErrorMessageDialog(Component parent, String message)
@Deprecated public static void showErrorMessageDialog(edu.stanford.smi.protege.model.Project project, String message)
@Deprecated public static void showErrorMessageDialog(OWLModel owlModel, String message)
@Deprecated public static void showErrorMessageDialog(String message, String title)
@Deprecated public static void showErrorMessageDialog(edu.stanford.smi.protege.model.Project project, String message, String title)
@Deprecated public static void showMessageDialog(String message)
@Deprecated public static void showMessageDialog(Component parent, String message)
@Deprecated public static void showMessageDialog(OWLModel owlModel, String message)
@Deprecated public static void showMessageDialog(edu.stanford.smi.protege.model.Project project, String message)
@Deprecated public static void showMessageDialog(String message, String title, int type)
@Deprecated public static void showMessageDialog(OWLModel owlModel, String message, String title, int type)
@Deprecated public static void showMessageDialog(edu.stanford.smi.protege.model.Project project, String message, String title, int type)
@Deprecated public static boolean showConfirmDialog(String message, String title)
@Deprecated public static boolean showConfirmDialog(edu.stanford.smi.protege.model.Project project, String message, String title)
public static boolean isUnsuitableTab(String className)
public static Collection getPathsToRoot(RDFResource resource)
resource
- - the resource
public static Collection getPathsToRoot(RDFResource resource, edu.stanford.smi.protege.model.Slot navigationSlot)
resource
- - the resourcenavigationSlot
- - the navigation slot (if null, the direct superclasses slot is used) *
public static Collection getPathsToRoot(RDFResource resource, edu.stanford.smi.protege.model.Slot navigationSlot, Class resourceClass)
resource
- - the resourcenavigationSlot
- - the navigation slot (if null, the direct superclasses slot is used)resourceClass
- - a filter for the returned paths - only elements of this type are returned in the path
public static boolean setSelectedNodeInTree(edu.stanford.smi.protege.util.SelectableTree tree, RDFResource resource)
tree
- - a SelectableTreeresource
- - the resources that will be selected
public static boolean setSelectedNodeInTree(edu.stanford.smi.protege.util.SelectableTree tree, RDFResource resource, edu.stanford.smi.protege.model.Slot navigationSlot)
tree
- - a SelectableTreeresource
- - the resources that will be selectednavigationSlot
- - the upwards navigation slot of the tree (if null, then the direct superclasses slot is used)
public static boolean setSelectedNodeInTree(edu.stanford.smi.protege.util.SelectableTree tree, RDFResource resource, edu.stanford.smi.protege.model.Slot navigationSlot, Class resourceClass)
tree
- - a SelectableTreeresource
- - the resources that will be selectednavigationSlot
- - the upwards navigation slot of the tree (if null, then the direct superclasses slot is used)resourceClass
- - a filter for the classes in the searched class path (if null, then the RDFResource.class is used)
public static TreePath getTreePath(JTree tree, Collection objectPath)
public static void fixBrowserSlotPatterns(edu.stanford.smi.protege.model.Project project)
public static OWLBrowserSlotPattern fixBrowserSlotPattern(edu.stanford.smi.protege.model.Project project, edu.stanford.smi.protege.model.Cls cls)
public static edu.stanford.smi.protege.model.Cls getOneNamedDirectTypeWithBrowserPattern(OWLIndividual instance)
public static boolean getSortClassTreeOption()
public static void setSortClassTreeOption(boolean classTreeSorted)
public static boolean getSortPropertiesTreeOption()
public static void setSortPropertiesTreeOption(boolean propertiesTreeSorted)
public static boolean getSortClassTreeAfterLoadOption()
public static void setSortClassTreeAfterLoadOption(boolean classTreeSortedAfterLoad)
|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |