本文整理汇总了Java中com.ardublock.ui.listener.OpenblocksFrameListener类的典型用法代码示例。如果您正苦于以下问题:Java OpenblocksFrameListener类的具体用法?Java OpenblocksFrameListener怎么用?Java OpenblocksFrameListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OpenblocksFrameListener类属于com.ardublock.ui.listener包,在下文中一共展示了OpenblocksFrameListener类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Context
import com.ardublock.ui.listener.OpenblocksFrameListener; //导入依赖的package包/类
Context(boolean isInArduino)
{
workspaceController = new WorkspaceController();
resetWorksapce();
workspace = workspaceController.getWorkspace();
workspaceChanged = false;
highlightBlockSet = new HashSet<RenderableBlock>();
ofls = new HashSet<OpenblocksFrameListener>();
this.workspace = workspaceController.getWorkspace();
this.isInArduino = isInArduino;
osType = determineOsType();
config = new Configuration(this);
uiMessageBundle = ResourceBundle.getBundle("com/ardublock/block/ardublock");
}
示例2: didSave
import com.ardublock.ui.listener.OpenblocksFrameListener; //导入依赖的package包/类
public void didSave()
{
for (OpenblocksFrameListener ofl : ofls)
{
ofl.didSave();
}
}
示例3: didLoad
import com.ardublock.ui.listener.OpenblocksFrameListener; //导入依赖的package包/类
public void didLoad()
{
for (OpenblocksFrameListener ofl : ofls)
{
ofl.didLoad();
}
}
示例4: didGenerate
import com.ardublock.ui.listener.OpenblocksFrameListener; //导入依赖的package包/类
public void didGenerate(String sourcecode)
{
for (OpenblocksFrameListener ofl : ofls)
{
ofl.didGenerate(sourcecode);
}
}
示例5: Context
import com.ardublock.ui.listener.OpenblocksFrameListener; //导入依赖的package包/类
private Context()
{
workspaceController = new WorkspaceController();
resetWorksapce();
workspace = workspaceController.getWorkspace();
workspaceChanged = false;
highlightBlockSet = new HashSet<RenderableBlock>();
ofls = new HashSet<OpenblocksFrameListener>();
this.workspace = workspaceController.getWorkspace();
isInArduino = false;
osType = determineOsType();
}
示例6: registerOpenblocksFrameListener
import com.ardublock.ui.listener.OpenblocksFrameListener; //导入依赖的package包/类
public void registerOpenblocksFrameListener(OpenblocksFrameListener ofl)
{
ofls.add(ofl);
}
示例7: addListener
import com.ardublock.ui.listener.OpenblocksFrameListener; //导入依赖的package包/类
public void addListener(OpenblocksFrameListener ofl)
{
context.registerOpenblocksFrameListener(ofl);
}