Tab abstract class
Set of characteristic interfaces supported by {@link TabBar} tabs.
Note that this set might expand over time, so implement this interface at your own risk.
abstract class Tab implements HasAllKeyHandlers, HasClickHandlers, HasWordWrap { /** * Check if the underlying widget implements {@link HasWordWrap}. * * @return true if the widget implements {@link HasWordWrap} */ bool hasWordWrap(); }
Implements
HasWordWrap, HasClickHandlers, HasAllKeyHandlers
Properties
abstract bool get wordWrap #
Gets whether word-wrapping is enabled.
@return <code>true</code> if word-wrapping is enabled.
abstract void set wordWrap(bool wrap) #
Sets whether word-wrapping is enabled.
@param wrap <code>true</code> to enable word-wrapping.
Methods
abstract HandlerRegistration addClickHandler(ClickHandler handler) #
Adds a {@link ClickEvent} handler.
@param handler the click handler @return {@link HandlerRegistration} used to remove this handler
abstract HandlerRegistration addKeyDownHandler(KeyDownHandler handler) #
Adds a {@link KeyDownEvent} handler.
@param handler the key down handler @return {@link HandlerRegistration} used to remove this handler
abstract HandlerRegistration addKeyPressHandler(KeyPressHandler handler) #
Adds a {@link KeyPressEvent} handler.
@param handler the key press handler @return {@link HandlerRegistration} used to remove this handler
abstract HandlerRegistration addKeyUpHandler(KeyUpHandler handler) #
Adds a {@link KeyUpEvent} handler.
@param handler the key up handler @return {@link HandlerRegistration} used to remove this handler
abstract void fireEvent(DwtEvent event) #
Fires the given event to the handlers listening to the event's type.
Any exceptions thrown by handlers will be bundled into a UmbrellaException and then re-thrown after all handlers have completed. An exception thrown by a handler will not prevent other handlers from executing.
@param event the event
abstract bool hasWordWrap() #
Check if the underlying widget implements {@link HasWordWrap}.
@return true if the widget implements {@link HasWordWrap}