Accessible
, org.openide.util.Lookup.Provider
public class IconNodeWidget extends Widget
Modifier and Type | Class | Description |
---|---|---|
static class |
IconNodeWidget.TextOrientation |
The text orientation specified relatively to the image
|
Widget.Dependency
Constructor | Description |
---|---|
IconNodeWidget(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.
|
Modifier and Type | Method | Description |
---|---|---|
ImageWidget |
getImageWidget() |
Returns the image widget part of the icon node widget.
|
LabelWidget |
getLabelWidget() |
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.
|
void |
setImage(Image image) |
Sets an image.
|
void |
setLabel(String label) |
Sets a label.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
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
public IconNodeWidget(Scene scene)
scene
- the scenepublic IconNodeWidget(Scene scene, IconNodeWidget.TextOrientation orientation)
scene
- the sceneorientation
- the text orientationpublic void notifyStateChanged(ObjectState previousState, ObjectState state)
notifyStateChanged
in class Widget
previousState
- the previous statestate
- the new statepublic final void setImage(Image image)
image
- the imagepublic final void setLabel(String label)
label
- the labelpublic final ImageWidget getImageWidget()
public final LabelWidget getLabelWidget()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.