API Reference 0.3.24dart_web_toolkit_uiTab

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 #

inherited from HasWordWrap

Gets whether word-wrapping is enabled.

@return <code>true</code> if word-wrapping is enabled.

abstract void set wordWrap(bool wrap) #

inherited from HasWordWrap

Sets whether word-wrapping is enabled.

@param wrap <code>true</code> to enable word-wrapping.

Methods

abstract HandlerRegistration addClickHandler(ClickHandler handler) #

inherited from HasClickHandlers

Adds a {@link ClickEvent} handler.

@param handler the click handler @return {@link HandlerRegistration} used to remove this handler

abstract HandlerRegistration addKeyDownHandler(KeyDownHandler handler) #

inherited from HasKeyDownHandlers

Adds a {@link KeyDownEvent} handler.

@param handler the key down handler @return {@link HandlerRegistration} used to remove this handler

abstract HandlerRegistration addKeyPressHandler(KeyPressHandler handler) #

inherited from HasKeyPressHandlers

Adds a {@link KeyPressEvent} handler.

@param handler the key press handler @return {@link HandlerRegistration} used to remove this handler

abstract HandlerRegistration addKeyUpHandler(KeyUpHandler handler) #

inherited from HasKeyUpHandlers

Adds a {@link KeyUpEvent} handler.

@param handler the key up handler @return {@link HandlerRegistration} used to remove this handler

abstract void fireEvent(DwtEvent event) #

inherited from HasHandlers

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}