Interface IUIFocusComp

All Superinterfaces:
IFocusComp, IGProp<GProp<?>[]>, IPropCnr
All Known Implementing Classes:
AbstractContentUIContainer, EMapMarkers, EMLGroup, EMList, EMLItemProp, EMUIHeading, EMUISwitch, EMUITabBar, EUIAccordion, EUIButton, EUICalendar, EUICalendarList, EUICheckBox, EUIComboBox, EUIContainer, EUIContextMenu, EUIDateTime, EUIDialog, EUIFileUpload, EUIFloat, EUIGauge, EUIImage, EUIImage2, EUIMap, EUIMenu, EUIMenuBar, EUIOutput, EUIPanel, EUIPanelPart, EUIPanelPartCnr, EUIRadioButton, EUISlider, EUISpinner, EUISwapContainer, EUITabContainer, EUITable, EUIText, EUITextArea, EUIThemeChooser, EUITitlePane, MapMarkers, MLGroup, MList, MLItemProp, MUIHeading, MUISwitch, MUITabBar, UIAbstractListChoice, UIAccordion, UIButton, UICalendar, UICalendarList, UICheckBox, UIComboBox, UIContainer, UIContextMenu, UIDateTime, UIDialog, UIFileUpload, UIFloat, UIGauge, UIImage, UIImage2, UIMap, UIMenu, UIMenuBar, UIOutput, UIPanel, UIPanelBase, UIPanelPart, UIPanelPartCnr, UIRadioButton, UISlider, UISpinner, UISwapContainer, UITabContainer, UITable, UIText, UITextArea, UIThemeChooser, UITitlePane

public interface IUIFocusComp extends IFocusComp
Focus component for the UI components.
Author:
Christopher Mindus
  • Method Details

    • onFocusLost

      default void onFocusLost(IFocusComp focusComp, IGProp<?> trigger, boolean isRemoteInduced)
      Called to the focused component when it loses focus.

      Focus components override this method if they need to process focus lost.

      This method invokes the method UIPanelBase.invokeOnUIFocusMethod(boolean, UIComp, UIComp, IGProp) by default so overriding the method must call super.onFocusLost(IFocusComp, IGProp, boolean). The method receives the opposite as an UIComp, or null when the focus goes to nothing or to a focus component of another kind: the method is always invoked.

      Specified by:
      onFocusLost in interface IFocusComp
      Parameters:
      focusComp - Component receiving focus, null for none.
      trigger - The component triggering the focus, null for none.
      isRemoteInduced - Flag indicating this event is due to a remote event.
    • onFocusGained

      default void onFocusGained(IFocusComp opposite, IGProp<?> trigger, boolean isRemoteInduced)
      Called to the component when it receives focus.

      Focus components override this method if they need to process focus gained.

      This method invokes the method UIPanelBase.invokeOnUIFocusMethod(boolean, UIComp, UIComp, IGProp) by default so overriding the method must call super.onFocusGained(IFocusComp, IGProp, boolean). The method receives the opposite as an UIComp, or null when the focus comes from nothing or from a focus component of another kind: the method is always invoked.

      Note: every focus component of this package extends UIComp, whose own public UIComp.onFocusGained(IFocusComp, IGProp, boolean) hides this default (a class method wins over an interface default); it does the same as this default.

      Specified by:
      onFocusGained in interface IFocusComp
      Parameters:
      opposite - Component losing focus, null for none.
      trigger - The component triggering the focus, null for none.
      isRemoteInduced - Flag indicating this event is due to a remote event.