@Deprecated public class SplittedPanel extends JComponent implements Accessible
Property | Property Type | Description |
---|---|---|
SplitType | int | The type of the splitting - HORIZONTAL, VERTICAL or NONE |
SplitPosition | int | The position of the split point - either absolute position or number of percents according to the "Absolute" property settings, could be one of FIRST_PREFERRED or SECOND_PREFERRED, which means that the split point should be placed so that the first(left/top) resp. second (bottom/rignt) is sized according to its preferredSize (in this case the Absolute property setting is ignored) |
SplitterType | int | The type of the component that renders the splitter - DEFAULT_SPLITTER, RAISED_SPLITTER, EMPTY_SPLITTER. |
SplitterComponent | Component | The component that renders the splitter. A custom component can be provided in addition to EMPTY_SPLITTER and RAISED-SPLITTER using this method. |
SplitAbsolute | boolean | if true then the meaning of the SplitPosition is absolute points, otherwise the SplitPosition is a number of percents |
SplitDragable | boolean | if true then the split point can be dragged using a mouse, otherwise the SplitPosition is fixed |
SplitTypeChangeEnabled | boolean | if true then the split type can be changed via popup menu commands |
SwapPanesEnabled | boolean | if true then the panes can be swapped via popup menu command |
Modifier and Type | Class and Description |
---|---|
static class |
SplittedPanel.EmptySplitter
Deprecated.
This class does nothing interesting that cannot be done with a JSplitPane.
Use a JSplitPane instead.
|
static class |
SplittedPanel.SplitChangeEvent
Deprecated.
This class does nothing interesting that cannot be done with a JSplitPane.
Use a JSplitPane instead.
|
static interface |
SplittedPanel.SplitChangeListener
Deprecated.
A listener interface for tracking split point changes
|
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static Object |
ADD_BOTTOM
Deprecated.
constraints constant for adding a component to the bottom(right) pane (an alias for the ADD_SECOND constant)
|
static Object |
ADD_FIRST
Deprecated.
constraints constant for adding a component to the first (left/top) pane
|
static Object |
ADD_LEFT
Deprecated.
constraints constant for adding a component to the left(top) pane (an alias for the ADD_FIRST constant)
|
static Object |
ADD_RIGHT
Deprecated.
constraints constant for adding a component to the right(bottom) pane (an alias for the ADD_SECOND constant)
|
static Object |
ADD_SECOND
Deprecated.
constraints constant for adding a component to the second (right/bottom) pane
|
static Object |
ADD_SPLITTER
Deprecated.
constraints constant for adding a splitter
|
static Object |
ADD_TOP
Deprecated.
constraints constant for adding a component to the top(left) pane (an alias for the ADD_FIRST constant)
|
static int |
DEFAULT_SPLITTER
Deprecated.
constant for splitter component types - default splitter (raised)
|
static int |
EMPTY_SPLITTER
Deprecated.
constant for splitter component types - empty splitter
|
static int |
FIRST_PREFERRED
Deprecated.
constant for moving the split point so that the first (left/top) component is sized according to its preferredSize
|
static int |
HORIZONTAL
Deprecated.
constant for horizontal split
|
static int |
NONE
Deprecated.
constant for no split - only the first (left/top) component will be shown
|
static int |
RAISED_SPLITTER
Deprecated.
constant for splitter component types - raised splitter
|
static int |
SECOND_PREFERRED
Deprecated.
constant for moving the split point so that the second (right/bottom) component is sized according to its preferredSize
|
static int |
VERTICAL
Deprecated.
constant for vertical split
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
SplittedPanel()
Deprecated.
Constructs a new empty SplittedPanel with no spliting.
|
Modifier and Type | Method and Description |
---|---|
void |
addSplitChangeListener(SplittedPanel.SplitChangeListener l)
Deprecated.
Adds specified listener to the current set of SplitChangeListeners
|
protected void |
computeSizesAfterFlip()
Deprecated.
Computes component sizes after performing the flip,
it means splitTypeChange
|
protected void |
fireSplitChange(int oldValue,
int newValue)
Deprecated.
Fires the SplitChange event
|
AccessibleContext |
getAccessibleContext()
Deprecated.
|
boolean |
getKeepFirstSame()
Deprecated.
Getter method for the KeepFirstSame property.
|
boolean |
getKeepSecondSame()
Deprecated.
Getter method for the KeepSecondSame property.
|
boolean |
getPanesSwapped()
Deprecated.
|
int |
getSplitPosition()
Deprecated.
Getter method for the SplitPosition property.
|
Component |
getSplitterComponent()
Deprecated.
Getter method for the SplitterComponent property.
|
int |
getSplitterType()
Deprecated.
Getter method for the SplitterType property.
|
int |
getSplitType()
Deprecated.
Getter method for the SplitType property.
|
boolean |
isContinuousLayout()
Deprecated.
Getter method for the ContinuousLayout property.
|
boolean |
isSplitAbsolute()
Deprecated.
Getter method for the SplitAbsolute property.
|
boolean |
isSplitDragable()
Deprecated.
Getter method for the SplitDragable property.
|
boolean |
isSplitTypeChangeEnabled()
Deprecated.
Getter method for the SplitTypeChangeEnabled property.
|
boolean |
isSwapPanesEnabled()
Deprecated.
Getter method for the SwapPanesEnabled property.
|
void |
removeSplitChangeListener(SplittedPanel.SplitChangeListener l)
Deprecated.
Removes specified listener from the current set of SplitChangeListeners
|
void |
setContinuousLayout(boolean value)
Deprecated.
Setter method for the ContinuousLayout property.
|
void |
setKeepFirstSame(boolean value)
Deprecated.
Setter method for the KeepFirstSame property.
|
void |
setKeepSecondSame(boolean value)
Deprecated.
Setter method for the KeepSecondSame property.
|
void |
setSplitAbsolute(boolean value)
Deprecated.
Setter method for the SplitAbsolute property.
|
void |
setSplitDragable(boolean value)
Deprecated.
Setter method for the Dragable property.
|
void |
setSplitPosition(int value)
Deprecated.
Setter method for the SplitPosition property.
|
void |
setSplitterComponent(Component comp)
Deprecated.
Setter method for the SplitterComponent property.
|
protected void |
setSplitterCursor()
Deprecated.
Updates the splitter's cursor according to the current SplittedPanel settings.
|
void |
setSplitterType(int type)
Deprecated.
Setter method for the SplitterType property.
|
void |
setSplitType(int value)
Deprecated.
Setter method for the SplitType property.
|
void |
setSplitTypeChangeEnabled(boolean value)
Deprecated.
Setter method for the SplitTypeChangeEnabled property.
|
void |
setSwapPanesEnabled(boolean value)
Deprecated.
Setter method for the SwapPanesEnabled property.
|
void |
swapPanes()
Deprecated.
Swaps the panes.
|
protected void |
updatePopupMenu()
Deprecated.
Updates the splitter's popup menu.
|
protected void |
updateSplitting()
Deprecated.
Updates the visual state and layout when the split state changes.
|
void |
updateUI()
Deprecated.
Updates splitting, too.
|
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, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int NONE
public static final int VERTICAL
public static final int HORIZONTAL
public static final Object ADD_SPLITTER
public static final Object ADD_FIRST
public static final Object ADD_SECOND
public static final Object ADD_LEFT
public static final Object ADD_TOP
public static final Object ADD_RIGHT
public static final Object ADD_BOTTOM
public static final int FIRST_PREFERRED
public static final int SECOND_PREFERRED
public static final int RAISED_SPLITTER
public static final int EMPTY_SPLITTER
public static final int DEFAULT_SPLITTER
public SplittedPanel()
public void updateUI()
updateUI
in class JComponent
protected void updateSplitting()
protected void computeSizesAfterFlip()
protected void setSplitterCursor()
protected void updatePopupMenu()
public void swapPanes()
public boolean getPanesSwapped()
public int getSplitType()
public void setSplitType(int value)
value
- New SplitType value.public int getSplitPosition()
public void setSplitPosition(int value)
value
- New SplitPosition value.public int getSplitterType()
SplittedPanel.EMPTY_SPLITTER
,
SplittedPanel.RAISED_SPLITTER
,
SplittedPanel.DEFAULT_SPLITTER
public void setSplitterType(int type)
type
- New SplitterType value.SplittedPanel.EMPTY_SPLITTER
,
SplittedPanel.RAISED_SPLITTER
,
SplittedPanel.DEFAULT_SPLITTER
public Component getSplitterComponent()
SplittedPanel.getSplitterType()
public void setSplitterComponent(Component comp)
comp
- New SplitterComponent value.SplittedPanel.setSplitterType(int)
public boolean isSplitAbsolute()
public void setSplitAbsolute(boolean value)
value
- New SplitAbsolute value.public boolean isSplitDragable()
public void setSplitDragable(boolean value)
value
- New Dragable value.public boolean isContinuousLayout()
public void setContinuousLayout(boolean value)
value
- New ContinuousLayout value.public boolean getKeepFirstSame()
public void setKeepFirstSame(boolean value)
value
- New KeepFirstSame value.public boolean getKeepSecondSame()
public void setKeepSecondSame(boolean value)
value
- New KeepSecondSame value.public boolean isSplitTypeChangeEnabled()
public void setSplitTypeChangeEnabled(boolean value)
value
- New SplitTypeChangeEnabled value.public boolean isSwapPanesEnabled()
public void setSwapPanesEnabled(boolean value)
value
- New SwapPanesEnabled value.public void addSplitChangeListener(SplittedPanel.SplitChangeListener l)
public void removeSplitChangeListener(SplittedPanel.SplitChangeListener l)
protected void fireSplitChange(int oldValue, int newValue)
public AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
getAccessibleContext
in class Component