Package org.apache.pivot.wtk
Interface ComponentStateListener
-
- All Known Implementing Classes:
ActivityIndicatorSkin
,BorderSkin
,BoxPaneSkin
,ButtonSkin
,CalendarButtonSkin
,CalendarSkin
,CardPaneSkin
,ChartViewSkin
,CheckboxSkin
,ColorChooserButtonSkin
,ColorChooserButtonSkin.ColorChooserPopupSkin
,ColorChooserSkin
,ComponentSkin
,ComponentStateListener.Adapter
,ComponentStateListener.Listeners
,ContainerSkin
,DisplaySkin
,ExpanderSkin
,FileBrowserSkin
,FillPaneSkin
,FlowPaneSkin
,GridPaneFillerSkin
,GridPaneSkin
,ImageViewSkin
,LabelSkin
,LinkButtonSkin
,ListButtonSkin
,MenuBarItemSkin
,MenuButtonSkin
,MenuItemSkin
,MovieViewSkin
,NumberRulerSkin
,PanelSkin
,PushButtonSkin
,RadioButtonSkin
,RollupSkin
,RulerSkin
,ScrollPaneSkin
,SeparatorSkin
,SliderSkin
,StackPaneSkin
,TablePaneFillerSkin
,TablePaneSkin
,TabPaneSkin
,TerraAccordionSkin
,TerraAccordionSkin.PanelHeaderSkin
,TerraActivityIndicatorSkin
,TerraAlertSkin
,TerraBorderSkin
,TerraCalendarButtonSkin
,TerraCalendarSkin
,TerraCalendarSkin.DateButtonSkin
,TerraCheckboxSkin
,TerraColorChooserButtonSkin
,TerraColorChooserSkin
,TerraDialogSkin
,TerraExpanderSkin
,TerraExpanderSkin.ShadeButtonSkin
,TerraFileBrowserSheetSkin
,TerraFileBrowserSkin
,TerraFormSkin
,TerraFrameSkin
,TerraFrameSkin.FrameButtonSkin
,TerraGaugeSkin
,TerraGridPaneSkin
,TerraLabelSkin
,TerraLinkButtonSkin
,TerraListButtonSkin
,TerraListViewSkin
,TerraMenuBarItemSkin
,TerraMenuBarSkin
,TerraMenuButtonSkin
,TerraMenuItemSkin
,TerraMenuPopupSkin
,TerraMenuSkin
,TerraMeterSkin
,TerraPaletteSkin
,TerraPanoramaSkin
,TerraPanoramaSkin.ScrollButtonSkin
,TerraPromptSkin
,TerraPushButtonSkin
,TerraRadioButtonSkin
,TerraRollupSkin
,TerraRollupSkin.RollupButtonSkin
,TerraScrollBarSkin
,TerraScrollBarSkin.HandleSkin
,TerraScrollBarSkin.ScrollButtonSkin
,TerraScrollPaneCornerSkin
,TerraScrollPaneSkin
,TerraSeparatorSkin
,TerraSheetSkin
,TerraSliderSkin
,TerraSliderSkin.ThumbSkin
,TerraSpinnerSkin
,TerraSpinnerSkin.SpinButtonSkin
,TerraSpinnerSkin.SpinnerContentSkin
,TerraSplitPaneSkin
,TerraSplitPaneSkin.SplitterShadowSkin
,TerraSplitPaneSkin.SplitterSkin
,TerraSuggestionPopupSkin
,TerraTablePaneSkin
,TerraTableViewHeaderSkin
,TerraTableViewSkin
,TerraTabPaneSkin
,TerraTabPaneSkin.TabButtonSkin
,TerraTextAreaSkin
,TerraTextInputSkin
,TerraTextPaneSkin
,TerraTooltipSkin
,TerraTreeViewSkin
,TerraVFSBrowserSheetSkin
,TerraVFSBrowserSkin
,TextAreaSkin
,TextPaneSkin
,VFSBrowserSkin
,WindowSkin
public interface ComponentStateListener
Component state listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ComponentStateListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
ComponentStateListener.Listeners
Component state listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
enabledChanged(Component component)
Called when a component's enabled state has changed.default void
focusedChanged(Component component, Component obverseComponent)
Called when a component's focused state has changed.
-
-
-
Method Detail
-
enabledChanged
default void enabledChanged(Component component)
Called when a component's enabled state has changed.Called both when the component is enabled and when it is disabled. The component's
enabled
flag has already been set when this method is called so the new state can be determined by calling theComponent.isEnabled()
method.- Parameters:
component
- The component whose enabled state is changing.
-
focusedChanged
default void focusedChanged(Component component, Component obverseComponent)
Called when a component's focused state has changed.This will be called both when a component gains focus and when it loses focus. The currently focused component has already been set when this method is called, so that the new state of the component can be determined by calling the
Component.isFocused()
method.- Parameters:
component
- The component that is either gaining focus or the one that previously had focus and is now losing it.obverseComponent
- If the component is gaining focus, this is the component that is losing focus. If the component is losing focus this is the component that is gaining the focus instead.
-
-