public class SoftButtonState extends Object
SoftButtonObject| Constructor and Description |
|---|
SoftButtonState(String name,
String text,
SdlArtwork artwork)
Creates a new instance of SoftButtonState
Note: state names should be different for each SoftButtonObject
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Uses our custom hashCode for SoftButtonState objects
|
SdlArtwork |
getArtwork()
Get the Artwork for the state
|
boolean |
getHighlighted()
Get whether or not the button should be highlighted on the UI
|
String |
getName()
Get the state name
|
SoftButton |
getSoftButton()
Get the SoftButton for the state
|
SystemAction |
getSystemAction()
Get whether selecting a SoftButton shall call a specific system action
See
SystemAction |
int |
hashCode()
Used to compile hashcode for SoftButtonState for use to compare in equals method
|
void |
setHighlighted(boolean highlighted)
Set whether or not the button should be highlighted on the UI
|
void |
setName(String name)
Set the state name
|
void |
setSystemAction(SystemAction systemAction)
Set whether selecting a SoftButton shall call a specific system action
See
SystemAction |
public SoftButtonState(@NonNull
String name,
String text,
SdlArtwork artwork)
name - a String value represents name of the statetext - a String represents the text for the stateartwork - an SdlArtwork represents the artwork for the statepublic String getName()
public void setName(@NonNull
String name)
name - a String value represents the name of the statepublic boolean getHighlighted()
public void setHighlighted(boolean highlighted)
highlighted - boolean representing whether or not the button should be highlightedpublic SystemAction getSystemAction()
SystemActionpublic void setSystemAction(SystemAction systemAction)
SystemActionsystemAction - SystemAction value representing whether selecting a SoftButton shall call a specific actionpublic SoftButton getSoftButton()
public SdlArtwork getArtwork()
public int hashCode()