|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.menus.AbstractTrimWidget
This extension to the IWidget
interface allows clients adding
elements to the trim to receive notifications if the User moves the widget to
another trim area.
This class is intended to be the base for any trim contributions.
Constructor Summary | |
---|---|
AbstractTrimWidget()
|
Method Summary | |
---|---|
abstract void |
dispose()
Disposes of the underlying widgets. |
void |
fill(Composite parent)
Fills the given composite control with controls representing this widget. |
abstract void |
fill(Composite parent,
int oldSide,
int newSide)
This method is called to initially construct the widget and is also called whenever the widget's composite has been moved to a trim area on a different side of the workbench. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractTrimWidget()
Method Detail |
public abstract void fill(Composite parent, int oldSide, int newSide)
For example: If the implementation is constructing a ToolBar
and
the orientation were to change from horizontal to vertical it would have
to dispose
its old ToolBar and create a new one with the
correct orientation.
The sides can be one of:
parent
- The parent to (re)create the widget underoldSide
- The previous side (SWT.DEFAULT
on the initial fill)newSide
- The current sidepublic abstract void dispose()
IWidget
dispose
in interface IWidget
public void fill(Composite parent)
IWidget
fill
in interface IWidget
parent
- the parent controlpublic void fill(Menu parent, int index)
IWidget
fill
in interface IWidget
parent
- the parent menuindex
- the index where the controls are inserted, or -1
to insert at the endpublic void fill(ToolBar parent, int index)
IWidget
fill
in interface IWidget
parent
- the parent tool barindex
- the index where the controls are inserted, or -1
to insert at the endpublic void fill(CoolBar parent, int index)
IWidget
fill
in interface IWidget
parent
- the parent cool barindex
- the index where the controls are inserted, or -1
to insert at the end
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.