public abstract class Skip<O extends OutputManager<?>> extends AbstractWidget<O> implements WidgetWithConfig<SkipConfig>
Modifier and Type | Field and Description |
---|---|
protected SkipConfig |
config
Component attribute container
|
insets, location, LOG, mousePtr, nativeInsets, physicalLocation
Constructor and Description |
---|
Skip(WidgetId id)
Constructs the skipping to the next line, no gap rows between the
widgets like line feed.
|
Skip(WidgetId id,
double rowsToSkip)
Constructs the skip object with the given number of the gap rows.
|
Skip(WidgetId id,
SkipConfig cfg)
Special constructor used to restore component using given configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
afterConfigUpdate(SkipConfig beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
Rectangle |
bounds()
Get the bounding rectangle of this component, relative to
the origin of its parent Container.
|
SkipConfig |
config()
Provide access to the attributes stored in the widget.
|
protected void |
copyState(Widget<?> w)
Copy the widget state from the specified source widget to this instance.
|
Dimension |
dimension()
Getting the size of the skip object.
|
abstract void |
draw()
Draw method, does nothing.
|
boolean |
focusTraversable()
This component will not receive an input focus when Tab or Shift-Tab is
pressed.
|
double |
height()
Returns the current height of the component.
|
void |
initialize(WidgetId id,
SkipConfig 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.
|
boolean |
isDirectManipulable()
Check the direct manipulation capability of the widget.
|
boolean |
isFocusable()
Checks whether this attribute container can receive focus generally.
|
Dimension |
minimumSize()
The same as the getSize() method.
|
java.lang.String |
toString()
Provide string representation of the instance location and size.
|
double |
width()
Returns the current width of the skip object.
|
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, destroy, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, findMouseSource, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, ignoreAction, insets, isCurrent, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, reflectAncestorChange, reflectLocationChange, refresh, registerWidgetStateListener, 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, translate, unrealize, updateSizeWorker, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
defaultMousePtr, enforceDefaultMousePtr, getLegacyWidget, isDroppable, maySwitchFocus, requestFocus
protected SkipConfig config
public Skip(WidgetId id)
id
- The widget's ID.public Skip(WidgetId id, double rowsToSkip)
id
- The widget's ID.rowsToSkip
- The number of the rows to be skipped.public Skip(WidgetId id, SkipConfig cfg)
Call initialize(com.goldencode.p2j.ui.WidgetId, com.goldencode.p2j.ui.SkipConfig)
to finish the widget initialization.
id
- The widget's ID.cfg
- Configuration data.public void initialize(WidgetId id, SkipConfig cfg)
This API is called after the widget is created and added to the registry.
initialize
in interface WidgetWithConfig<SkipConfig>
id
- The widget's ID.cfg
- The config used to initialize this widget.public SkipConfig config()
config
in interface Widget<O extends OutputManager<?>>
config
in interface ConfigOwner<SkipConfig>
config
in class AbstractWidget<O extends OutputManager<?>>
public void afterConfigUpdate(SkipConfig beforeUpdate)
afterConfigUpdate
in interface ConfigOwner<SkipConfig>
beforeUpdate
- public double width()
width
in interface Widget<O extends OutputManager<?>>
width
in class AbstractWidget<O extends OutputManager<?>>
public double height()
height
in interface Widget<O extends OutputManager<?>>
height
in class AbstractWidget<O extends OutputManager<?>>
public Dimension dimension()
dimension
in interface Widget<O extends OutputManager<?>>
dimension
in class AbstractWidget<O extends OutputManager<?>>
public Dimension minimumSize()
minimumSize
in interface Widget<O extends OutputManager<?>>
minimumSize
in class AbstractWidget<O extends OutputManager<?>>
public abstract void draw()
draw
in interface Widget<O extends OutputManager<?>>
draw
in class AbstractWidget<O extends OutputManager<?>>
public boolean focusTraversable()
focusTraversable
in interface Widget<O extends OutputManager<?>>
focusTraversable
in class AbstractWidget<O extends OutputManager<?>>
false
.public boolean isFocusable()
isFocusable
in interface Widget<O extends OutputManager<?>>
isFocusable
in class AbstractWidget<O extends OutputManager<?>>
true
if this container can be focused under
certain conditions. false
if, and only if, this
attribute container can never receive focus.public Rectangle bounds()
bounds
in interface Widget<O extends OutputManager<?>>
bounds
in class AbstractWidget<O extends OutputManager<?>>
public boolean isDirectManipulable()
isDirectManipulable
in interface Widget<O extends OutputManager<?>>
TRUE
if the widget is able to be directly manipulated,
FALSE
otherwise.public java.lang.String toString()
toString
in class AbstractWidget<O extends OutputManager<?>>
Object.toString()
protected void copyState(Widget<?> w)
copyState
in class AbstractWidget<O extends OutputManager<?>>
w
- The source widget which state needs to be copied.