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, ContainerSkin, DisplaySkin, ExpanderSkin, FileBrowserSkin, FillPaneSkin, FlowPaneSkin, GridPaneFillerSkin, GridPaneSkin, ImageViewSkin, LabelSkin, LinkButtonSkin, ListButtonSkin, MenuBarItemSkin, MenuButtonSkin, MenuItemSkin, MovieViewSkin, PanelSkin, PushButtonSkin, RadioButtonSkin, RollupSkin, ScrollPaneSkin, SeparatorSkin, SliderSkin, StackPaneSkin, TablePaneFillerSkin, TablePaneSkin, TabPaneSkin, TerraAccordionSkin, TerraAccordionSkin.PanelHeaderSkin, TerraActivityIndicatorSkin, TerraAlertSkin, TerraBorderSkin, TerraBoxPaneSkin, TerraCalendarButtonSkin, TerraCalendarSkin, TerraCalendarSkin.DateButtonSkin, TerraCheckboxSkin, TerraColorChooserButtonSkin, TerraColorChooserSkin, TerraDialogSkin, TerraExpanderSkin, TerraExpanderSkin.ShadeButtonSkin, TerraFileBrowserSheetSkin, TerraFileBrowserSkin, TerraFillPaneSkin, TerraFormSkin, TerraFrameSkin, TerraFrameSkin.FrameButtonSkin, TerraGridPaneSkin, TerraLabelSkin, TerraLinkButtonSkin, TerraListButtonSkin, TerraListViewSkin, TerraMenuBarItemSkin, TerraMenuBarSkin, TerraMenuButtonSkin, TerraMenuItemSkin, TerraMenuPopupSkin, TerraMenuSkin, TerraMeterSkin, TerraPaletteSkin, TerraPanelSkin, 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, TextAreaSkin, TextPaneSkin, WindowSkin
public interface ComponentStateListener
Component state listener interface.
enabledChanged
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 the
Component.isEnabled()
method.
- Parameters:
component
- The component whose enabled state is changing.
focusedChanged
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.