VariableCustomCategory

public final class VariableCustomCategory extends Object
implements CustomCategory

Class for building categories for variables blocks.

Constant Summary

String ACTION_CREATE_VARIABLE

Public Constructor Summary

Public Method Summary

void
initializeCategory(BlocklyCategory category)
Called to initialize a BlocklyCategory, usually at the time the toolbox XML is loaded.

Inherited Method Summary

Constants

public static final String ACTION_CREATE_VARIABLE

Constant Value: "CREATE_VARIABLE"

Public Constructors

public VariableCustomCategory (BlocklyController controller)

Parameters
controller

Public Methods

public void initializeCategory (BlocklyCategory category)

Called to initialize a BlocklyCategory, usually at the time the toolbox XML is loaded. This method is called once in the lifetime of the category. If the category is dynamic, a reference to the category should be saved for future updates.

Parameters
category The category to initialize.