public class GImage extends GComponent implements GDisplay
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_ATTRIBUTE| Constructor and Description |
|---|
GImage(Icon icon)
Constructor.
|
GImage(String iconFileName)
Constructor.
|
GImage(String widgetId,
Icon icon)
Constructor.
|
GImage(String widgetId,
String iconFileName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
display()
Called when the element is to be displayed, so it can perform the actions required for its display, and
the display of its inmmediate descendants.
|
Component |
getComponent()
Returns the low level Swing Component encapsulated by the class if any, otherwise returns
null.
|
Icon |
getIcon()
Gets the displayed icon.
|
JLabel |
getJLabel()
Return the JLabel associated with the widget.
|
void |
setIcon(Icon icon)
Sets the icon to be displayed.
|
void |
setIcon(String iconFileName)
Sets the icon to be displayed.
|
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic GImage(String iconFileName)
iconFileName - filename of the image to be displayed.public GImage(Icon icon)
icon - to be displayed.public GImage(String widgetId, Icon icon)
widgetId - identifier of the widget.icon - to be displayed.public void display()
public Component getComponent()
getComponent in class GComponentpublic JLabel getJLabel()
public void setIcon(Icon icon)
icon - the new icon to be set.public void setIcon(String iconFileName)
iconFileName - filename of the new image to be displayed.public Icon getIcon()
Copyright © 2024. All rights reserved.