Class IconNodeWidget
java.lang.Object
org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.general.IconNodeWidget
- All Implemented Interfaces:
Accessible
,org.openide.util.Lookup.Provider
This class represents a general icon node widget which is rendered as a image and a label placed to the right or bottom from the image.
By default uses vertical/horizontal flow layout.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The text orientation specified relatively to the imageNested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
-
Constructor Summary
ConstructorsConstructorDescriptionIconNodeWidget
(Scene scene) Creates an icon node widget with bottom-center orientation.IconNodeWidget
(Scene scene, IconNodeWidget.TextOrientation orientation) Creates an icon node widget with a specified orientation. -
Method Summary
Modifier and TypeMethodDescriptionfinal ImageWidget
Returns the image widget part of the icon node widget.final LabelWidget
Returns the label widget part of the icon node widget.void
notifyStateChanged
(ObjectState previousState, ObjectState state) Implements the widget-state specific look of the widget.final void
Sets an image.final void
Sets a label.Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isHitAt, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
-
Constructor Details
-
IconNodeWidget
Creates an icon node widget with bottom-center orientation.- Parameters:
scene
- the scene
-
IconNodeWidget
Creates an icon node widget with a specified orientation.- Parameters:
scene
- the sceneorientation
- the text orientation
-
-
Method Details
-
notifyStateChanged
Implements the widget-state specific look of the widget.- Overrides:
notifyStateChanged
in classWidget
- Parameters:
previousState
- the previous statestate
- the new state
-
setImage
-
setLabel
-
getImageWidget
Returns the image widget part of the icon node widget.- Returns:
- the image widget
-
getLabelWidget
Returns the label widget part of the icon node widget.- Returns:
- the label widget
-