swarm.gui
Interface Widget

All Known Subinterfaces:
ArchivedGeometryWidget, Raster, ZoomRaster

public interface Widget
extends CreateS, Create, DropS, Drop

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 disableDestroyNotification()
          Prevent calling the destroy notification method.
 void drop()
           
 Object enableDestroyNotification$notificationMethod(Object notificationTarget, Selector destroyNotificationMethod)
          Call a method if we are destroyed.
 boolean getDestroyedFlag()
           
 int getHeight()
          Get the height of the widget.
 Object getParent()
          Get the containing window of the widget.
 Object getTopLevel()
          Get top level frame
 String getWidgetName()
          Get the widget name.
 int getWidth()
          Get the widget the widget.
 String getWindowGeometry()
           
 int getX()
          Get the X position of the widget.
 int getY()
          Get the Y position of the widget.
 Object pack()
          Roughly, packing a widget makes it draw on the screen.
 Object packBeforeAndFillLeft$expand(Object widget, boolean expandFlag)
           
 Object packFill()
           
 Object packFillLeft(boolean expandFlag)
           
 Object packForgetAndExpand()
           
 Object packToRight(Object widget)
           
 Object setActiveFlag(boolean activeFlag)
          Enable or disable the widget.
 Object setHeight(int height)
          Set the height of the widget.
 Object setWidth(int width)
          Set the width of the widget.
 Object setWidth$Height(int width, int height)
          Set the width and height of the widget.
 Object setWindowGeometry(String s)
           
 Object setWindowTitle(String title)
          Set the title on the widget.
 Object setX$Y(int x, int y)
          Set the position of the widget.
 
Methods inherited from interface swarm.defobj.DefinedObject
compare, describe, describeID, getDisplayName, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid
 

Method Detail

pack

public Object pack()
Roughly, packing a widget makes it draw on the screen. The Tk packer allows complicated options to control widget layout. See documentation on Tk to learn more about packing details.

packFill

public Object packFill()

packBeforeAndFillLeft$expand

public Object packBeforeAndFillLeft$expand(Object widget,
                                           boolean expandFlag)

packFillLeft

public Object packFillLeft(boolean expandFlag)

packToRight

public Object packToRight(Object widget)

packForgetAndExpand

public Object packForgetAndExpand()

setActiveFlag

public Object setActiveFlag(boolean activeFlag)
Enable or disable the widget.

setWidth

public Object setWidth(int width)
Set the width of the widget.

setHeight

public Object setHeight(int height)
Set the height of the widget.

setWidth$Height

public Object setWidth$Height(int width,
                              int height)
Set the width and height of the widget.

setX$Y

public Object setX$Y(int x,
                     int y)
Set the position of the widget.

setWindowTitle

public Object setWindowTitle(String title)
Set the title on the widget.

getParent

public Object getParent()
Get the containing window of the widget.

getTopLevel

public Object getTopLevel()
Get top level frame

getWidgetName

public String getWidgetName()
Get the widget name.

getHeight

public int getHeight()
Get the height of the widget.

getWidth

public int getWidth()
Get the widget the widget.

getX

public int getX()
Get the X position of the widget.

getY

public int getY()
Get the Y position of the widget.

getWindowGeometry

public String getWindowGeometry()

setWindowGeometry

public Object setWindowGeometry(String s)

enableDestroyNotification$notificationMethod

public Object enableDestroyNotification$notificationMethod(Object notificationTarget,
                                                           Selector destroyNotificationMethod)
Call a method if we are destroyed.

disableDestroyNotification

public Object disableDestroyNotification()
Prevent calling the destroy notification method.

getDestroyedFlag

public boolean getDestroyedFlag()

drop

public void drop()
Specified by:
drop in interface Drop