Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.menus
Interface IWidget

All Known Subinterfaces:
IWorkbenchWidget
All Known Implementing Classes:
AbstractTrimWidget, AbstractWorkbenchTrimWidget

public interface IWidget

Provides a hook by which third-party code can contribute SWT widgets to a menu, tool bar or status line. This can be used, for example, to add a combo box to the status line, or a "Location" bar to the tool bar.

It is possible for fill and dispose to be called multiple times for a single instance of IWidget.

Clients may implement, but must not extend.

Since:
3.2

Method Summary
 void dispose ()
          Disposes of the underlying widgets.
 void fill ( Composite parent)
          Fills the given composite control with controls representing this widget.
 void fill ( CoolBar parent, int index)
          Fills the given cool bar with controls representing this contribution item.
 void fill ( Menu parent, int index)
          Fills the given menu with controls representing this widget.
 void fill ( ToolBar parent, int index)
          Fills the given tool bar with controls representing this contribution item.
 

Method Detail

dispose

void dispose()
Disposes of the underlying widgets. This can be called when the widget is becoming hidden.


fill

void fill(
Composite parent)
Fills the given composite control with controls representing this widget.

Parameters:
parent - the parent control

fill

void fill(
Menu parent,
          int index)
Fills the given menu with controls representing this widget.

Parameters:
parent - the parent menu
index - the index where the controls are inserted, or -1 to insert at the end

fill

void fill(
ToolBar parent,
          int index)
Fills the given tool bar with controls representing this contribution item.

Parameters:
parent - the parent tool bar
index - the index where the controls are inserted, or -1 to insert at the end

fill

void fill(
CoolBar parent,
          int index)
Fills the given cool bar with controls representing this contribution item.

Parameters:
parent - the parent cool bar
index - the index where the controls are inserted, or -1 to insert at the end

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire