public class WorkbenchPanel extends JPanel
Modifier and Type | Class and Description |
---|---|
static class |
WorkbenchPanel.Layout
The layouts available to a
WorkbenchPanel . |
static class |
WorkbenchPanel.PanelType
The type of panels added to the
WorkbenchPanel , used as hint when doing the layout of
the panels. |
static class |
WorkbenchPanel.ResponsePanelPosition
The position of the response panel, with respect to the request panel.
|
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
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 |
---|
WorkbenchPanel(int displayOption)
Deprecated.
(2.5.0) Use
WorkbenchPanel(OptionsParamView, AbstractPanel,
AbstractPanel) instead. |
WorkbenchPanel(OptionsParamView viewOptions,
AbstractPanel requestPanel,
AbstractPanel responsePanel)
Constructs a
WorkbenchPanel with the given options and request and response panels. |
Modifier and Type | Method and Description |
---|---|
void |
addPanel(AbstractPanel panel,
WorkbenchPanel.PanelType panelType)
Adds the given panel to the workbench, hinting with the given panel type.
|
void |
addPanels(List<AbstractPanel> panels,
WorkbenchPanel.PanelType panelType)
Adds the given panels to the workbench, hinting with the given panel type.
|
void |
changeDisplayOption(int option)
Deprecated.
(2.5.0) Use
setWorkbenchLayout(Layout) instead. |
List<AbstractPanel> |
getPanels(WorkbenchPanel.PanelType panelType)
Gets the panels that were added to the workbench with the given panel type.
|
SortedSet<AbstractPanel> |
getSortedPanels(WorkbenchPanel.PanelType panelType)
Gets the panels, sorted by name, that were added to the workbench with the given panel type.
|
TabbedPanel2 |
getTabbedOldSelect()
Deprecated.
(2.5.0) No longer in use, it returns a new
TabbedPanel2 . |
TabbedPanel2 |
getTabbedOldStatus()
Deprecated.
(2.5.0) No longer in use, it returns a new
TabbedPanel2 . |
TabbedPanel2 |
getTabbedOldWork()
Deprecated.
(2.5.0) No longer in use, it returns a new
TabbedPanel2 . |
TabbedPanel2 |
getTabbedSelect()
Gets the tabbed panel that has the
SELECT panels. |
TabbedPanel2 |
getTabbedStatus()
Gets the tabbed panel that has the
STATUS panels. |
TabbedPanel2 |
getTabbedWork()
Gets the tabbed panel that has the
WORK panels. |
WorkbenchPanel.Layout |
getWorkbenchLayout()
Gets the layout of the workbench panel.
|
void |
pinVisiblePanels()
Pins all visible panels.
|
void |
removePanel(AbstractPanel panel,
WorkbenchPanel.PanelType panelType)
Removes the given panel of given panel type from the workbench panel.
|
void |
removePanels(List<AbstractPanel> panels,
WorkbenchPanel.PanelType panelType)
Removes the given panels of given panel type from the workbench panel.
|
void |
removeSplitPaneWork()
Deprecated.
(2.5.0) No longer in use, it does nothing.
|
void |
setPanelsVisible(boolean visible)
Sets whether or not the panels should be visible.
|
void |
setTabbedOldSelect(TabbedPanel2 t)
Deprecated.
(2.5.0) No longer in use, it does nothing.
|
void |
setTabbedOldStatus(TabbedPanel2 t)
Deprecated.
(2.5.0) No longer in use, it does nothing.
|
void |
setTabbedOldWork(TabbedPanel2 t)
Deprecated.
(2.5.0) No longer in use, it does nothing.
|
void |
showPanel(AbstractPanel panel)
Shows the given panel, if it was previously added.
|
void |
splitPaneWorkWithTabbedPanel(TabbedPanel tabbedPanel,
int orientation)
Deprecated.
(2.5.0) No longer in use, it does nothing.
|
void |
toggleTabNames(boolean showTabNames)
Sets whether or not the tabs should display the name of the panels.
|
void |
unpinVisiblePanels()
Unpins all visible panels.
|
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
@Deprecated public WorkbenchPanel(int displayOption)
WorkbenchPanel(OptionsParamView, AbstractPanel,
AbstractPanel)
instead.public WorkbenchPanel(OptionsParamView viewOptions, AbstractPanel requestPanel, AbstractPanel responsePanel)
WorkbenchPanel
with the given options and request and response panels.viewOptions
- the optionsrequestPanel
- the request panelresponsePanel
- the response panelIllegalArgumentException
- if any of the parameters is null
.@Deprecated public void changeDisplayOption(int option)
setWorkbenchLayout(Layout)
instead.public WorkbenchPanel.Layout getWorkbenchLayout()
null
@Deprecated public void splitPaneWorkWithTabbedPanel(TabbedPanel tabbedPanel, int orientation)
@Deprecated public void removeSplitPaneWork()
public TabbedPanel2 getTabbedStatus()
STATUS
panels.
Direct access/manipulation of the tabbed panel is discouraged, the changes done to it might be lost while changing layouts.
status
panels, never null
addPanel(AbstractPanel, PanelType)
@Deprecated public TabbedPanel2 getTabbedOldStatus()
TabbedPanel2
.public TabbedPanel2 getTabbedWork()
WORK
panels.
Direct access/manipulation of the tabbed panel is discouraged, the changes done to it might be lost while changing layouts.
work
panels, never null
addPanel(AbstractPanel, PanelType)
@Deprecated public TabbedPanel2 getTabbedOldWork()
TabbedPanel2
.@Deprecated public void setTabbedOldWork(TabbedPanel2 t)
@Deprecated public void setTabbedOldStatus(TabbedPanel2 t)
@Deprecated public void setTabbedOldSelect(TabbedPanel2 t)
public void toggleTabNames(boolean showTabNames)
The call to this method has not effect if the state is already set.
showTabNames
- true
if the names should be shown, false
otherwise.public TabbedPanel2 getTabbedSelect()
SELECT
panels.
Direct access/manipulation of the tabbed panel is discouraged, the changes done to it might be lost while changing layouts.
work
panels, never null
addPanel(AbstractPanel, PanelType)
@Deprecated public TabbedPanel2 getTabbedOldSelect()
TabbedPanel2
.public void addPanels(List<AbstractPanel> panels, WorkbenchPanel.PanelType panelType)
panels
- the panels to add to the workbenchpanelType
- the type of the panelsIllegalArgumentException
- if any of the parameters is null
.removePanels(List, PanelType)
,
addPanel(AbstractPanel, PanelType)
public void addPanel(AbstractPanel panel, WorkbenchPanel.PanelType panelType)
panel
- the panel to add to the workbenchpanelType
- the type of the panelIllegalArgumentException
- if any of the parameters is null
.removePanel(AbstractPanel, PanelType)
,
addPanels(List, PanelType)
public void removePanels(List<AbstractPanel> panels, WorkbenchPanel.PanelType panelType)
panels
- the panels to remove from the workbench panelpanelType
- the type of the panelsIllegalArgumentException
- if any of the parameters is null
.addPanels(List, PanelType)
,
removePanel(AbstractPanel, PanelType)
public void removePanel(AbstractPanel panel, WorkbenchPanel.PanelType panelType)
panel
- the panel to remove from the workbench panelpanelType
- the type of the panelIllegalArgumentException
- if any of the parameters is null
.addPanel(AbstractPanel, PanelType)
,
removePanels(List, PanelType)
public List<AbstractPanel> getPanels(WorkbenchPanel.PanelType panelType)
panelType
- the type of the panelList
with the panels of the given typeIllegalArgumentException
- if the given parameter is null
.public SortedSet<AbstractPanel> getSortedPanels(WorkbenchPanel.PanelType panelType)
panelType
- the type of the panelList
with the sorted panels of the given typeIllegalArgumentException
- if the given parameter is null
.public void setPanelsVisible(boolean visible)
Non-hideable
and pinned
panels are not affected by this call, when set to not be visible.
visible
- true
if all panels should be visible, false
otherwise.public void pinVisiblePanels()
unpinVisiblePanels()
,
AbstractPanel.setPinned(boolean)
public void unpinVisiblePanels()
pinVisiblePanels()
,
AbstractPanel.setPinned(boolean)
public void showPanel(AbstractPanel panel)
It does nothing, if the tab is already shown.
panel
- the panel to be shownIllegalArgumentException
- if the given parameter is null
.addPanel(AbstractPanel, PanelType)