public class IlvDashboardExpandableSplitPane extends JSplitPane
IlvDashboardExpandableSplitPane
is an extension of the Java
Swing JPanel
designed to contain a
IlvDashboardExpandablePane
.
The following code example shows
how to add integrate a IlvDashboardExpandableSplitPane
into a
Dashboard Editor application.
public class DashboardEditor extends IlvDashboardEditor { private IlvDashboardEditorFrame frame; ... frame = getFrame(); URL url = IlvDiagrammerTree.class.getResource("images/tree.gif"); ImageIcon icon = new ImageIcon(url); IlvDashboardTree tree = new IlvDashboardTree(); JScrollPane treeScrollPane = new JScrollPane(tree); IlvDashboardExpandablePane treeFrame = new IlvDashboardExpandablePane("Tree", icon, treeScrollPane); url = IlvDiagrammerPropertySheet.class.getResource("images/psheet.gif"); icon = new ImageIcon(url); IlvDashboardPropertyPanel ppanel = new IlvDashboardPropertyPanel(this); * IlvDashboardExpandablePane psheetFrame = new IlvDashboardExpandablePane("Property Sheet", icon, ppanel); IlvDashboardExpandableSplitPane split = new IlvDashboardExpandableSplitPane(treeFrame, psheetFrame); split.setResizeWeight(0.5); split.setDividerLocation(300); frame.setLeftArea(split);
IlvDashboardExpandablePane
,
IlvDiagrammerTree
,
IlvDashboardTree
,
IlvDiagrammerPropertySheet
,
IlvDashboardPropertyPanel
,
Serialized FormJSplitPane.AccessibleJSplitPane
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
BOTTOM, CONTINUOUS_LAYOUT_PROPERTY, continuousLayout, DIVIDER, DIVIDER_LOCATION_PROPERTY, DIVIDER_SIZE_PROPERTY, dividerSize, HORIZONTAL_SPLIT, LAST_DIVIDER_LOCATION_PROPERTY, LEFT, leftComponent, ONE_TOUCH_EXPANDABLE_PROPERTY, oneTouchExpandable, orientation, ORIENTATION_PROPERTY, RESIZE_WEIGHT_PROPERTY, RIGHT, rightComponent, TOP, VERTICAL_SPLIT
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 |
---|
IlvDashboardExpandableSplitPane(IlvDashboardExpandablePane top,
IlvDashboardExpandablePane bottom)
Constructs an expandable split pane containing the
top and
bottom IlvDashboardExpandablePane instances. |
Modifier and Type | Method and Description |
---|---|
void |
setBottomComponent(Component comp)
Sets the component displayed in the bottom pane of this
IlvDashboardExpandableSplitPane if and only if
comp is a IlvDashboardExpandableSplitPane . |
void |
setLeftComponent(Component comp)
Sets the component displayed in the left pane of this
IlvDashboardExpandableSplitPane if and only if
comp is a IlvDashboardExpandableSplitPane . |
void |
setResizeWeight(double value) |
void |
setRightComponent(Component comp)
Sets the component displayed in the right pane of this
IlvDashboardExpandableSplitPane if and only if
comp is a IlvDashboardExpandableSplitPane . |
void |
setTopComponent(Component comp)
Sets the component displayed in the top pane of this
IlvDashboardExpandableSplitPane if and only if
comp is a IlvDashboardExpandableSplitPane . |
addImpl, getAccessibleContext, getBottomComponent, getDividerLocation, getDividerSize, getLastDividerLocation, getLeftComponent, getMaximumDividerLocation, getMinimumDividerLocation, getOrientation, getResizeWeight, getRightComponent, getTopComponent, getUI, getUIClassID, isContinuousLayout, isOneTouchExpandable, isValidateRoot, paintChildren, paramString, remove, remove, removeAll, resetToPreferredSizes, setContinuousLayout, setDividerLocation, setDividerLocation, setDividerSize, setLastDividerLocation, setOneTouchExpandable, setOrientation, 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, paint, paintBorder, 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, 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, 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 IlvDashboardExpandableSplitPane(IlvDashboardExpandablePane top, IlvDashboardExpandablePane bottom)
top
and
bottom IlvDashboardExpandablePane
instances.top
- The expandable pane at the top of this pane.bottom
- The expandable pane at the bottom of this pane.IlvDashboardExpandableSplitPane
public void setResizeWeight(double value)
setResizeWeight
in class JSplitPane
public void setBottomComponent(Component comp)
IlvDashboardExpandableSplitPane
if and only if
comp
is a IlvDashboardExpandableSplitPane
.setBottomComponent
in class JSplitPane
comp
- The IlvDashboardExpandablePane
to be displayed
in the bottom pane.RuntimeException
- if IlvDashboardExpandablePane
instance.JSplitPane.setBottomComponent(java.awt.Component)
,
Using a IlvDashboardExpandableSplitPane
public void setLeftComponent(Component comp)
IlvDashboardExpandableSplitPane
if and only if
comp
is a IlvDashboardExpandableSplitPane
.setLeftComponent
in class JSplitPane
comp
- The IlvDashboardExpandablePane
to be displayed
in the left pane.RuntimeException
- if IlvDashboardExpandablePane
instance.JSplitPane.setLeftComponent(java.awt.Component)
,
Using a IlvDashboardExpandableSplitPane
public void setRightComponent(Component comp)
IlvDashboardExpandableSplitPane
if and only if
comp
is a IlvDashboardExpandableSplitPane
.setRightComponent
in class JSplitPane
comp
- The IlvDashboardExpandablePane
to be displayed
in the right pane.RuntimeException
- if IlvDashboardExpandablePane
instance.JSplitPane.setRightComponent(java.awt.Component)
,
Using a IlvDashboardExpandableSplitPane
public void setTopComponent(Component comp)
IlvDashboardExpandableSplitPane
if and only if
comp
is a IlvDashboardExpandableSplitPane
.setTopComponent
in class JSplitPane
comp
- The IlvDashboardExpandablePane
to be displayed
in the top pane.RuntimeException
- if IlvDashboardExpandablePane
instance.JSplitPane.setTopComponent(java.awt.Component)
,
Using a IlvDashboardExpandableSplitPane
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.