public class ParameterPanel extends FormPanel implements Contextual
JIPipeParameterCollection
FormPanel.FormPanelContentPanel, FormPanel.FormPanelEntry, FormPanel.GroupHeaderPanel, FormPanel.HoverHelpEvent
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DIALOG_FLAGS
Flags suitable for standalone dialogs
|
static int |
FORCE_TRAVERSE
With this flag, the parameter collection is always traversed, even if the provided parameter collection was already traversed
|
static int |
NO_EMPTY_GROUP_HEADERS
Flag for
ParameterPanel . |
static int |
NO_GROUP_HEADERS
Flag for
ParameterPanel . |
static int |
WITH_SEARCH_BAR
With this flag, there will be a search bar for parameters.
|
static int |
WITHOUT_COLLAPSE
With this flag, collapsing is disabled
|
static int |
WITHOUT_LABEL_SEPARATION
With this flag, parameters that do not show a label are not put below anymore
|
DOCUMENTATION_BELOW, DOCUMENTATION_NO_UI, NONE, WITH_DOCUMENTATION, WITH_SCROLLING
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 |
---|
ParameterPanel(JIPipeWorkbench workbench,
JIPipeParameterCollection displayedParameters,
MarkdownDocument documentation,
int flags) |
addGroupHeader, addToForm, addToForm, addVerticalGlue, addVerticalGlue, addWideToForm, addWideToForm, clear, getContentPanel, getEntries, getEventBus, getNumRows, getParameterHelp, getRedirectDocumentationTarget, getScrollPane, installComponentHighlighter, isHasVerticalGlue, isWithDocumentation, removeLastRow, setOpaque, setRedirectDocumentationTarget, showDocumentation, updateParameterHelpDrillDown
getAlpha, getBackgroundPainter, getEffectiveAlpha, getPainterChangeListener, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableHeightHint, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollableWidthHint, isInheritAlpha, isPaintBorderInsets, paint, paintComponent, setAlpha, setBackground, setBackgroundPainter, setInheritAlpha, setPaintBorderInsets, setScrollableHeightHint, setScrollableTracksViewportHeight, setScrollableTracksViewportWidth, setScrollableWidthHint
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, paintBorder, paintChildren, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, 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 NO_GROUP_HEADERS
ParameterPanel
. Makes that no group headers are created.
This includes dynamic parameter group headers that contain buttons for modification.public static final int NO_EMPTY_GROUP_HEADERS
ParameterPanel
. Makes that group headers without name or description or special functionality (like
dynamic parameters) are not shown. Overridden by NO_GROUP_HEADERS.public static final int FORCE_TRAVERSE
public static final int WITH_SEARCH_BAR
GeneralUISettings
.isShowParameterSearchBar() will override this settingpublic static final int WITHOUT_LABEL_SEPARATION
public static final int WITHOUT_COLLAPSE
public static final int DEFAULT_DIALOG_FLAGS
public ParameterPanel(JIPipeWorkbench workbench, JIPipeParameterCollection displayedParameters, MarkdownDocument documentation, int flags)
workbench
- SciJava contextdisplayedParameters
- Object containing the parameters. If the object is an JIPipeParameterTree
and FORCE_TRAVERSE is not set, it will be used directly. Can be null.documentation
- Optional documentationflags
- Flagspublic static boolean showDialog(JIPipeWorkbench workbench, JIPipeParameterCollection parameterCollection, MarkdownDocument defaultDocumentation, String title, int flags)
workbench
- parent componentparameterCollection
- the parameter collectionflags
- flags for the editorpublic static boolean showDialog(JIPipeWorkbench workbench, Component parent, JIPipeParameterCollection parameterCollection, MarkdownDocument defaultDocumentation, String title, int flags)
workbench
- parent componentparameterCollection
- the parameter collectionflags
- flags for the editorpublic static MarkdownDocument generateParameterDocumentation(JIPipeParameterAccess access, JIPipeParameterTree tree)
public BiFunction<JIPipeParameterTree,JIPipeParameterAccess,Boolean> getCustomIsParameterVisible()
public void setCustomIsParameterVisible(BiFunction<JIPipeParameterTree,JIPipeParameterAccess,Boolean> customIsParameterVisible)
public BiFunction<JIPipeParameterTree,JIPipeParameterCollection,Boolean> getCustomIsParameterCollectionVisible()
public void setCustomIsParameterCollectionVisible(BiFunction<JIPipeParameterTree,JIPipeParameterCollection,Boolean> customIsParameterCollectionVisible)
public void reloadForm()
public void refreshForm()
protected Component createEntryPropertiesComponent(Component component, Component description, int row, MarkdownDocument documentation)
createEntryPropertiesComponent
in class FormPanel
public void onParameterStructureChanged(JIPipeParameterCollection.ParameterStructureChangedEvent event)
event
- generated eventpublic void onParameterUIChanged(JIPipeParameterCollection.ParameterUIChangedEvent event)
event
- generated eventpublic JIPipeParameterCollection getDisplayedParameters()
public void setDisplayedParameters(JIPipeParameterCollection displayedParameters)
public Context getContext()
getContext
in interface Contextual
public void setContext(Context context)
setContext
in interface Contextual
public Context context()
context
in interface Contextual
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.