public class LabelDirectionButtons extends AbstractButtonArea
MARGIN, section
Constructor and Description |
---|
LabelDirectionButtons(org.eclipse.swt.widgets.Composite parent,
LabelPartSectionsEnum section,
LabelButtonListener listener)
Creates a new button area on the composite.
|
Modifier and Type | Method and Description |
---|---|
protected void |
drawButtons(org.eclipse.swt.widgets.Composite composite)
draws the button area and assign the corresponding
LabelPartButtonsEnum to each of them |
addListener, getSection, notifyListeners, removeListener, widgetDefaultSelected, widgetSelected
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public LabelDirectionButtons(org.eclipse.swt.widgets.Composite parent, LabelPartSectionsEnum section, LabelButtonListener listener)
parent
- the parent compositesection
- the section to which this area applies to. is of type
LabelPartSectionsEnum
listener
- the LabelButtonListener
to inform in case a button has
been clickedprotected final void drawButtons(org.eclipse.swt.widgets.Composite composite)
AbstractButtonArea
LabelPartButtonsEnum
to each of themdrawButtons
in class AbstractButtonArea
composite
- in which the button need to be drawnAbstractButtonArea.drawButtons(Composite)