public class JIPipeDesktopFormPanel extends JPanel
Modifier and Type | Class and Description |
---|---|
static class |
JIPipeDesktopFormPanel.ContextHelpEvent
Event triggered when the user triggers a hover-help
|
static class |
JIPipeDesktopFormPanel.ContextHelpEventEmitter |
static interface |
JIPipeDesktopFormPanel.ContextHelpEventListener |
static class |
JIPipeDesktopFormPanel.FormPanelContentPanel |
static class |
JIPipeDesktopFormPanel.FormPanelEntry |
static class |
JIPipeDesktopFormPanel.GroupHeaderPanel
Panel that contains a group header
|
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
DOCUMENTATION_BELOW
Flag that indicates that documentation should be shown below if enabled.
|
static int |
DOCUMENTATION_EXTERNAL
Flag that makes the documentation panel not appear in the split pane
|
static int |
DOCUMENTATION_NO_UI
Flag that indicates that documentation should be supported, but there should be no dedicated panel
|
static int |
NONE
Flag that indicates no modifications, meaning (1) No documentation, and (2) no scrolling
|
static int |
TABBED_DOCUMENTATION
Puts the documentation into a
JIPipeDesktopTabPane if WITH_DOCUMENTATION is active |
static int |
TRANSPARENT_BACKGROUND
Flag that makes the backgrounds of the components transparent (non-opaque) if possible
|
static int |
WITH_DOCUMENTATION
Flag that indicates that a documentation panel is shown.
|
static int |
WITH_LIMIT_WIDTH
Flag that makes the form panel limit the width of components
|
static int |
WITH_SCROLLING
Flag that makes the content be wrapped in a
JScrollPane |
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 |
---|
JIPipeDesktopFormPanel(int flags) |
JIPipeDesktopFormPanel(MarkdownText document,
int flags)
Creates a new instance
|
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, 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 NONE
public static final int WITH_DOCUMENTATION
public static final int DOCUMENTATION_NO_UI
public static final int TRANSPARENT_BACKGROUND
public static final int WITH_LIMIT_WIDTH
public static final int DOCUMENTATION_EXTERNAL
public static final int WITH_SCROLLING
JScrollPane
public static final int DOCUMENTATION_BELOW
public static final int TABBED_DOCUMENTATION
JIPipeDesktopTabPane
if WITH_DOCUMENTATION is activepublic JIPipeDesktopFormPanel(int flags)
public JIPipeDesktopFormPanel(MarkdownText document, int flags)
document
- optional documentationflags
- flags for this componentpublic static boolean showDialog(Component parent, JIPipeDesktopFormPanel formPanel, String title)
public List<JIPipeDesktopFormPanel.GroupHeaderPanel> getGroupHeaderPanels()
public int getFlags()
public boolean hasFlag(int flag)
public JPanel getStaticContentPanel()
public JIPipeDesktopTabPane getDocumentationTabPane()
public JIPipeDesktopFormPanel getRedirectDocumentationTarget()
public void setRedirectDocumentationTarget(JIPipeDesktopFormPanel redirectDocumentationTarget)
public JIPipeDesktopFormHelpPanel getHelpPanel()
public void setHelpPanel(JIPipeDesktopFormHelpPanel helpPanel)
public boolean isWithDocumentation()
public boolean isHasVerticalGlue()
public JIPipeDesktopFormPanel.ContextHelpEventEmitter getContextHelpEventEmitter()
public void setOpaque(boolean isOpaque)
setOpaque
in class JComponent
public org.jdesktop.swingx.JXPanel getContentPanel()
public JScrollPane getScrollPane()
public <T extends Component> T addToForm(T component, Component description)
T
- Component typecomponent
- The componentdescription
- A description component displayed on the left hand sidepublic <T extends Component> T addToForm(T component, Component description, MarkdownText documentation)
T
- Component typecomponent
- The componentdescription
- A description component displayed on the left hand sidedocumentation
- Optional documentation for this component. Can be null.public <T extends Component> T addWideToForm(T component)
T
- Component typecomponent
- The componentpublic <T extends Component> T addWideToForm(T component, MarkdownText documentation)
T
- Component typecomponent
- The componentdocumentation
- Optional documentation. Can be null.public void showDocumentation(MarkdownText documentation)
protected Component createEntryPropertiesComponent(Component component, Component description, int row, MarkdownText documentation)
public int getNumRows()
public JIPipeDesktopFormPanel.GroupHeaderPanel addGroupHeader(String text, Icon icon)
text
- Group texticon
- Group iconpublic JIPipeDesktopFormPanel.GroupHeaderPanel addGroupHeader(String text, String description, boolean collapseDescription, Icon icon)
text
- Group textdescription
- Group descriptioncollapseDescription
- if the description should be collapsedicon
- Group iconpublic void addVerticalGlue()
public void removeLastRow()
public void clear()
public List<JIPipeDesktopFormPanel.FormPanelEntry> getEntries()
public void addVerticalGlue(Component component, MarkdownText document)
component
- the componentdocument
- optional documentationpublic void installComponentHighlighter(JComponent triggerComponent, Set<Component> targetComponents)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.