Class ValueOrFieldControl

java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
ch.so.agi.hop.commons.ui.ValueOrFieldControl
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public final class ValueOrFieldControl extends org.eclipse.swt.widgets.Composite
A string option with an explicit source selector. All methods must run on the SWT UI thread. The caller owns the label, persistence, validation and commit/cancel semantics.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Builder settings are copied on build; instances do not share mutable configuration.
  • Field Summary

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

    embeddedHandle

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

    handle
  • Method Summary

    Modifier and Type
    Method
    Description
    builder(org.eclipse.swt.widgets.Composite parent, org.apache.hop.core.variables.IVariables variables)
     
    ch.so.agi.hop.commons.core.ValueOrField
    Returns a snapshot, including the inactive editor's input.
    void
    Refreshes suggestions, retaining the typed name and old suggestions if the provider fails.
    void
    setEnabled(boolean enabled)
     
    boolean
     
    void
    setValue(ch.so.agi.hop.commons.core.ValueOrField value)
    Loads both inputs without invoking the change callback.

    Methods inherited from class org.eclipse.swt.widgets.Composite

    changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList, toString

    Methods inherited from class org.eclipse.swt.widgets.Scrollable

    computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsMode

    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, isAutoScalable, 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, setAutoscalingMode, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, 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, addTypedListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, removeListener, removeTypedListener, reskin, setData, setData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • builder

      public static ValueOrFieldControl.Builder builder(org.eclipse.swt.widgets.Composite parent, org.apache.hop.core.variables.IVariables variables)
    • setValue

      public void setValue(ch.so.agi.hop.commons.core.ValueOrField value)
      Loads both inputs without invoking the change callback.
    • getValue

      public ch.so.agi.hop.commons.core.ValueOrField getValue()
      Returns a snapshot, including the inactive editor's input.
    • refreshFields

      public void refreshFields()
      Refreshes suggestions, retaining the typed name and old suggestions if the provider fails.
    • setFocus

      public boolean setFocus()
      Overrides:
      setFocus in class org.eclipse.swt.widgets.Composite
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class org.eclipse.swt.widgets.Control