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
Modifier and TypeClassDescriptionstatic interface
The resources used by this appearance.static interface
The Styles used by this appearance.(package private) static interface
The templates used by this appearance. -
Constructor Summary
ConstructorDescriptionDefaultAppearance
(SafeHtmlRenderer<C> renderer) Construct a newButtonCellBase.DefaultAppearance
using the default styles.DefaultAppearance
(SafeHtmlRenderer<C> renderer, ButtonCellBase.DefaultAppearance.Resources resources) Construct a newButtonCellBase.DefaultAppearance
using the specified resources. -
Method Summary
Modifier and TypeMethodDescriptionReturn theSafeHtmlRenderer
used by this Appearance to render the contents of the button.void
Called when the user pushes the button down.void
Called when the user releases the button from being pushed.void
render
(ButtonCellBase<C> cell, Cell.Context context, C value, SafeHtmlBuilder sb) Render the button and its contents.void
Explicitly focus/unfocus this cell.
-
Constructor Details
-
Method Details
-
getRenderer
Return theSafeHtmlRenderer
used by this Appearance to render the contents of the button.- Returns:
- a
SafeHtmlRenderer
instance
-
onPush
Description copied from interface:ButtonCellBase.Appearance
Called when the user pushes the button down.- Specified by:
onPush
in interfaceButtonCellBase.Appearance<C>
- Parameters:
parent
- the parent Element
-
onUnpush
Description copied from interface:ButtonCellBase.Appearance
Called when the user releases the button from being pushed.- Specified by:
onUnpush
in interfaceButtonCellBase.Appearance<C>
- Parameters:
parent
- the parent Element
-
setFocus
Description copied from interface:ButtonCellBase.Appearance
Explicitly focus/unfocus this cell.- Specified by:
setFocus
in interfaceButtonCellBase.Appearance<C>
- Parameters:
parent
- the parent elementfocused
- whether this cell should take focus or release it
-