Package VASSAL.tools
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
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, 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
ConstructorsConstructorDescriptionDeprecated, 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.SplitPaneancestor of a target componentstatic voidDeprecated, for removal: This API element is subject to removal in a future version.static ComponentSplitter.SplitPaneDeprecated, for removal: This API element is subject to removal in a future version.Create a new hideable panel beside the base component.static ComponentsplitAncestorOf(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.SplitPaneancestor 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.SplitPanecontaining 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.SplitPanecontaining 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.SplitPanecontaining 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.SplitPanecontaining 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.SplitPaneancestor of a target component- Parameters:
c- the target componentindex- If -1, return the lastComponentSplitter.SplitPaneancestor- Returns:
- the
ComponentSplitter.SplitPaneancestor, 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.SplitPaneancestor of a target component- Parameters:
c- the target componentindex- If -1, return the lastComponentSplitter.SplitPaneancestor- Returns:
- the
ComponentSplitter.SplitPaneancestor, 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_LEFThideablePosition- 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.SplitPanecontaining the two components
-
main
Deprecated, for removal: This API element is subject to removal in a future version.
-
SplitPaneinstead.