Examples of blockDisconnected()


Examples of edu.mit.blocks.renderable.RenderableBlock.blockDisconnected()

            throw new RuntimeException("INCONSISTANCY VIOLATION: "
                    + "parent block was valid, non-null, and existed.\n\tBut yet, when we get it's renderable"
                    + "representation, we recieve a null instance.\n\tIf the Block instance of an ID is non-null"
                    + "then its graphical RenderableBlock should be non-null as well");
        }
        parentRenderable.blockDisconnected(parentSocket);
        workspace.notifyListeners(new WorkspaceEvent(workspace, widget, link, WorkspaceEvent.BLOCKS_DISCONNECTED));
    }
    /**
     * @requires none
     * @modifies bufferedBlock (the block that is copied)
View Full Code Here

Examples of edu.mit.blocks.renderable.RenderableBlock.blockDisconnected()

        BlockConnector conn2 = b2.getConnectorTo(getBlockID());
        BlockConnector conn = getConnectorTo(id);
        BlockLink link = BlockLink.getBlockLink(workspace, this, b2, conn, conn2);
        RenderableBlock rb = workspace.getEnv().getRenderableBlock(link.getSocketBlockID());
        link.disconnect();
        rb.blockDisconnected(link.getSocket());
        workspace.notifyListeners(
                new WorkspaceEvent(workspace, rb.getParentWidget(), link, WorkspaceEvent.BLOCKS_DISCONNECTED));

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.