|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| 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 |
|---|
void dispose()
void fill(Composite parent)
parent - the parent control
void fill(Menu parent,
int index)
parent - the parent menuindex - the index where the controls are inserted, or -1
to insert at the end
void fill(ToolBar parent,
int index)
parent - the parent tool barindex - the index where the controls are inserted, or -1
to insert at the end
void fill(CoolBar parent,
int index)
parent - the parent cool barindex - the index where the controls are inserted, or -1
to insert at the end
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.