java.lang.Object
Creates a new MenuCell Object with multiple parameters set
public MenuCell(String title,SdlArtwork icon,java.util.List<java.lang.String> voiceCommands,MenuSelectionListener listener)
Creates a new MenuCell Object with multiple parameters and optional fields set
public MenuCell(String title,String secondaryText,String tertiaryText,SdlArtwork icon,SdlArtwork secondaryArtwork,java.util.List<java.lang.String> voiceCommands,MenuSelectionListener listener)
Creates a new MenuCell Object with multiple parameters set NOTE: because this has sub-cells, there does not need to be a listener
public MenuCell(String title,MenuLayout subMenuLayout,SdlArtwork icon,java.util.List<com.smartdevicelink.managers.screen.menu.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
public MenuCell(String title,String secondaryText,String tertiaryText,MenuLayout subMenuLayout,SdlArtwork icon,SdlArtwork secondaryArtwork,java.util.List<com.smartdevicelink.managers.screen.menu.MenuCell> subCells)
Sets the title of the menu cell
public void setTitle(String title)
Gets the title of the menu cell
public java.lang.String getTitle()
Sets the icon of the menu cell
public void setIcon(SdlArtwork icon)
Gets the icon for the cell
public SdlArtwork getIcon()
A list of Strings that will be used for voice commands
public void setVoiceCommands(java.util.List<java.lang.String> voiceCommands)
the string list used by the IVI system for voice commands
public java.util.List getVoiceCommands()
The list of MenuCells that can be set as subCells
public void setSubCells(java.util.List<com.smartdevicelink.managers.screen.menu.MenuCell> subCells)
The list of subCells for this menu item
public java.util.List getSubCells()
The listener for when a menu item is selected
public void setMenuSelectionListener(MenuSelectionListener menuSelectionListener)
The listener that gets triggered when the menuCell object is selected
public com.smartdevicelink.managers.screen.menu.MenuSelectionListener getMenuSelectionListener()
The submenu's layout that the subCells will be shown in. If `null`, the default submenu layout set via the screen manager's `MenuConfiguration` will be used.
public void setSubMenuLayout(MenuLayout subMenuLayout)
The submenu's layout that the subCells will be shown in. If `null`, the default submenu layout set via the screen manager's `MenuConfiguration` will be used.
public com.smartdevicelink.proxy.rpc.enums.MenuLayout getSubMenuLayout()
Sets the secondaryText
public void setSecondaryText(String secondaryText)
Get the cell's secondaryText
public java.lang.String getSecondaryText()
Sets the tertiaryText
public void setTertiaryText(String tertiaryText)
Get the cell's tertiaryText
public java.lang.String getTertiaryText()
Sets the secondaryArtwork
public void setSecondaryArtwork(SdlArtwork secondaryArtwork)
Get the cell's secondaryArtwork
public SdlArtwork getSecondaryArtwork()
Note: You should compare using the {@link #equals(Object)} method.
Hash the parameters of the object and return the result for comparison
For each param, increase the rotation distance by one.
It is necessary to rotate each of our properties because a simple bitwise OR will produce equivalent results if, for example:
Object 1: getText() = "Hi", getSecondaryText() = "Hello"
Object 2: getText() = "Hello", getSecondaryText() = "Hi"
public int hashCode()
Uses our custom hashCode for MenuCell objects
public boolean equals(Object o)
Creates a deep copy of the object
public com.smartdevicelink.managers.screen.menu.MenuCell clone()
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |