Saros
Distributed Collaborative Editing and Distributed Party Programming
com.novocode.naf.swt.custom.BalloonWindow Class Reference

List of all members.

Public Member Functions

 BalloonWindow (Shell parent, int style)
 BalloonWindow (Display display, int style)
void addSelectionControl (Control c)
void addListener (int type, Listener l)
void setAnchor (int anchor)
void setAutoAnchor (boolean autoAnchor)
void setLocation (int x, int y)
void setLocation (Point p)
void setText (String title)
void setImage (Image image)
void setMargins (int marginLeft, int marginRight, int marginTop, int marginBottom)
void setMargins (int marginX, int marginY)
void setMargins (int margin)
void setTitleSpacing (int titleSpacing)
void setTitleWidgetSpacing (int titleImageSpacing)
Shell getShell ()
Composite getContents ()
void prepareForOpen ()
void open ()
void close ()
void setVisible (boolean visible)

Package Attributes

int locY = Integer.MIN_VALUE
int marginRight = 12
int marginTop = 5
int marginBottom = 10
int titleWidgetSpacing = 8

Detailed Description

A Shell wrapper which creates balloon popup windows.

By default, a balloon window has no title bar or system controls. The following styles are supported:

  • SWT.ON_TOP - Keep the window on top of other windows
  • SWT.TOOL - Add a drop shadow to the window (on supported platforms)
  • SWT.CLOSE - Show a "close" control on the title bar (implies SWT.TITLE)
  • SWT.TITLE - Show a title bar
Author:
Stefan Zeiger (szeiger@novocode.com)
Since:
Jul 2, 2004
Version:
Id:
BalloonWindow.java,v 1.4 2005/06/25 19:01:18 szeiger Exp

Constructor & Destructor Documentation

com.novocode.naf.swt.custom.BalloonWindow.BalloonWindow ( Shell  parent,
int  style 
)
com.novocode.naf.swt.custom.BalloonWindow.BalloonWindow ( Display  display,
int  style 
)

Member Function Documentation

void com.novocode.naf.swt.custom.BalloonWindow.addListener ( int  type,
Listener  l 
)
void com.novocode.naf.swt.custom.BalloonWindow.addSelectionControl ( Control  c)

Adds a control to the list of controls which close the balloon window. The background, title image and title text are included by default.

void com.novocode.naf.swt.custom.BalloonWindow.close ( )
Composite com.novocode.naf.swt.custom.BalloonWindow.getContents ( )
Shell com.novocode.naf.swt.custom.BalloonWindow.getShell ( )
void com.novocode.naf.swt.custom.BalloonWindow.open ( )
void com.novocode.naf.swt.custom.BalloonWindow.prepareForOpen ( )
void com.novocode.naf.swt.custom.BalloonWindow.setAnchor ( int  anchor)

Set the location of the anchor. This must be one of the following values: SWT.NONE, SWT.LEFT|SWT.TOP, SWT.RIGHT|SWT.TOP, SWT.LEFT|SWT.BOTTOM, SWT.RIGHT|SWT.BOTTOM

void com.novocode.naf.swt.custom.BalloonWindow.setAutoAnchor ( boolean  autoAnchor)
void com.novocode.naf.swt.custom.BalloonWindow.setImage ( Image  image)
void com.novocode.naf.swt.custom.BalloonWindow.setLocation ( int  x,
int  y 
)
void com.novocode.naf.swt.custom.BalloonWindow.setLocation ( Point  p)
void com.novocode.naf.swt.custom.BalloonWindow.setMargins ( int  marginLeft,
int  marginRight,
int  marginTop,
int  marginBottom 
)
void com.novocode.naf.swt.custom.BalloonWindow.setMargins ( int  marginX,
int  marginY 
)
void com.novocode.naf.swt.custom.BalloonWindow.setMargins ( int  margin)
void com.novocode.naf.swt.custom.BalloonWindow.setText ( String  title)
void com.novocode.naf.swt.custom.BalloonWindow.setTitleSpacing ( int  titleSpacing)
void com.novocode.naf.swt.custom.BalloonWindow.setTitleWidgetSpacing ( int  titleImageSpacing)
void com.novocode.naf.swt.custom.BalloonWindow.setVisible ( boolean  visible)

Member Data Documentation

int com.novocode.naf.swt.custom.BalloonWindow.locY = Integer.MIN_VALUE [package]
 All Classes Namespaces Files Functions Variables Enumerations