public class VButton extends VControl
VControl.Type
Modifier and Type | Field and Description |
---|---|
(package private) org.eclipse.swt.graphics.ImageData |
oldImageData |
(package private) boolean |
paintInactive |
(package private) boolean |
paintNative |
background, bounds, carbon, composite, customToolTip, dataMap, disposed, fill, font, foreground, gtk, image, layoutData, listeners, marginBottom, marginLeft, marginRight, marginTop, menu, painter, parent, points, scaleImage, square, STATE_ACTIVE, STATE_ENABLED, STATE_MOUSE_DOWN, STATE_SELECTED, svg, text, tooltipText, visibility, win32, xAlign, yAlign
Modifier and Type | Method and Description |
---|---|
protected void |
filterEvent(org.eclipse.swt.widgets.Event event) |
boolean |
getNativeBackground() |
boolean |
getSelection() |
VControl.Type |
getType() |
void |
setPaintInactive(boolean paintInactive) |
void |
setPaintNative(boolean paintNative)
Setting this value currently does nothing but subclasses can take
advantage of this flag.
|
void |
setSelection(boolean select)
Marks this button as being "selected" by the user.
|
activate, addListener, addListener, attachListeners, computeSize, computeSize, containsControl, createMenu, deactivate, detachListeners, dispose, getBackground, getBounds, getClientArea, getClientSize, getComposite, getControl, getData, getData, getData, getData, getDisplay, getEnabled, getFont, getForeground, getImage, getLayoutData, getListeners, getLocation, getMargins, getMenu, getParent, getShell, getSize, getState, getStyle, getText, getToolTipText, getVisibility, getVisible, getWidget, handleEvent, hasState, hasStyle, isActivatable, isDisposed, isEnabled, isSameWidgetAs, isSameWidgetAs, isSquare, isVisible, moveAbove, moveBelow, notifyListeners, notifyListeners, paintControl, redraw, redrawOnActivate, redrawOnDeactivate, removeListener, removeListener, setActivatable, setActiveCursor, setAlignment, setAlpha, setAlpha, setBackground, setBounds, setBounds, setCursor, setData, setData, setEnabled, setFill, setFocus, setFocus, setFont, setForeground, setImage, setImage, setInactiveCursor, setLayoutData, setLocation, setLocation, setMargins, setMargins, setMargins, setOval, setOval, setPainter, setParent, setPolygon, setPolygon, setScaleImage, setSize, setSquare, setState, setStyle, setStyle, setText, setToolTipText, setVisibility, setVisible, setVisible, setVisible, toControl, toControl, toDisplay, toDisplay, toString, update
org.eclipse.swt.graphics.ImageData oldImageData
boolean paintNative
boolean paintInactive
public VButton(VPanel panel, int style)
public boolean getNativeBackground()
setPaintNative(boolean)
public boolean getSelection()
public VControl.Type getType()
protected void filterEvent(org.eclipse.swt.widgets.Event event)
filterEvent
in class VControl
public void setPaintInactive(boolean paintInactive)
paintInactive
- true to paint the button in an inactive state.public void setPaintNative(boolean paintNative)
paintNative
- true to paint nativepublic void setSelection(boolean select)
select
- true to make the button "selected".