public class CalendarGuiImpl.DateTimeContent extends AbstractWidget<GuiOutputManager> implements ScrollableWidget<GuiOutputManager>
Modifier and Type | Field and Description |
---|---|
private int |
heightInPixels
The height of this widget given in pixel units
|
private int |
widthInPixels
The width of this widget given in pixel units
|
private int |
xOffset
The horizontal offset of the date/time content from the left side
|
insets, location, LOG, mousePtr, nativeInsets, physicalLocation
Constructor and Description |
---|
DateTimeContent() |
Modifier and Type | Method and Description |
---|---|
Dimension |
dimension()
Calculates the size of this widget in character units.
|
void |
draw()
Implements the main method for drawing this widget.
|
LightweightTextWidget.TextLineSelection |
getFieldSelection(java.lang.String txt,
boolean select)
Gets the field selection for the given displayed date and time value.
|
NativeDimension |
getScrollDimension()
Calculates the scroll size of this widget given in pixel units.
|
NativeDimension |
getScrollStep()
Returns the minimum scroll step.
|
NativeDimension |
getVisibleDimension()
Returns the visible size of this widget in pixel units.
|
double |
height()
Returns the height of this widget.
|
boolean |
isScrollPopupSupported()
Tests if this widget supports a scroll popup.
|
Dimension |
minimumSize()
Returns the minimum size of this widget.
|
void |
scroll(java.lang.Integer newXPosition,
java.lang.Integer newYPosition)
Scrolls the widget's content according to the given physical translation.
|
void |
updateSize(Window window,
int font)
Updates the size of this widget according to the given font.
|
double |
width()
Returns the width of this widget.
|
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, config, 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, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, ignoreAction, initialHeight, initialWidth, insets, isCurrent, isDirectManipulationActive, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, oleDoDrop, 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, reflectLocationChange, refresh, registerWidgetStateListener, repaint, repaint, repaint, requestFocus, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, unrealize, unregisterWidgetStateListener, updateSizeWorker, widgetStateChanged, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, config, defaultMousePtr, destroy, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, hidden, hide, highlighted, ignoreEnable, initialHeight, initialWidth, insets, isCurrent, isDirectManipulable, isDirectManipulationActive, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isInitialValueLayout, isLegacyFocus, isRealized, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, moveToBottom, moveToTop, name, navigable, oleDrag, parent, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, refreshWidget, registerWidgetStateListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unrealize, unregisterWidgetStateListener, validateDisplayValue, widgetStateChanged, window
private int widthInPixels
private int heightInPixels
private int xOffset
public void updateSize(Window window, int font)
window
- The owner of this widgetfont
- The given fontpublic NativeDimension getScrollDimension()
getScrollDimension
in interface ScrollableWidget<GuiOutputManager>
public NativeDimension getVisibleDimension()
getVisibleDimension
in interface ScrollableWidget<GuiOutputManager>
public NativeDimension getScrollStep()
getScrollStep
in interface ScrollableWidget<GuiOutputManager>
public void scroll(java.lang.Integer newXPosition, java.lang.Integer newYPosition)
scroll
in interface ScrollableWidget<GuiOutputManager>
newXPosition
- The given translation along a horizontal in pixel unitsnewYPosition
- The given translation along a vertical in pixel unitspublic boolean isScrollPopupSupported()
isScrollPopupSupported
in interface ScrollableWidget<GuiOutputManager>
public Dimension dimension()
dimension
in interface Widget<GuiOutputManager>
dimension
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 LightweightTextWidget.TextLineSelection getFieldSelection(java.lang.String txt, boolean select)
txt
- The displayed date and time valueselect
- The flag indicating that the current field must be selected or not.