Class FormPictureControl

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.ui.forms.widgets.Hyperlink>
org.eclipse.nebula.widgets.picture.forms.FormPictureControl
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, org.eclipse.swt.graphics.Drawable

public class FormPictureControl
extends AbstractPictureControl<org.eclipse.ui.forms.widgets.Hyperlink>
AbstractPictureControl implementation with Forms Hyperlink.
  • 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
    FormPictureControl​(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit toolkit)
    Constructor for FormPictureControl with default SWT styles.
    FormPictureControl​(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit toolkit, int compositeStyle, int labelStyle, int linkStyle)
    Constructor for FormPictureControl with given SWT style .
  • Method Summary

    Modifier and Type Method Description
    protected void addDeleteImageHandler​(org.eclipse.ui.forms.widgets.Hyperlink deleteImageLink)
    Add the handler to delete the image to the Link control.
    protected void addModifyImageHandler​(org.eclipse.ui.forms.widgets.Hyperlink 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.ui.forms.widgets.Hyperlink createLink​(org.eclipse.swt.widgets.Composite parent, int style)
    Create a SWT control for the "Modify" Link.
    protected void setLinkText​(org.eclipse.ui.forms.widgets.Hyperlink 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

    • FormPictureControl

      public FormPictureControl​(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit toolkit)
      Constructor for FormPictureControl with default SWT styles.
      Parameters:
      parent - a composite control which will be the parent of the new instance (cannot be null)
    • FormPictureControl

      public FormPictureControl​(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.FormToolkit toolkit, int compositeStyle, int labelStyle, int linkStyle)
      Constructor for FormPictureControl 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.
  • 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.ui.forms.widgets.Hyperlink>
      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.ui.forms.widgets.Hyperlink 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.ui.forms.widgets.Hyperlink>
      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.ui.forms.widgets.Hyperlink>
      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.ui.forms.widgets.Hyperlink 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.ui.forms.widgets.Hyperlink>
    • addModifyImageHandler

      protected void addModifyImageHandler​(org.eclipse.ui.forms.widgets.Hyperlink 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.ui.forms.widgets.Hyperlink>
    • addDeleteImageHandler

      protected void addDeleteImageHandler​(org.eclipse.ui.forms.widgets.Hyperlink 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.ui.forms.widgets.Hyperlink>