class WindowTitleBar.WindowIcon extends ImageGuiImpl implements java.awt.event.MouseListener
Widget.ZOrderClass
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().
|
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.
|
double |
height()
Get widget height.
|
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.
|
double |
width()
Get widget width.
|
calculateDrawingParameters, drawImage, getImageHeight, getImageWidth, getZOrderClass, initialize, isIcon, loadImage, loadImage, mouseActions, setGreyImage, setImage, setImage
afterConfigUpdate, config, dimension, focusTraversable, minimumSize
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, createMouseHoverAction, deactivateDirectManipulation, debug, destroy, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, findMouseSource, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidthNative, getVisiblePart, hasFocus, hidden, hide, highlighted, ignoreAction, insets, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, manageSystemActions, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, refresh, registerWidgetStateListener, repaint, repaint, requestFocus, requestSync, resetBitmap, resizeTo, resolveFont, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, setVisible, show, 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
private boolean useSmallIconSize
private boolean isIconChanged
public WindowIcon(WidgetId id)
id
- The widget's ID.public double height()
height
in interface Widget<GuiOutputManager>
height
in class ImageGuiImpl
public double width()
width
in interface Widget<GuiOutputManager>
width
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