public class ScrollBarGuiButton extends GuiButton
| Modifier and Type | Field and Description |
|---|---|
private GuiColorResolver |
gc
Color resolver
|
private GuiDriver |
gd
The graphics driver.
|
(package private) ScrollBar<GuiOutputManager> |
owner
Scroll bar container
|
private ScrollBar.Position |
position
Button position
|
private ScrollbarExecutor |
scrollbarExecutor
Executor for handling mouse input.
|
config, widgetFocusedinsets, 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.
|
ScrollBar<?> |
getDirectOwner()
Gets the direct owner of this scrollbar button.
|
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.
|
boolean |
maySwitchFocus()
Some widgets (like scroll bars) react on user input (like mouse click), but don't steal focus from
currently focused widget.
|
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, mouseMovedaddListener, 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, wasVisibledimension, 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, copyColors, copyState, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, findMouseSource, focusTraversable, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hasTooltip, hidden, hide, highlighted, initialHeight, initialWidth, insets, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, mouseClicked, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, oleDoDrop, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, prepParentLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processFocusEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, reflectAncestorChange, reflectLocationChanged, reflectSizeChanged, refresh, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setDirectManipulationActive, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalDimensionInt, setPhysicalLocation, setSensitiveForUIB, setState, setWindow, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, triggerLocationChanged, unrealize, unregisterWidgetListener, updateSizeWorker, updateSystemParent, widgetRealized, widgetStateChanged, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, completeTrigger, defaultMousePtr, dimension, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getIdForTrigger, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, hasTooltip, hidden, hide, highlighted, ignoreEnable, initialHeight, initialWidth, insets, isCurrent, isCurrent, isDirectManipulable, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDisplayed, isDroppable, isEnabled, isHeader, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, isRealized, isRepaintDisabled, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, minimumSize, moveToBottom, moveToTop, name, navigable, oleDrag, parent, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processFocusEvent, processKeyListeners, processMnemonic, refreshWidget, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setDirectManipulationActive, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setWindow, show, startTrigger, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unrealize, unregisterWidgetListener, validateDisplayValue, widgetStateChanged, windowcreateMnemonic, getColumnMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, setColumnMnemonic, updateMnemonicScrollBar<GuiOutputManager> owner
private GuiDriver gd
private GuiColorResolver gc
private ScrollBar.Position position
private final ScrollbarExecutor scrollbarExecutor
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.MouseListenermousePressed in class GuiButtone - The mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class GuiButtone - 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>public ScrollBar<?> getDirectOwner()
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.public boolean maySwitchFocus()
Scroll bar is sensitive to user input, but never switches focus.
true if the widget may steal focus from currently focused widget,
false otherwise.