|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent org.openide.awt.SplittedPanel
The SplittedPanel widget is a Panel that can contain one or two components and place them side-by-side vertically or horizontally with a splitter in the middle. User can move the split point by dragging the splitter with mouse. The two components are accessed by add/remove methods with constraints value ADD_SPLITTER, ADD_FIRST, ADD_SECOND, .... The split position could be either absolute or proportional (according to the "Absolute" property setting) - in thwe absolute mode the split point remains same when resizing (i.e. the left/top component keeps its size and only the right/bottom component resizes), while in the proportional mode the splitPosition is a percentage of the width/height assigned to the left/top component.
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 |
Nested Class Summary | |
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 |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
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 |
Fields inherited from class javax.swing.JComponent |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
SplittedPanel()
Deprecated. Constructs a new empty SplittedPanel with no spliting. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public SplittedPanel()
Method Detail |
public void updateUI()
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()
EMPTY_SPLITTER
,
RAISED_SPLITTER
,
DEFAULT_SPLITTER
public void setSplitterType(int type)
type
- New SplitterType value.EMPTY_SPLITTER
,
RAISED_SPLITTER
,
DEFAULT_SPLITTER
public Component getSplitterComponent()
getSplitterType()
public void setSplitterComponent(Component comp)
comp
- New SplitterComponent value.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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |