Class ComponentSplitter
java.lang.Object
VASSAL.tools.ComponentSplitter
Deprecated, for removal: This API element is subject to removal in a future version.
Provides support for hidden panels. Use the split methods to create an
instance of
ComponentSplitter.SplitPane
, which can then be manipulated to show and
hide the panel-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version.Contains methods to automatically show/hide one of its components (the "hideable" component) while the other (the "base" component) remains always visible. -
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiongetSplitAncestor
(Component c, int index) Deprecated, for removal: This API element is subject to removal in a future version.Search the containment hierarchy for the index-thComponentSplitter.SplitPane
ancestor of a target componentstatic void
Deprecated, for removal: This API element is subject to removal in a future version.static ComponentSplitter.SplitPane
Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel beside the base component.static Component
splitAncestorOf
(Component c, int index) Deprecated, for removal: This API element is subject to removal in a future version.Search the containment hierarchy for the ithComponentSplitter.SplitPane
ancestor of a target componentsplitBottom
(Component base, Component hideableComponent, boolean resizeOnVisibilityChange) Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel to the bottom of the base component.Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel to the left of the base component.splitRight
(Component base, Component hideableComponent, boolean resizeOnVisibilityChange) Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel to the right of the base component.Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel to the top of the base component.
-
Constructor Details
-
ComponentSplitter
public ComponentSplitter()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
splitRight
public ComponentSplitter.SplitPane splitRight(Component base, Component hideableComponent, boolean resizeOnVisibilityChange) Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel to the right of the base component. The base component is replaced by aComponentSplitter.SplitPane
- Parameters:
base
- the base componenthideableComponent
- the hideable componentresizeOnVisibilityChange
- If true, the containing window will expand or shrink to an appropriate size when the hideable component is shown or hidden- Returns:
- the
ComponentSplitter.SplitPane
containing the two components
-
splitLeft
public ComponentSplitter.SplitPane splitLeft(Component base, Component hideableComponent, boolean resizeOnVisibilityChange) Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel to the left of the base component. The base component is replaced by aComponentSplitter.SplitPane
- Parameters:
base
- the base componenthideableComponent
- the hideable componentresizeOnVisibilityChange
- If true, the containing window will expand or shrink to an appropriate size when the hideable component is shown or hidden- Returns:
- the
ComponentSplitter.SplitPane
containing the two components
-
splitBottom
public ComponentSplitter.SplitPane splitBottom(Component base, Component hideableComponent, boolean resizeOnVisibilityChange) Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel to the bottom of the base component. The base component is replaced by aComponentSplitter.SplitPane
- Parameters:
base
- the base componenthideableComponent
- the hideable componentresizeOnVisibilityChange
- If true, the containing window will expand or shrink to an appropriate size when the hideable component is shown or hidden- Returns:
- the
ComponentSplitter.SplitPane
containing the two components
-
splitTop
public ComponentSplitter.SplitPane splitTop(Component base, Component hideableComponent, boolean resizeOnVisibilityChange) Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel to the top of the base component. The base component is replaced by aComponentSplitter.SplitPane
- Parameters:
base
- the base componenthideableComponent
- the hideable componentresizeOnVisibilityChange
- If true, the containing window will expand or shrink to an appropriate size when the hideable component is shown or hidden- Returns:
- the
ComponentSplitter.SplitPane
containing the two components
-
getSplitAncestor
Deprecated, for removal: This API element is subject to removal in a future version.Search the containment hierarchy for the index-thComponentSplitter.SplitPane
ancestor of a target component- Parameters:
c
- the target componentindex
- If -1, return the lastComponentSplitter.SplitPane
ancestor- Returns:
- the
ComponentSplitter.SplitPane
ancestor, or the original component if none is found
-
splitAncestorOf
Deprecated, for removal: This API element is subject to removal in a future version.Search the containment hierarchy for the ithComponentSplitter.SplitPane
ancestor of a target component- Parameters:
c
- the target componentindex
- If -1, return the lastComponentSplitter.SplitPane
ancestor- Returns:
- the
ComponentSplitter.SplitPane
ancestor, or the original component if none is found
-
split
public static ComponentSplitter.SplitPane split(Component base, Component newComponent, int hideablePosition, boolean resize) Deprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel beside the base component. The base component is replaced by aComponentSplitter.SplitPane
- Parameters:
base
- the base componentnewComponent
- the hideable component, one ofComponentSplitter.SplitPane.HIDE_TOP
,ComponentSplitter.SplitPane.HIDE_RIGHT
,ComponentSplitter.SplitPane.HIDE_BOTTOM
,ComponentSplitter.SplitPane.HIDE_LEFT
hideablePosition
- the position of the hideable componentresize
- If true, the containing window will expand or shrink to an appropriate size when the hideable component is shown or hidden- Returns:
- the
ComponentSplitter.SplitPane
containing the two components
-
main
Deprecated, for removal: This API element is subject to removal in a future version.
-
SplitPane
instead.