swarm.gui
Interface WidgetC
- All Known Subinterfaces:
- ArchivedGeometryWidgetC, RasterC, ZoomRasterC
- public interface WidgetC
- extends CreateS, CreateC, DropS, DropC
Widget base class..
All graphical widgets inherit from the Widget base class. Widget defines most of the behaviour needed: Widgets are created by the user with a particular parent, and then "pack"ed in order to draw them on the screen. All widgets have three essential things: a widget name used when running Tcl code, an Objective C name when sending messages from Tcl to those objects, and a parent.
createParent
public Object createParent(Object parent)
- When a widget is created it needs to be given a parent. The parent widget will be the widget's containing window. If no parent is given (ie, a parent of nil), then a toplevel Frame will be allocated automatically
setParent
public Object setParent(Object parent)
- Set the containing window of the widget.
makeWidgetNameFor
public String makeWidgetNameFor(Object widget)
- Compute the widget name for a component widget.
setWidgetNameFromParent
public Object setWidgetNameFromParent(Object parent)
- Set the widget name using the parent as context.
setWidgetNameFromParentName
public Object setWidgetNameFromParentName(String parentWidgetName)
- Set the widget name using a hypothetical parent name.