Package org.apache.pivot.wtk
Interface ContainerListener
-
- All Known Implementing Classes:
BorderSkin
,BoxPaneSkin
,CalendarSkin
,CardPaneSkin
,ColorChooserButtonSkin.ColorChooserPopupSkin
,ColorChooserSkin
,ContainerListener.Adapter
,ContainerListener.Listeners
,ContainerSkin
,DisplaySkin
,ExpanderSkin
,FileBrowserSkin
,FillPaneSkin
,FlowPaneSkin
,GridPaneSkin
,PanelSkin
,RollupSkin
,ScrollPaneSkin
,SliderSkin
,StackPaneSkin
,TablePaneSkin
,TabPaneSkin
,TerraAccordionSkin
,TerraAlertSkin
,TerraBorderSkin
,TerraCalendarSkin
,TerraColorChooserSkin
,TerraDialogSkin
,TerraExpanderSkin
,TerraFileBrowserSheetSkin
,TerraFileBrowserSkin
,TerraFormSkin
,TerraFrameSkin
,TerraGridPaneSkin
,TerraMenuBarSkin
,TerraMenuPopupSkin
,TerraMenuSkin
,TerraPaletteSkin
,TerraPanoramaSkin
,TerraPromptSkin
,TerraRollupSkin
,TerraScrollBarSkin
,TerraScrollPaneSkin
,TerraSheetSkin
,TerraSliderSkin
,TerraSpinnerSkin
,TerraSplitPaneSkin
,TerraSuggestionPopupSkin
,TerraTablePaneSkin
,TerraTabPaneSkin
,TerraTextPaneSkin
,TerraTooltipSkin
,TerraVFSBrowserSheetSkin
,TerraVFSBrowserSkin
,TextPaneSkin
,VFSBrowserSkin
,WindowSkin
public interface ContainerListener
Container listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ContainerListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
ContainerListener.Listeners
Container listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
componentInserted(Container container, int index)
Called when a component has been inserted into a container's component sequence.default void
componentMoved(Container container, int from, int to)
Called when a component has moved from one z-index to another within a container.default void
componentsRemoved(Container container, int index, Sequence<Component> removed)
Called when components have been removed from a container's component sequence.default void
focusTraversalPolicyChanged(Container container, FocusTraversalPolicy previousFocusTraversalPolicy)
Called when a container's focus traversal policy has changed.
-
-
-
Method Detail
-
componentInserted
default void componentInserted(Container container, int index)
Called when a component has been inserted into a container's component sequence.- Parameters:
container
- The container that has changed.index
- The index where the new component has been inserted.
-
componentsRemoved
default void componentsRemoved(Container container, int index, Sequence<Component> removed)
Called when components have been removed from a container's component sequence.- Parameters:
container
- The container that has changed.index
- The starting index of the components that were removed.removed
- The complete sequence of removed components.
-
componentMoved
default void componentMoved(Container container, int from, int to)
Called when a component has moved from one z-index to another within a container.- Parameters:
container
- The container that has changed.from
- The starting index of the component (in Z-order).to
- The place in the Z-order where this component ended up.
-
focusTraversalPolicyChanged
default void focusTraversalPolicyChanged(Container container, FocusTraversalPolicy previousFocusTraversalPolicy)
Called when a container's focus traversal policy has changed.- Parameters:
container
- The container that has changed.previousFocusTraversalPolicy
- The previous value of the focus traversal policy for this container.
-
-