Class PictureControl
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.nebula.widgets.picture.AbstractPictureControl<org.eclipse.swt.widgets.Link>
org.eclipse.nebula.widgets.picture.PictureControl
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
,org.eclipse.swt.graphics.Drawable
public class PictureControl extends AbstractPictureControl<org.eclipse.swt.widgets.Link>
AbstractPictureControl
implementation with SWT Link
.-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.picture.AbstractPictureControl
BUNDLE_NAME, IMAGE_BYTEARRAY_PROPERTY, resources
-
Constructor Summary
Constructors Constructor Description PictureControl(org.eclipse.swt.widgets.Composite parent)
Constructor forPictureControl
with default SWT styles.PictureControl(org.eclipse.swt.widgets.Composite parent, int compositeStyle, int labelStyle, int linkStyle)
Constructor forPictureControl
with given SWT style . -
Method Summary
Modifier and Type Method Description protected void
addDeleteImageHandler(org.eclipse.swt.widgets.Link deleteImageLink)
Add the handler to delete the image to the Link control.protected void
addModifyImageHandler(org.eclipse.swt.widgets.Link modifyImageLink)
Add the handler to open Explorer files to the Link control.protected org.eclipse.swt.widgets.Composite
createComposite(org.eclipse.swt.widgets.Composite parent, int style)
Create a SWTComposite
.protected org.eclipse.swt.widgets.Label
createLabel(org.eclipse.swt.widgets.Composite parent, int style)
Create a SWTLabel
.protected org.eclipse.swt.widgets.Link
createLink(org.eclipse.swt.widgets.Composite parent, int style)
Create a SWT control for the "Modify" Link.protected void
setLinkText(org.eclipse.swt.widgets.Link link, java.lang.String text)
Set the text of a Link control.Methods inherited from class org.eclipse.nebula.widgets.picture.AbstractPictureControl
addPropertyChangeListener, configure, createLabelImage, createMenu, createUI, dispose, getDeleteImageLink, getFileDialogStyle, getImageByteArray, getImageStream, getMaxImageHeight, getMaxImageWidth, getModifyImageLink, getPictureLabel, getResizedImageData, handleDeleteImage, handleError, handleModifyImage, propertyChange, removePropertyChangeListener, setDefaultImage, setDeleteImageLinkText, setFilterExtensions, setImageByteArray, setImageStream, setLocale, setMaxImageHeight, setMaxImageWidth, setModifyImageLinkText
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toString
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
-
Constructor Details
-
PictureControl
public PictureControl(org.eclipse.swt.widgets.Composite parent, int compositeStyle, int labelStyle, int linkStyle)Constructor forPictureControl
with given SWT style .- Parameters:
parent
- a composite control which will be the parent of the new instance (cannot be null)compositeStyle
- SWT style of the SWT Composite which host Label+Link controls.labelStyle
- SWT style of the Label control.linkStyle
- SWT style of the Link control.
-
PictureControl
public PictureControl(org.eclipse.swt.widgets.Composite parent)Constructor forPictureControl
with default SWT styles.- Parameters:
parent
- a composite control which will be the parent of the new instance (cannot be null)
-
-
Method Details
-
createLabel
protected org.eclipse.swt.widgets.Label createLabel(org.eclipse.swt.widgets.Composite parent, int style)Description copied from class:AbstractPictureControl
Create a SWTLabel
.- Specified by:
createLabel
in classAbstractPictureControl<org.eclipse.swt.widgets.Link>
- Parameters:
parent
- a composite control which will be the parent of the new instance (cannot be null)style
- the style of control to construct- Returns:
-
createLink
protected org.eclipse.swt.widgets.Link createLink(org.eclipse.swt.widgets.Composite parent, int style)Description copied from class:AbstractPictureControl
Create a SWT control for the "Modify" Link.- Specified by:
createLink
in classAbstractPictureControl<org.eclipse.swt.widgets.Link>
- Parameters:
parent
- a composite control which will be the parent of the new instance (cannot be null)style
- the style of control to construct- Returns:
-
createComposite
protected org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent, int style)Description copied from class:AbstractPictureControl
Create a SWTComposite
.- Specified by:
createComposite
in classAbstractPictureControl<org.eclipse.swt.widgets.Link>
- Parameters:
parent
- a composite control which will be the parent of the new instance (cannot be null)style
- the style of control to construct- Returns:
-
setLinkText
protected void setLinkText(org.eclipse.swt.widgets.Link link, java.lang.String text)Description copied from class:AbstractPictureControl
Set the text of a Link control.- Specified by:
setLinkText
in classAbstractPictureControl<org.eclipse.swt.widgets.Link>
-
addModifyImageHandler
protected void addModifyImageHandler(org.eclipse.swt.widgets.Link modifyImageLink)Description copied from class:AbstractPictureControl
Add the handler to open Explorer files to the Link control.- Specified by:
addModifyImageHandler
in classAbstractPictureControl<org.eclipse.swt.widgets.Link>
-
addDeleteImageHandler
protected void addDeleteImageHandler(org.eclipse.swt.widgets.Link deleteImageLink)Description copied from class:AbstractPictureControl
Add the handler to delete the image to the Link control.- Specified by:
addDeleteImageHandler
in classAbstractPictureControl<org.eclipse.swt.widgets.Link>
-