org.topbraidcomposer.ui.util
Class PullDownMenu

java.lang.Object
  extended by org.topbraidcomposer.ui.util.PullDownMenu

public abstract class PullDownMenu
extends java.lang.Object

A utility that adds a downward pointing arrow to the end of a ToolBar, and on mouse down displays a popup menu below it.

Author:
Holger Knublauch

Field Summary
static int HEIGHT
           
static int WIDTH
           
 
Constructor Summary
PullDownMenu(org.eclipse.swt.widgets.Composite parent)
           
 
Method Summary
protected abstract  void addMenuItems(org.eclipse.jface.action.IMenuManager menuManager)
           
 void dispose()
           
 org.eclipse.swt.widgets.Control getControl()
           
protected  org.eclipse.swt.graphics.Image getImage()
           
protected  void handleMenuHidden()
           
protected  boolean isEnabled()
           
protected  void openContextMenu()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIDTH

public static final int WIDTH
See Also:
Constant Field Values

HEIGHT

public static final int HEIGHT
See Also:
Constant Field Values
Constructor Detail

PullDownMenu

public PullDownMenu(org.eclipse.swt.widgets.Composite parent)
Method Detail

addMenuItems

protected abstract void addMenuItems(org.eclipse.jface.action.IMenuManager menuManager)

dispose

public void dispose()

getControl

public org.eclipse.swt.widgets.Control getControl()

getImage

protected org.eclipse.swt.graphics.Image getImage()

handleMenuHidden

protected void handleMenuHidden()

isEnabled

protected boolean isEnabled()

openContextMenu

protected void openContextMenu()