|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public Object pack()
public Object packFill()
public Object packBeforeAndFillLeft$expand(Object widget, boolean expandFlag)
public Object packFillLeft(boolean expandFlag)
public Object packToRight(Object widget)
public Object packForgetAndExpand()
public Object setActiveFlag(boolean activeFlag)
public Object setWidth(int width)
public Object setHeight(int height)
public Object setWidth$Height(int width, int height)
public Object setX$Y(int x, int y)
public Object setWindowTitle(String title)
public Object getParent()
public Object getTopLevel()
public String getWidgetName()
public int getHeight()
public int getWidth()
public int getX()
public int getY()
public String getWindowGeometry()
public Object setWindowGeometry(String s)
public Object enableDestroyNotification$notificationMethod(Object notificationTarget, Selector destroyNotificationMethod)
public Object disableDestroyNotification()
public boolean getDestroyedFlag()
public void drop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |