public abstract class JIPipeDesktopParameterEditorUI extends JIPipeDesktopWorkbenchPanel implements org.scijava.Contextual, org.scijava.Disposable, JIPipeParameterCollection.ParameterChangedEventListener
Modifier and Type | Class and Description |
---|---|
static class |
JIPipeDesktopParameterEditorUI.InitializationParameters |
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
CONTROL_STYLE_CHECKBOX |
static int |
CONTROL_STYLE_LIST |
static int |
CONTROL_STYLE_PANEL |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
JIPipeDesktopParameterEditorUI(JIPipeDesktopParameterEditorUI.InitializationParameters initializationParameters) |
Modifier and Type | Method and Description |
---|---|
org.scijava.Context |
context() |
void |
dispose() |
JIPipeDesktopGraphCanvasUI |
getCanvasUI()
Finds the graph canvas if one is available
|
org.scijava.Context |
getContext() |
Object |
getContextParent()
Gets the parent object that is added during the creation of the UI
|
<T> T |
getParameter(Class<T> klass)
Gets or creates a parameter instance.
|
JIPipeParameterAccess |
getParameterAccess()
Gets the parameter accessor
|
JIPipeParameterCollection |
getParameterCollection()
Gets the object that holds the parameter
|
Class<?> |
getParameterFieldClass()
Returns the field class of the parameter
|
JIPipeParameterTree |
getParameterTree() |
JIPipeParameterTypeInfo |
getParameterTypeInfo()
Returns the info for the current parameter type
|
int |
getUIControlStyleType()
Returns the "style" of the control.
|
boolean |
isUIImportantLabelEnabled()
If true, the
JIPipeDesktopParameterFormPanel will render an "important" label if the parameter is marked as important. |
abstract boolean |
isUILabelEnabled()
If true, the
JIPipeDesktopParameterFormPanel will display a label with the parameter
name next to this UI. |
void |
onParameterChanged(JIPipeParameterCollection.ParameterChangedEvent event)
Listens for changes in parameters
|
abstract void |
reload()
Reloads the value from the stored parameter
|
void |
setContext(org.scijava.Context context) |
boolean |
setParameter(Object parameter,
boolean reload)
Sets the parameter value.
|
getDesktopWorkbench, getWorkbench
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int CONTROL_STYLE_PANEL
public static final int CONTROL_STYLE_LIST
public static final int CONTROL_STYLE_CHECKBOX
public JIPipeDesktopParameterEditorUI(JIPipeDesktopParameterEditorUI.InitializationParameters initializationParameters)
public JIPipeParameterCollection getParameterCollection()
public <T> T getParameter(Class<T> klass)
T
- parameter classklass
- parameter classpublic boolean setParameter(Object parameter, boolean reload)
parameter
- the valuereload
- if enabled, a reload can happen.public JIPipeDesktopGraphCanvasUI getCanvasUI()
public JIPipeParameterTree getParameterTree()
public JIPipeParameterAccess getParameterAccess()
public Class<?> getParameterFieldClass()
public JIPipeParameterTypeInfo getParameterTypeInfo()
public abstract boolean isUILabelEnabled()
JIPipeDesktopParameterFormPanel
will display a label with the parameter
name next to this UI.public boolean isUIImportantLabelEnabled()
JIPipeDesktopParameterFormPanel
will render an "important" label if the parameter is marked as important.public int getUIControlStyleType()
JIPipeDesktopParameterFormPanel
Controls with the same style are grouped together to ensure a consistent visual style (reduce clutter)
Please note that the grouping enforced by isUILabelEnabled() has precedenceJIPipeDesktopParameterFormPanel
(sorting only)public abstract void reload()
public void onParameterChanged(JIPipeParameterCollection.ParameterChangedEvent event)
onParameterChanged
in interface JIPipeParameterCollection.ParameterChangedEventListener
event
- Generated eventpublic void dispose()
dispose
in interface org.scijava.Disposable
public org.scijava.Context context()
context
in interface org.scijava.Contextual
public org.scijava.Context getContext()
getContext
in interface org.scijava.Contextual
public void setContext(org.scijava.Context context)
setContext
in interface org.scijava.Contextual
public Object getContextParent()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.