Package org.eclipse.jface.menus
Class AbstractTrimWidget
java.lang.Object
org.eclipse.jface.menus.AbstractTrimWidget
- All Implemented Interfaces:
- IWidget
- Direct Known Subclasses:
- AbstractWorkbenchTrimWidget
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.
- Since:
- 3.2
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voiddispose()Disposes of the underlying widgets.voidFills the given composite control with controls representing this widget.abstract voidThis 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.voidFills the given cool bar with controls representing this contribution item.voidFills the given menu with controls representing this widget.voidFills the given tool bar with controls representing this contribution item.
- 
Constructor Details- 
AbstractTrimWidgetpublic AbstractTrimWidget()
 
- 
- 
Method Details- 
fillThis 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. It is the client's responsibility to control the life-cycle of the Control it manages.For example: If the implementation is constructing a ToolBarand the orientation were to change from horizontal to vertical it would have todisposeits old ToolBar and create a new one with the correct orientation.The sides can be one of: - Parameters:
- parent- The parent to (re)create the widget under
- oldSide- The previous side (- SWT.DEFAULTon the initial fill)
- newSide- The current side
 
- 
disposepublic abstract void dispose()Description copied from interface:IWidgetDisposes of the underlying widgets. This can be called when the widget is becoming hidden.
- 
fillDescription copied from interface:IWidgetFills the given composite control with controls representing this widget.
- 
fillDescription copied from interface:IWidgetFills the given menu with controls representing this widget.
- 
fillDescription copied from interface:IWidgetFills the given tool bar with controls representing this contribution item.
- 
fillDescription copied from interface:IWidgetFills the given cool bar with controls representing this contribution item.
 
-