Class FolderItem

All Implemented Interfaces:
StreamKeyListener, StreamItem
Direct Known Subclasses:
PagedFolderItem, PagedFolderItem.PageItem, ProxyItem

public class FolderItem extends AbstractStreamItem
Simple Stream Item that can contain other stream items.
Author:
Roland von Werden
  • Constructor Details

  • Method Details

    • onKeyEvent

      public void onKeyEvent(KeyEvent event)
      Description copied from interface: StreamKeyListener
      Whenever a key event is triggered this method will be called
      Parameters:
      event -
    • setFolderName

      public void setFolderName(String folderName)
    • getIcon

      public SDImage getIcon()
      Description copied from interface: StreamItem
      Returns the icon to be displayed on the stream deck.
      Specified by:
      getIcon in interface StreamItem
      Overrides:
      getIcon in class AbstractStreamItem
      Returns:
      Returns the icon object of the Item
    • getChildren

      public StreamItem[] getChildren()
      Description copied from interface: StreamItem
      Returns an array with the children of this item. If the item has a parent, the parent must be the 5th item (StreamItem.getChildren()[4] ) in the array.
      Returns:
      Children of this item, or null, if not a folder
    • getChild

      public StreamItem getChild(int i)
    • getChildCount

      public int getChildCount()
      Specified by:
      getChildCount in interface StreamItem
      Overrides:
      getChildCount in class AbstractStreamItem
    • getChildId

      public int getChildId(StreamItem item)
      Description copied from interface: StreamItem
      Returns the Index of the child
      Parameters:
      item - Child to be identified
      Returns:
      Index of the child or -1 if its not a child.