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

    Fields inherited from class org.eclipse.swt.widgets.Control

    handle
  • Constructor Summary

    Constructors 
    Constructor Description
    PictureControl​(org.eclipse.swt.widgets.Composite parent)
    Constructor for PictureControl with default SWT styles.
    PictureControl​(org.eclipse.swt.widgets.Composite parent, int compositeStyle, int labelStyle, int linkStyle)
    Constructor for PictureControl 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 SWT Composite.
    protected org.eclipse.swt.widgets.Label createLabel​(org.eclipse.swt.widgets.Composite parent, int style)
    Create a SWT Label.
    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.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.swt.graphics.Drawable

    isAutoScalable
  • Constructor Details

    • PictureControl

      public PictureControl​(org.eclipse.swt.widgets.Composite parent, int compositeStyle, int labelStyle, int linkStyle)
      Constructor for PictureControl 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 for PictureControl 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 SWT Label.
      Specified by:
      createLabel in class AbstractPictureControl<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 class AbstractPictureControl<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 SWT Composite.
      Specified by:
      createComposite in class AbstractPictureControl<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 class AbstractPictureControl<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 class AbstractPictureControl<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 class AbstractPictureControl<org.eclipse.swt.widgets.Link>