public class ProgressBarGuiImpl extends AbstractWidget<GuiOutputManager> implements ProgressBarGui
| Modifier and Type | Field and Description |
|---|---|
private ProgressBarConfig |
config
Associated config instance
|
private GuiColorResolver |
gc
Color resolver
|
private GuiDriver |
gd
Screen driver
|
private GuiFontResolver |
gf
Font resolver
|
private WidgetId |
id
Widget ID
|
private GuiOutputManager |
screen
Output manager.
|
insets, listeners, location, LOG, mousePtr, nativeInsets, physicalLocationCC_3D, CC_FIXED_SINGLE, CC_FLAT, CC_NONE, CC_ORIENTATION_HORIZONTAL, CC_ORIENTATION_VERTICAL, CC_SCROLLING_SMOOTH, CC_SCROLLING_STANDARD| Constructor and Description |
|---|
ProgressBarGuiImpl(WidgetId id,
ProgressBarConfig cfg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterConfigUpdate(ProgressBarConfig beforeUpdate)
Before update handler.
|
ProgressBarConfig |
config()
Get externalizable widget config which can be used to restore widget
state after via network.
|
Dimension |
dimension()
Get widget dimension.
|
void |
draw()
Draw the widget.
|
WidgetId |
getId()
Widget ID.
|
double |
height()
Get widget height.
|
void |
initialize(WidgetId id,
ProgressBarConfig cfg)
Replacement API for the logic which should exist in the widget's c'tor, but the logic
can't be executed as it depends on the widget being registered into the official registry.
|
Dimension |
minimumSize()
Get widget minimum size.
|
protected int[] |
mouseActions()
Determine the mouse actions processed by this widget.
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Notification of a mouse clicked event occurred for this widget.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Notification of a mouse dragged event occurred for this widget.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Notification of a mouse entered event occurred for this widget.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Notification of a mouse exited event occurred for this widget.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Notification of a mouse moved event occurred for this 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.
|
protected void |
oleDoDrop(java.awt.event.MouseEvent e)
Called when an automatic Drop operation is ended.
|
void |
refreshWidget()
Refresh widget.
|
private void |
setMouseCursor(int mousePointer)
Set mouse pointer for this widget when the mouse cursor is over widget.
|
boolean |
supportsCustomMousePointer()
Check if the widget supports custom mouse pointer.
|
double |
width()
Calculate the width of this widget.
|
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, copyState, createMouseHoverAction, deactivateDirectManipulation, debug, destroy, disable, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hasTooltip, hidden, hide, highlighted, ignoreAction, initialHeight, initialWidth, insets, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, 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, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalDimensionInt, setPhysicalLocation, setSensitiveForUIB, setState, setVisible, setWindow, show, showPopupMenu, sync, topLevelWindow, toString, translate, triggerLocationChanged, unrealize, unregisterWidgetListener, updateSizeWorker, updateSystemParent, widgetRealized, widgetStateChanged, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitis3D, isFixedSingle, isHorizontal, isOLEDropModeNone, isScrolingSmooth, max, min, valueacceptsEscAsAnyKey, acceptTrigger, canMovetoTop, completeTrigger, defaultMousePtr, enforceDefaultMousePtr, getIdForTrigger, getLegacyWidget, getTriggerWidget, getTriggerWidget, hasFocus, ignoreEnable, isCurrent, isDirectManipulable, isDroppable, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, maySwitchFocus, parent, requestFocus, requestFocus, startTrigger, systemFocusGrabbed, validateDisplayValueprivate WidgetId id
private ProgressBarConfig config
private GuiDriver gd
private GuiFontResolver gf
private GuiColorResolver gc
private GuiOutputManager screen
public ProgressBarGuiImpl(WidgetId id, ProgressBarConfig cfg)
id - Widget id.cfg - Config instance.public void initialize(WidgetId id, ProgressBarConfig cfg)
This API is called after the widget is created and added to the registry.
initialize in interface WidgetWithConfig<ProgressBarConfig>id - The widget's ID.cfg - Config instance.public WidgetId getId()
getId in interface Widget<GuiOutputManager>getId in class AbstractWidget<GuiOutputManager>public ProgressBarConfig config()
Note that only very limited set of widgets actually have config. By default widget has no config.
config in interface Widget<GuiOutputManager>config in interface ConfigOwner<ProgressBarConfig>config in class AbstractWidget<GuiOutputManager>public void draw()
draw in interface Widget<GuiOutputManager>draw in class AbstractWidget<GuiOutputManager>public double height()
height in interface Widget<GuiOutputManager>height in class AbstractWidget<GuiOutputManager>public Dimension minimumSize()
minimumSize in interface Widget<GuiOutputManager>minimumSize in class AbstractWidget<GuiOutputManager>public double width()
width in interface Widget<GuiOutputManager>width in class AbstractWidget<GuiOutputManager>public Dimension dimension()
dimension in interface Widget<GuiOutputManager>dimension in class AbstractWidget<GuiOutputManager>public void afterConfigUpdate(ProgressBarConfig beforeUpdate)
afterConfigUpdate in interface ConfigOwner<ProgressBarConfig>beforeUpdate - Configuration before updatepublic void refreshWidget()
refreshWidget in interface Widget<GuiOutputManager>protected int[] mouseActions()
mouseActions in class AbstractWidget<GuiOutputManager>public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class AbstractWidget<GuiOutputManager>e - The mouse event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenermouseEntered in class AbstractWidget<GuiOutputManager>e - The mouse event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenermouseExited in class AbstractWidget<GuiOutputManager>e - The mouse event.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class AbstractWidget<GuiOutputManager>e - The mouse event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class AbstractWidget<GuiOutputManager>e - The mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class AbstractWidget<GuiOutputManager>e - The mouse event.public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class AbstractWidget<GuiOutputManager>e - The mouse event.public boolean supportsCustomMousePointer()
supportsCustomMousePointer in interface Widget<GuiOutputManager>supportsCustomMousePointer in class AbstractWidget<GuiOutputManager>true if the widget supports
custom mouse pointer.private void setMouseCursor(int mousePointer)
mousePointer - mouse pointer valueprotected void oleDoDrop(java.awt.event.MouseEvent e)
oleDoDrop in class AbstractWidget<GuiOutputManager>e - The mouse event.