public class ButtonState
extends java.lang.Object
| Constructor and Description | 
|---|
ButtonState(android.content.Context context,
           int key,
           int desc,
           android.graphics.drawable.Drawable image,
           java.lang.String eventType)
Builds a button state object for a given key, description, state manager and event type. 
 | 
ButtonState(android.content.Context context,
           int key,
           int desc,
           android.graphics.drawable.Drawable image,
           java.lang.String eventType,
           android.view.View.OnClickListener handler)
Builds a button state object for a given key, description and state manager. 
 | 
ButtonState(android.content.Context context,
           int key,
           int desc,
           android.graphics.drawable.Drawable image,
           android.view.View.OnClickListener handler)
Builds a button state object for a given key, description and state manager. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getContentDescription()
Implements a getter for the accessibility content description. 
 | 
java.lang.String | 
getEventType()
Implements a getter for the button text. 
 | 
android.view.View.OnClickListener | 
getHandler()
Implements a getter for the button on-click handler. 
 | 
android.graphics.drawable.Drawable | 
getImage()
Implements a getter for the custom image. 
 | 
java.lang.CharSequence | 
getText()
Implements a getter for the button text. 
 | 
public ButtonState(android.content.Context context,
                   int key,
                   int desc,
                   android.graphics.drawable.Drawable image,
                   java.lang.String eventType)
context - The Android application context.key - The given key used to identify the button glyph.desc - The given accessible descripiton.image - The, likely null, custom image to use instead of the icon font face.eventType - The event type to emit when the the button is clicked.public ButtonState(android.content.Context context,
                   int key,
                   int desc,
                   android.graphics.drawable.Drawable image,
                   android.view.View.OnClickListener handler)
context - The Android application context.key - The given key used to identify the button glyph.desc - The given accessible descripiton.image - The, likely null, custom image to use instead of the icon font face.handler - A handler to use instead of emitting an event.public ButtonState(android.content.Context context,
                   int key,
                   int desc,
                   android.graphics.drawable.Drawable image,
                   java.lang.String eventType,
                   android.view.View.OnClickListener handler)
context - The Android application context.key - The given key used to identify the button glyph.desc - The given accessible descripiton.image - The, likely null, custom image to use instead of the icon font face.eventType - The event type to emit for this button state.handler - A handler to invoke when the event type is null.public android.graphics.drawable.Drawable getImage()
public java.lang.CharSequence getText()
public java.lang.String getContentDescription()
public java.lang.String getEventType()
public android.view.View.OnClickListener getHandler()