edu.stanford.smi.protege.util
Class PropertyList
java.lang.Object
edu.stanford.smi.protege.util.PropertyList
- public class PropertyList
- extends Object
A property list used by widgets. This is a wrapper around a Project knowledge
base instance. I probably should have just used a java.util.Properties class
but I wanted to provide methods for working with types of objects (e.g.
Rectangles) other than strings. Also the Properties class inheritance is
messed up and provides a bunch of dangerous methods.
- Author:
- Ray Fergerson
CLASS_PROPERTY_LIST
public static final String CLASS_PROPERTY_LIST
- See Also:
- Constant Field Values
PropertyList
public PropertyList(Instance instance)
clear
public void clear()
clone
public Object clone()
create
public static PropertyList create(KnowledgeBase kb)
createWidgetDescriptor
public WidgetDescriptor createWidgetDescriptor(String name)
getBoolean
public Boolean getBoolean(String name)
getDimension
public Dimension getDimension(String name)
getInteger
public Integer getInteger(String name)
getKnowledgeBase
public KnowledgeBase getKnowledgeBase()
getNames
public Collection getNames()
getLiveWidgetDescriptors
public Collection getLiveWidgetDescriptors()
getPropertyList
public PropertyList getPropertyList(String name)
getRectangle
public Rectangle getRectangle(String name)
getString
public String getString(String name)
getWidgetDescriptor
public WidgetDescriptor getWidgetDescriptor(String name)
getWrappedInstance
public Instance getWrappedInstance()
remove
public void remove(String name)
setBoolean
public void setBoolean(String name,
Boolean b)
setBoolean
public void setBoolean(String name,
boolean b)
setInteger
public void setInteger(String name,
int i)
setInteger
public void setInteger(String name,
Integer i)
setRectangle
public void setRectangle(String name,
Rectangle r)
setString
public void setString(String name,
String value)
setWidgetDescriptor
public void setWidgetDescriptor(WidgetDescriptor d)
toString
public String toString()
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2005 Stanford University.