class WindowTitleBar.WindowIcon extends ImageGuiImpl implements java.awt.event.MouseListener
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, LOG
insets, 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 |
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.
|
int |
widthPixels()
Get widget width in pixels.
|
afterConfigUpdate, calculateDrawingParameters, clearImage, drawImage, getZOrderClass, height, initialize, isIcon, loadImage, loadImage, mouseActions, setGreyImage, setImage, setImage, width
config, 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, 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, hasFocus, hidden, hide, highlighted, ignoreAction, insets, isCurrent, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, 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, 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
mouseEntered, mouseExited, mousePressed, mouseReleased
defaultMousePtr, enforceDefaultMousePtr, getLegacyWidget, isDirectManipulable, isDroppable, maySwitchFocus, requestFocus
private boolean useSmallIconSize
private boolean isIconChanged
public WindowIcon(WidgetId id)
id
- The widget's ID.public int widthPixels()
widthPixels
in class ImageGuiImpl
public int heightPixels()
heightPixels
in class ImageGuiImpl
public boolean raiseLegacyMouseEvents()
raiseLegacyMouseEvents
in interface Widget<GuiOutputManager>
raiseLegacyMouseEvents
in class AbstractWidget<GuiOutputManager>
false
.public 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 ImageGuiImpl
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
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