TitleUiEvent

Emitted for subscribers to obtain a title hint (equivalent to the title() supporting method).

The class has a number of responsibilities:

  • capture the target object being interacted with

  • capture the title, if any, as specified to one of the subscribers

The class itself is instantiated automatically by the framework.

API

TitleUiEvent.java
class TitleUiEvent<S> {
  TitleUiEvent()     (1)
  TitleUiEvent(S source)
  void setTitle(String title)     (2)
  void setTranslatableTitle(TranslatableString translatableTitle)     (3)
}
1 TitleUiEvent()

If used then the framework will set state via (non-API) setters.

2 setTitle(String)

For subscribers to call to provide a (non-translated) title for this object.

3 setTranslatableTitle(TranslatableString)

For subscribers to call to provide a translatable (i18n) title for this object.

Members

TitleUiEvent()

If used then the framework will set state via (non-API) setters.

Because the EventObject superclass prohibits a null source, a dummy value is temporarily used.

setTitle(String)

For subscribers to call to provide a (non-translated) title for this object.

setTranslatableTitle(TranslatableString)

For subscribers to call to provide a translatable (i18n) title for this object.