ProcedureCustomCategory

public class ProcedureCustomCategory extends Object
implements CustomCategory

Class for building categories for procedure blocks (user-defined functions).

Field Summary

protected final BlockFactory mBlockFactory
protected final BlocklyController mController
protected final String mDefaultProcedureName
protected final ProcedureManager mProcedureManager
protected final Workspace mWorkspace

Public Constructor Summary

Public Method Summary

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

Inherited Method Summary

Fields

protected final BlockFactory mBlockFactory

protected final BlocklyController mController

protected final String mDefaultProcedureName

protected final ProcedureManager mProcedureManager

protected final Workspace mWorkspace

Public Constructors

public ProcedureCustomCategory (BlocklyController controller)

Parameters
controller

Public Methods

public String getDefaultProcedureName ()

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.