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.


Method Summary
 Object createEnd()
           
 String makeWidgetNameFor(Object widget)
          Compute the widget name for a component widget.
 Object setParent(Object parent)
          Set the containing window of the widget.
 Object setWidgetNameFromParent(Object parent)
          Set the widget name using the parent as context.
 Object setWidgetNameFromParentName(String parentWidgetName)
          Set the widget name using a hypothetical parent name.
 

Method Detail

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.

createEnd

public Object createEnd()
Specified by:
createEnd in interface CreateC