|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JSplitPane
org.nuiton.widget.UIFSplitPane
public final class UIFSplitPane
A JSplitPane subclass that can try to remove the divider border.
Useful if the splitted components render their own borders. Note that this
feature is not supported by all look&feels. Some look&feel
implementation will always show a divider border, and conversely, others will
never show a divider border.
BasicSplitPaneUI,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JSplitPane |
|---|
JSplitPane.AccessibleJSplitPane |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
PROPERTYNAME_DIVIDER_BORDER_VISIBLE
Holds the name of the bound property that tries to show or hide the split pane's divider border. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, 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 | |
|---|---|
UIFSplitPane()
Constructs a UIFSplitPane configured to arrange the child
components side-by-side horizontally with no continuous layout, using two
buttons for the components. |
|
UIFSplitPane(int newOrientation)
Constructs a UIFSplitPane configured with the specified
orientation and no continuous layout. |
|
UIFSplitPane(int newOrientation,
boolean newContinuousLayout)
Constructs a UIFSplitPane with the specified orientation and
redrawing style. |
|
UIFSplitPane(int orientation,
boolean continuousLayout,
Component leftComponent,
Component rightComponent)
Constructs a UIFSplitPane with the specified orientation,
redrawing style, and given components. |
|
UIFSplitPane(int orientation,
Component leftComponent,
Component rightComponent)
Constructs a UIFSplitPane with the specified orientation and
the given componenents. |
|
| Method Summary | |
|---|---|
static UIFSplitPane |
createStrippedSplitPane(int orientation,
Component leftComponent,
Component rightComponent)
Constructs a UIFSplitPane, i.e. a JSplitPane
that has no borders. |
boolean |
isDividerBorderVisible()
Checks and answers whether the divider border shall be visible or invisible. |
void |
setDividerBorderVisible(boolean newVisibility)
Makes the divider border visible or invisible. |
void |
updateUI()
Updates the UI and sets an empty divider border. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTYNAME_DIVIDER_BORDER_VISIBLE
isDividerBorderVisible(),
setDividerBorderVisible(boolean),
Constant Field Values| Constructor Detail |
|---|
public UIFSplitPane()
UIFSplitPane configured to arrange the child
components side-by-side horizontally with no continuous layout, using two
buttons for the components.
public UIFSplitPane(int newOrientation)
UIFSplitPane configured with the specified
orientation and no continuous layout.
newOrientation - JSplitPane.HORIZONTAL_SPLIT or
JSplitPane.VERTICAL_SPLIT
IllegalArgumentException - if orientation is not one
of HORIZONTAL_SPLIT or VERTICAL_SPLIT.
public UIFSplitPane(int newOrientation,
boolean newContinuousLayout)
UIFSplitPane with the specified orientation and
redrawing style.
newOrientation - JSplitPane.HORIZONTAL_SPLIT or
JSplitPane.VERTICAL_SPLITnewContinuousLayout - a boolean, true for the components to redraw
continuously as the divider changes position, false to wait
until the divider position stops changing to redraw
IllegalArgumentException - if orientation is not one
of HORIZONTAL_SPLIT or VERTICAL_SPLIT
public UIFSplitPane(int orientation,
Component leftComponent,
Component rightComponent)
UIFSplitPane with the specified orientation and
the given componenents.
orientation - JSplitPane.HORIZONTAL_SPLIT or
JSplitPane.VERTICAL_SPLITleftComponent - the Component that will appear on the
left of a horizontally-split pane, or at the top of a
vertically-split panerightComponent - the Component that will appear on the
right of a horizontally-split pane, or at the bottom of a
vertically-split pane
IllegalArgumentException - if orientation is not one
of: HORIZONTAL_SPLIT or VERTICAL_SPLIT
public UIFSplitPane(int orientation,
boolean continuousLayout,
Component leftComponent,
Component rightComponent)
UIFSplitPane with the specified orientation,
redrawing style, and given components.
orientation - JSplitPane.HORIZONTAL_SPLIT or
JSplitPane.VERTICAL_SPLITcontinuousLayout - a boolean, true for the components to redraw
continuously as the divider changes position, false to wait
until the divider position stops changing to redrawleftComponent - the Component that will appear on the
left of a horizontally-split pane, or at the top of a
vertically-split panerightComponent - the Component that will appear on the
right of a horizontally-split pane, or at the bottom of a
vertically-split pane
IllegalArgumentException - if orientation is not one
of HORIZONTAL_SPLIT or VERTICAL_SPLIT| Method Detail |
|---|
public static UIFSplitPane createStrippedSplitPane(int orientation,
Component leftComponent,
Component rightComponent)
UIFSplitPane, i.e. a JSplitPane
that has no borders. Also disabled the one touch exandable property.
orientation - JSplitPane.HORIZONTAL_SPLIT or
JSplitPane.VERTICAL_SPLITleftComponent - the Component that will appear on the
left of a horizontally-split pane, or at the top of a
vertically-split panerightComponent - the Component that will appear on the
right of a horizontally-split pane, or at the bottom of a
vertically-split pane
IllegalArgumentException - if orientation is not one
of: HORIZONTAL_SPLIT or VERTICAL_SPLITpublic boolean isDividerBorderVisible()
public void setDividerBorderVisible(boolean newVisibility)
newVisibility - true for visible, false for invisiblepublic void updateUI()
updateUI in class JSplitPane
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||