Package ch.so.agi.hop.commons.ui
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 ClassesModifier and TypeClassDescriptionstatic final classBuilder settings are copied on build; instances do not share mutable configuration. -
Field Summary
Fields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandleFields inherited from class org.eclipse.swt.widgets.Widget
handle -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueOrFieldControl.Builderbuilder(org.eclipse.swt.widgets.Composite parent, org.apache.hop.core.variables.IVariables variables) ch.so.agi.hop.commons.core.ValueOrFieldgetValue()Returns a snapshot, including the inactive editor's input.voidRefreshes suggestions, retaining the typed name and old suggestions if the provider fails.voidsetEnabled(boolean enabled) booleansetFocus()voidsetValue(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, toStringMethods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsModeMethods 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, updateMethods 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
-
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:
setFocusin classorg.eclipse.swt.widgets.Composite
-
setEnabled
public void setEnabled(boolean enabled) - Overrides:
setEnabledin classorg.eclipse.swt.widgets.Control
-