BlocklyCategory.Callback

public static abstract class BlocklyCategory.Callback extends Object
Known Direct Subclasses

Callback class for listening to changes to this category.

Public Constructor Summary

Public Method Summary

void
onCategoryCleared()
Called when the category is cleared, which removes all its subcategories and items.
void
onItemAdded(int index, BlocklyCategory.CategoryItem item)
Called when an item is added to this category.
void
onItemRemoved(int index, BlocklyCategory.CategoryItem item)
Called when an item is removed from this category.

Inherited Method Summary

Public Constructors

public BlocklyCategory.Callback ()

Public Methods

public void onCategoryCleared ()

Called when the category is cleared, which removes all its subcategories and items.

public void onItemAdded (int index, BlocklyCategory.CategoryItem item)

Called when an item is added to this category.

Parameters
index The index the item was added at.
item The item that was added.

public void onItemRemoved (int index, BlocklyCategory.CategoryItem item)

Called when an item is removed from this category.

Parameters
index The index the item was previously at.
item The item that was removed.