Package com.google.gwt.cell.client
Class ButtonCellBase.DefaultAppearance<C>
java.lang.Object
com.google.gwt.cell.client.ButtonCellBase.DefaultAppearance<C>
- Type Parameters:
C- the type that this Cell represents
- All Implemented Interfaces:
ButtonCellBase.Appearance<C>
- Direct Known Subclasses:
TextButtonCell.DefaultAppearance
- Enclosing class:
- ButtonCellBase<C>
public static class ButtonCellBase.DefaultAppearance<C>
extends Object
implements ButtonCellBase.Appearance<C>
The default implementation of the
ButtonCellBase.Appearance.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe resources used by this appearance.static interfaceThe Styles used by this appearance.(package private) static interfaceThe templates used by this appearance. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAppearance(SafeHtmlRenderer<C> renderer) Construct a newButtonCellBase.DefaultAppearanceusing the default styles.DefaultAppearance(SafeHtmlRenderer<C> renderer, ButtonCellBase.DefaultAppearance.Resources resources) Construct a newButtonCellBase.DefaultAppearanceusing the specified resources. -
Method Summary
Modifier and TypeMethodDescriptionReturn theSafeHtmlRendererused by this Appearance to render the contents of the button.voidCalled when the user pushes the button down.voidCalled when the user releases the button from being pushed.voidrender(ButtonCellBase<C> cell, Cell.Context context, C value, SafeHtmlBuilder sb) Render the button and its contents.voidExplicitly focus/unfocus this cell.
-
Constructor Details
-
Method Details
-
getRenderer
Return theSafeHtmlRendererused by this Appearance to render the contents of the button.- Returns:
- a
SafeHtmlRendererinstance
-
onPush
Description copied from interface:ButtonCellBase.AppearanceCalled when the user pushes the button down.- Specified by:
onPushin interfaceButtonCellBase.Appearance<C>- Parameters:
parent- the parent Element
-
onUnpush
Description copied from interface:ButtonCellBase.AppearanceCalled when the user releases the button from being pushed.- Specified by:
onUnpushin interfaceButtonCellBase.Appearance<C>- Parameters:
parent- the parent Element
-
setFocus
Description copied from interface:ButtonCellBase.AppearanceExplicitly focus/unfocus this cell.- Specified by:
setFocusin interfaceButtonCellBase.Appearance<C>- Parameters:
parent- the parent elementfocused- whether this cell should take focus or release it
-