class WindowTitleBar.WindowIcon extends ImageGuiImpl
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isIconChanged
The boolean value indicates that the icon is changed.
|
private boolean |
useSmallIconSize
Flag indicating the icon was loaded by LOAD-SMALL-ICON().
|
cutImg, img, LOGinsets, listeners, location, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
WindowIcon(WidgetId id)
Create the window icon.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw()
Sets the window icon, if the icon is changed and then draws it on the graphic device.
|
int |
heightPixels()
Get widget height in pixels.
|
protected boolean |
isStretchToFit()
The method returns a value indicating whether this image is supposed to be stretched-to-fit.
|
boolean |
isUseSmallIconSize()
Tests if a small icon is used
|
boolean |
loadIcon(boolean small,
java.lang.String name)
Loads the new application icon for given window from the client side filesystem.
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Open a title popup menu.
|
boolean |
raiseLegacyMouseEvents()
Check if the widget implementation can raise legacy, 4GL-style, mouse events.
|
boolean |
setIconData(byte[] newIcon)
Sets or replaces the window icon data with provided array data.
|
void |
setUseSmallIconSize(boolean useSmallIconSize)
Sets this icon to use small icon size - 16x16.
|
int |
widthPixels()
Get widget width in pixels.
|
afterConfigUpdate, calculateDrawingParameters, clearImage, drawImage, getZOrderClass, height, initialize, isIcon, isInitialValueLayout, loadImage, loadImage, mouseActions, setColorResolver, setGreyImage, setImage, setImage, setImage, widthconfig, dimension, focusTraversable, minimumSize_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, 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, 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, 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, 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, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, triggerLocationChanged, unrealize, unregisterWidgetListener, updateSizeWorker, updateSystemParent, widgetRealized, widgetStateChanged, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptsEscAsAnyKey, acceptTrigger, canMovetoTop, completeTrigger, defaultMousePtr, enforceDefaultMousePtr, getIdForTrigger, getLegacyWidget, getTriggerWidget, getTriggerWidget, hasFocus, ignoreEnable, isCurrent, isDirectManipulable, isDroppable, isLegacyFocus, isProcessProgressEvent, maySwitchFocus, parent, refreshWidget, requestFocus, requestFocus, startTrigger, systemFocusGrabbed, validateDisplayValueprivate boolean useSmallIconSize
private boolean isIconChanged
public WindowIcon(WidgetId id)
id - The widget's ID.public int widthPixels()
widthPixels in class ImageGuiImplpublic int heightPixels()
heightPixels in class ImageGuiImplpublic boolean raiseLegacyMouseEvents()
raiseLegacyMouseEvents in interface Widget<GuiOutputManager>raiseLegacyMouseEvents in class AbstractWidget<GuiOutputManager>false.public boolean isUseSmallIconSize()
public void setUseSmallIconSize(boolean useSmallIconSize)
useSmallIconSize - The useSmallIconSize to setpublic boolean setIconData(byte[] newIcon)
newIcon - A new icon image array data.TRUE if operation successful FALSE otherwise.public boolean loadIcon(boolean small,
java.lang.String name)
small - Flag indicating usage of the small icon case(16x16 in size).name - The fully qualified file name for the icon to be loaded.TRUE if operation successful FALSE otherwise.public void draw()
draw in interface Widget<GuiOutputManager>draw in class ImageGuiImplpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class AbstractWidget<GuiOutputManager>e - A mouse click event that triggers an action to open a window title popup menu.protected boolean isStretchToFit()
isStretchToFit in class ImageGuiImpl