com.sencha.gxt.theme.base.client.button
Class ButtonCellDefaultAppearance<C>

java.lang.Object
  extended by com.sencha.gxt.theme.base.client.button.ButtonCellDefaultAppearance<C>
Type Parameters:
C - the button data type
All Implemented Interfaces:
ButtonCell.ButtonCellAppearance<C>

public class ButtonCellDefaultAppearance<C>
extends java.lang.Object
implements ButtonCell.ButtonCellAppearance<C>

Default implementation of the ButtonCellAppearance.

Note: The Blue and Gray buttons.


Nested Class Summary
static interface ButtonCellDefaultAppearance.ButtonCellResources
           
static interface ButtonCellDefaultAppearance.ButtonCellStyle
           
static interface ButtonCellDefaultAppearance.ButtonCellTemplates
           
 
Constructor Summary
ButtonCellDefaultAppearance()
          Creates a button cell base appearance.
ButtonCellDefaultAppearance(ButtonCellDefaultAppearance.ButtonCellResources resources)
          Creates a button cell base appearance using the specified resources and templates.
ButtonCellDefaultAppearance(ButtonCellDefaultAppearance.ButtonCellResources resources, ButtonCellDefaultAppearance.ButtonCellTemplates templates, Frame frame)
          Creates a button cell base appearance using the specified resources and templates.
 
Method Summary
 XElement getButtonElement(XElement parent)
           
 XElement getFocusElement(XElement parent)
           
 void onFocus(XElement parent, boolean focused, NativeEvent event)
           
 void onOver(XElement parent, boolean over, NativeEvent event)
           
 void onPress(XElement parent, boolean pressed, NativeEvent event)
           
 void onToggle(XElement parent, boolean pressed)
           
 void render(ButtonCell<C> cell, Cell.Context context, C value, SafeHtmlBuilder sb)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonCellDefaultAppearance

public ButtonCellDefaultAppearance()
Creates a button cell base appearance.


ButtonCellDefaultAppearance

public ButtonCellDefaultAppearance(ButtonCellDefaultAppearance.ButtonCellResources resources)
Creates a button cell base appearance using the specified resources and templates.

Parameters:
resources - the button cell resources

ButtonCellDefaultAppearance

public ButtonCellDefaultAppearance(ButtonCellDefaultAppearance.ButtonCellResources resources,
                                   ButtonCellDefaultAppearance.ButtonCellTemplates templates,
                                   Frame frame)
Creates a button cell base appearance using the specified resources and templates.

Parameters:
resources - the button cell resources
templates - the templates
frame - the frame
Method Detail

getButtonElement

public XElement getButtonElement(XElement parent)
Specified by:
getButtonElement in interface ButtonCell.ButtonCellAppearance<C>

getFocusElement

public XElement getFocusElement(XElement parent)
Specified by:
getFocusElement in interface ButtonCell.ButtonCellAppearance<C>

onFocus

public void onFocus(XElement parent,
                    boolean focused,
                    NativeEvent event)
Specified by:
onFocus in interface ButtonCell.ButtonCellAppearance<C>

onOver

public void onOver(XElement parent,
                   boolean over,
                   NativeEvent event)
Specified by:
onOver in interface ButtonCell.ButtonCellAppearance<C>

onPress

public void onPress(XElement parent,
                    boolean pressed,
                    NativeEvent event)
Specified by:
onPress in interface ButtonCell.ButtonCellAppearance<C>

onToggle

public void onToggle(XElement parent,
                     boolean pressed)
Specified by:
onToggle in interface ButtonCell.ButtonCellAppearance<C>

render

public void render(ButtonCell<C> cell,
                   Cell.Context context,
                   C value,
                   SafeHtmlBuilder sb)
Specified by:
render in interface ButtonCell.ButtonCellAppearance<C>


Copyright © 2012. All Rights Reserved.