class ScrollBarGuiButton extends GuiButton
Widget.ZOrderClass
Modifier and Type | Field and Description |
---|---|
private GuiColorResolver |
gc
Color resolver
|
private GuiDriver |
gd
The graphics driver.
|
private java.util.concurrent.ExecutorService |
mouseInputExecutor
Executor for handling mouse input.
|
(package private) ScrollBar<GuiOutputManager> |
owner
Scroll bar container
|
private ScrollBar.Position |
position
Button position
|
config, widgetFocused
insets, location, LOG, mousePtr, nativeInsets, physicalLocation
Constructor and Description |
---|
ScrollBarGuiButton(WidgetId id,
ScrollBar<GuiOutputManager> owner,
ScrollBar.Position position)
This constructor creates a scroll bar button.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy this widget.
|
void |
draw()
Draw this scroll bar button, depending on its type.
|
double |
height()
Calculate the height of this widget.
|
boolean |
isFocusable()
This widget can NOT receive focus.
|
boolean |
isRMBEntrySupported()
Check if this widget gains ENTRY event when right/middle mouse button is clicked.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Notification of a mouse pressed event occurred for this widget.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Notification of a mouse released event occurred for this widget.
|
boolean |
raiseLegacyMouseEvents()
Check if the widget implementation can raise legacy, 4GL-style, mouse events.
|
protected void |
refresh()
Refresh the scrollbar button not repainting full window.
|
protected void |
refreshImpl()
Refresh the scrollbar button not repainting full window.
|
double |
width()
Calculate the width of this widget.
|
isMouseOver, isPressed, mouseActions, mouseDragged, mouseEntered, mouseExited, mouseMoved
addListener, afterConfigUpdate, checkKey, config, getColon, getColumnLabelText, getCommand, getLabelInstance, getLabelText, getMnemonic, getTo, handleBasicEvents, initButtonText, initialize, isForceLabel, isMnemonicSupported, isNoLabels, isRightAligned, postprocessConfig, processEvent, processKeyEvent, requestFocus, setCommand, setHidden, setLabelInstance, setMnemonic, setNoLabels, setSupportsMnemonic, setText, setTextLabel, setVisible, setWasVisible, textLabel, wasVisible
dimension, forceCursorOnFocus, getDefaultEvent, handleCursorKeys, ignoreAction, manageSystemActions, minimumSize, onFocusGained, onFocusLost, onKeyPressed, onKeyTyped, processKeyEventCommon, setActionCode
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, findMouseSource, focusTraversable, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCustomMousePointer, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, insets, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isHeader, isRealized, isTabStop, isThreeD, isTotallyObscured, isVisible, location, mouseClicked, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, prepParentLocation, processDirectManipulationEvent, processFocusEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, refresh, registerWidgetStateListener, repaint, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, unrealize, updateSizeWorker, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, defaultMousePtr, dimension, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, insets, isDirectManipulable, isDisplayed, isEnabled, isHeader, isRealized, isTabStop, isThreeD, isTotallyObscured, isVisible, location, minimumSize, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, processDirectManipulationEvent, processFocusEvent, processKeyListeners, processMnemonic, repaint, repaint, requestSync, resizeTo, screen, screenLocation, screenPhysicalLocation, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, supportsCustomMousePointer, topLevelWindow, unrealize, window
createMnemonic, getColumnMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, setColumnMnemonic, updateMnemonic
ScrollBar<GuiOutputManager> owner
private GuiDriver gd
private GuiColorResolver gc
private ScrollBar.Position position
private java.util.concurrent.ExecutorService mouseInputExecutor
ScrollBarGuiButton(WidgetId id, ScrollBar<GuiOutputManager> owner, ScrollBar.Position position)
id
- The widget's ID.owner
- The parent container.position
- Button position within scroll bar.public double width()
width
in interface Widget<GuiOutputManager>
width
in class Button<GuiOutputManager>
public double height()
height
in interface Widget<GuiOutputManager>
height
in class Button<GuiOutputManager>
public void draw()
draw
in interface Widget<GuiOutputManager>
draw
in class AbstractButton<GuiOutputManager,ButtonConfig>
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class GuiButton
e
- The mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class GuiButton
e
- The mouse event.public boolean raiseLegacyMouseEvents()
raiseLegacyMouseEvents
in interface Widget<GuiOutputManager>
raiseLegacyMouseEvents
in class AbstractWidget<GuiOutputManager>
false
.public boolean isRMBEntrySupported()
isRMBEntrySupported
in interface Widget<GuiOutputManager>
isRMBEntrySupported
in class AbstractWidget<GuiOutputManager>
true
if this widget gains ENTRY event
when right/middle mouse button is clicked.public void destroy()
destroy
in interface Widget<GuiOutputManager>
destroy
in class Button<GuiOutputManager>
protected void refresh()
refresh
in class AbstractButton<GuiOutputManager,ButtonConfig>
protected void refreshImpl()
public boolean isFocusable()
isFocusable
in interface Widget<GuiOutputManager>
isFocusable
in class AbstractWidget<GuiOutputManager>
false
.