private class FontChooserGuiImpl.Preview extends AbstractWidget implements ConfigOwner
Modifier and Type | Field and Description |
---|---|
(package private) BaseConfig |
myConfig
The widget configuration for
Preview s. |
private int |
NATIVE_HEIGHT
Constant representing the height of this widget.
|
private int |
NATIVE_WIDTH
Constant representing the total width of this widget.
|
private static java.lang.String |
PREVIEW_STRING
The short text used to show the preview.
|
insets, location, LOG, mousePtr, nativeInsets, physicalLocation
Modifier | Constructor and Description |
---|---|
private |
Preview()
The constructor creates the preview object.
|
Modifier and Type | Method and Description |
---|---|
void |
afterConfigUpdate(WidgetConfig beforeUpdate)
The method is called after the configuration associated with the owner changes.
|
WidgetConfig |
config()
Returns config instance associated with this instance.
|
Dimension |
dimension()
Get widget dimension.
|
void |
draw()
Draw the picker widget.
|
double |
height()
Get widget height.
|
Dimension |
minimumSize()
Get widget minimum size.
|
double |
width()
Get widget width.
|
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, copyState, createMouseHoverAction, deactivateDirectManipulation, debug, destroy, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, findMouseSource, focusTraversable, 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, isFocusable, 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, toString, translate, unrealize, updateSizeWorker, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
defaultMousePtr, enforceDefaultMousePtr, getLegacyWidget, isDirectManipulable, isDroppable, maySwitchFocus, requestFocus
BaseConfig myConfig
Preview
s.private final int NATIVE_WIDTH
private final int NATIVE_HEIGHT
private static final java.lang.String PREVIEW_STRING
public void draw()
draw
in interface Widget
draw
in class AbstractWidget
public double width()
width
in interface Widget
width
in class AbstractWidget
public double height()
height
in interface Widget
height
in class AbstractWidget
public Dimension dimension()
dimension
in interface Widget
dimension
in class AbstractWidget
public Dimension minimumSize()
minimumSize
in interface Widget
minimumSize
in class AbstractWidget
public WidgetConfig config()
config
in interface Widget
config
in interface ConfigOwner
config
in class AbstractWidget
public void afterConfigUpdate(WidgetConfig beforeUpdate)
afterConfigUpdate
in interface ConfigOwner
beforeUpdate
- Config reference capturing the config state before
the owner's config was modified.