edu.stanford.smi.protege.model
Class WidgetDescriptor
java.lang.Object
edu.stanford.smi.protege.model.WidgetDescriptor
- All Implemented Interfaces:
- Cloneable
public class WidgetDescriptor
- extends Object
- implements Cloneable
Essentially a serialization of a widget. Objects of this class contain location and size information and other
configuration information for a widget. Actual widgets (the things on the screen) can be created from these objects.
- Author:
- Ray Fergerson
clone
public Object clone()
- Overrides:
clone
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isActiveWidget
public static boolean isActiveWidget(Instance instance)
create
public static WidgetDescriptor create(Instance instance)
create
public static WidgetDescriptor create(KnowledgeBase projectKB)
getBounds
public Rectangle getBounds()
getInstance
public Instance getInstance()
getLabel
public String getLabel()
getLocation
public Point getLocation()
getName
public String getName()
getPropertyList
public PropertyList getPropertyList()
getWidgetClassName
public String getWidgetClassName()
isDirectlyCustomizedByUser
public boolean isDirectlyCustomizedByUser()
isIncluded
public boolean isIncluded()
isNull
public boolean isNull()
isTemporary
public boolean isTemporary()
isVisible
public boolean isVisible()
setBounds
public void setBounds(Rectangle r)
setDirectlyCustomizedByUser
public void setDirectlyCustomizedByUser(boolean b)
setIncluded
public void setIncluded(boolean b)
setLabel
public void setLabel(String label)
setName
public void setName(String name)
setPropertyList
public void setPropertyList(PropertyList list)
setTemporary
public void setTemporary(boolean b)
setVisible
public void setVisible(boolean b)
setWidgetClassName
public void setWidgetClassName(String name)
toString
public String toString()
- Overrides:
toString
in class Object
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2007 Stanford University.