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 forPictureControlwith default SWT styles.PictureControl(org.eclipse.swt.widgets.Composite parent, int compositeStyle, int labelStyle, int linkStyle)Constructor forPictureControlwith given SWT style . -
Method Summary
Modifier and Type Method Description protected voidaddDeleteImageHandler(org.eclipse.swt.widgets.Link deleteImageLink)Add the handler to delete the image to the Link control.protected voidaddModifyImageHandler(org.eclipse.swt.widgets.Link modifyImageLink)Add the handler to open Explorer files to the Link control.protected org.eclipse.swt.widgets.CompositecreateComposite(org.eclipse.swt.widgets.Composite parent, int style)Create a SWTComposite.protected org.eclipse.swt.widgets.LabelcreateLabel(org.eclipse.swt.widgets.Composite parent, int style)Create a SWTLabel.protected org.eclipse.swt.widgets.LinkcreateLink(org.eclipse.swt.widgets.Composite parent, int style)Create a SWT control for the "Modify" Link.protected voidsetLinkText(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, setModifyImageLinkTextMethods 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, toStringMethods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBarMethods 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, updateMethods 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 forPictureControlwith 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 forPictureControlwith 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:AbstractPictureControlCreate a SWTLabel.- Specified by:
createLabelin 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:AbstractPictureControlCreate a SWT control for the "Modify" Link.- Specified by:
createLinkin 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:AbstractPictureControlCreate a SWTComposite.- Specified by:
createCompositein 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:AbstractPictureControlSet the text of a Link control.- Specified by:
setLinkTextin classAbstractPictureControl<org.eclipse.swt.widgets.Link>
-
addModifyImageHandler
protected void addModifyImageHandler(org.eclipse.swt.widgets.Link modifyImageLink)Description copied from class:AbstractPictureControlAdd the handler to open Explorer files to the Link control.- Specified by:
addModifyImageHandlerin classAbstractPictureControl<org.eclipse.swt.widgets.Link>
-
addDeleteImageHandler
protected void addDeleteImageHandler(org.eclipse.swt.widgets.Link deleteImageLink)Description copied from class:AbstractPictureControlAdd the handler to delete the image to the Link control.- Specified by:
addDeleteImageHandlerin classAbstractPictureControl<org.eclipse.swt.widgets.Link>
-