| Constructor and Description |
|---|
MenuCell(String title,
MenuLayout subMenuLayout,
SdlArtwork icon,
List<MenuCell> subCells)
Deprecated.
|
MenuCell(String title,
SdlArtwork icon,
List<String> voiceCommands,
MenuSelectionListener listener)
Deprecated.
|
MenuCell(String title,
String secondaryText,
String tertiaryText,
MenuLayout subMenuLayout,
SdlArtwork icon,
SdlArtwork secondaryArtwork,
List<MenuCell> subCells)
Creates a new MenuCell Object with multiple parameters and optional fields set
NOTE: because this has sub-cells, there does not need to be a listener
|
MenuCell(String title,
String secondaryText,
String tertiaryText,
SdlArtwork icon,
SdlArtwork secondaryArtwork,
List<String> voiceCommands,
MenuSelectionListener listener)
Creates a new MenuCell Object with multiple parameters and optional fields set
|
| Modifier and Type | Method and Description |
|---|---|
MenuCell |
clone()
Creates a deep copy of the object
|
boolean |
equals(Object o)
Uses our custom hashCode for MenuCell objects
|
SdlArtwork |
getIcon()
Gets the icon for the cell
|
MenuSelectionListener |
getMenuSelectionListener()
The listener that gets triggered when the menuCell object is selected
|
SdlArtwork |
getSecondaryArtwork()
Get the cell's secondaryArtwork
|
String |
getSecondaryText()
Get the cell's secondaryText
|
List<MenuCell> |
getSubCells()
The list of subCells for this menu item
|
MenuLayout |
getSubMenuLayout()
The submenu's layout that the subCells will be shown in.
|
String |
getTertiaryText()
Get the cell's tertiaryText
|
String |
getTitle()
Gets the title of the menu cell
|
List<String> |
getVoiceCommands()
the string list used by the IVI system for voice commands
|
int |
hashCode()
Note: You should compare using the
equals(Object) method. |
void |
setIcon(SdlArtwork icon)
Sets the icon of the menu cell
|
void |
setMenuSelectionListener(MenuSelectionListener menuSelectionListener)
The listener for when a menu item is selected
|
void |
setSecondaryArtwork(SdlArtwork secondaryArtwork)
Sets the secondaryArtwork
|
void |
setSecondaryText(String secondaryText)
Sets the secondaryText
|
void |
setSubCells(List<MenuCell> subCells)
The list of MenuCells that can be set as subCells
|
void |
setSubMenuLayout(MenuLayout subMenuLayout)
The submenu's layout that the subCells will be shown in.
|
void |
setTertiaryText(String tertiaryText)
Sets the tertiaryText
|
void |
setTitle(String title)
Sets the title of the menu cell
|
void |
setVoiceCommands(List<String> voiceCommands)
A list of Strings that will be used for voice commands
|
@Deprecated public MenuCell(@NonNull String title, @Nullable SdlArtwork icon, @Nullable List<String> voiceCommands, @Nullable MenuSelectionListener listener)
title - The cell's primary texticon - The cell's imagevoiceCommands - Voice commands that will activate the menu celllistener - Calls the code that will be run when the menu cell is selectedpublic MenuCell(@NonNull
String title,
@Nullable
String secondaryText,
@Nullable
String tertiaryText,
@Nullable
SdlArtwork icon,
@Nullable
SdlArtwork secondaryArtwork,
@Nullable
List<String> voiceCommands,
@Nullable
MenuSelectionListener listener)
title - The cell's primary textsecondaryText - The cell's secondary texttertiaryText - The cell's tertiary texticon - The cell's imagesecondaryArtwork - The cell's secondary imagevoiceCommands - Voice commands that will activate the menu celllistener - Calls the code that will be run when the menu cell is selected@Deprecated public MenuCell(@NonNull String title, @Nullable MenuLayout subMenuLayout, @Nullable SdlArtwork icon, @Nullable List<MenuCell> subCells)
title - The cell's primary textsubMenuLayout - The submenu's layout that the subCells will be shown in. If `null`, the
default submenu layout in the screen manager's `MenuConfiguration` will be used.icon - The cell's imagesubCells - The sub-cells for the sub menu that will appear when the cell is selectedpublic MenuCell(@NonNull
String title,
@Nullable
String secondaryText,
@Nullable
String tertiaryText,
@Nullable
MenuLayout subMenuLayout,
@Nullable
SdlArtwork icon,
@Nullable
SdlArtwork secondaryArtwork,
@Nullable
List<MenuCell> subCells)
title - The cell's primary textsecondaryText - The cell's secondary texttertiaryText - The cell's tertiary textsubMenuLayout - The submenu's layout that the subCells will be shown in. If `null`, the
default submenu layout in the screen manager's `MenuConfiguration` will be used.icon - The cell's imagesecondaryArtwork - The cell's secondary imagesubCells - The sub-cells for the sub menu that will appear when the cell is selectedpublic void setTitle(@NonNull
String title)
title - - the title of the cell. Requiredpublic String getTitle()
public void setIcon(SdlArtwork icon)
icon - - the icon being set, of type SdlArtworkpublic SdlArtwork getIcon()
SdlArtwork icon for the cellpublic void setVoiceCommands(List<String> voiceCommands)
voiceCommands - - the string list used by the IVI system for voice commandspublic List<String> getVoiceCommands()
public void setSubCells(List<MenuCell> subCells)
subCells - - the list of subCells for this menu itempublic List<MenuCell> getSubCells()
public void setMenuSelectionListener(MenuSelectionListener menuSelectionListener)
menuSelectionListener - the listener for this menuCell objectpublic MenuSelectionListener getMenuSelectionListener()
public void setSubMenuLayout(MenuLayout subMenuLayout)
subMenuLayout - - the layout used for the sub menupublic MenuLayout getSubMenuLayout()
public void setSecondaryText(String secondaryText)
secondaryText - the cell's secondaryTextpublic String getSecondaryText()
public void setTertiaryText(String tertiaryText)
tertiaryText - the cell's tertiaryTextpublic String getTertiaryText()
public void setSecondaryArtwork(SdlArtwork secondaryArtwork)
secondaryArtwork - the cell's secondaryArtworkpublic SdlArtwork getSecondaryArtwork()
public int hashCode()
equals(Object) method. public boolean equals(Object o)