CategorySelectorUI

public interface CategorySelectorUI
Known Indirect Subclasses

An interface that specifies the actions that can be taken on a category selector ui component.

Nested Class Summary

class CategorySelectorUI.Callback Callback for when the user clicks on a category. 

Public Method Summary

abstract BlocklyCategory
abstract void
abstract void
setContents(BlocklyCategory rootCategory)
Set the root category for the category selector.
abstract void
setCurrentCategory(BlocklyCategory category)
Sets the currently selected category.

Public Methods

public abstract BlocklyCategory getCurrentCategory ()

Returns
  • the current category.

public abstract void setCategoryCallback (CategorySelectorUI.Callback categoryCallback)

Parameters
categoryCallback the callback for when the user clicks on a category.

public abstract void setContents (BlocklyCategory rootCategory)

Set the root category for the category selector.

Parameters
rootCategory The top-level category in the toolbox.

public abstract void setCurrentCategory (BlocklyCategory category)

Sets the currently selected category. If category is null, or if the category is not a member of the contents previously set, the current category should be unselected.

Parameters
category the category to use as currently selected.