Ejemplo n.º 1
0
 void addBlock(RenderableBlock block) {
   // make sure block isn't a null instance
   if (block == null || Block.NULL.equals(block.getBlockID())) return;
   addToBlockLayer(block);
   block.setHighlightParent(this);
   block.addComponentListener(this);
 }
Ejemplo n.º 2
0
 void removeBlock(RenderableBlock block) {
   // make sure block isn't a null instance
   if (block == null || Block.NULL.equals(block.getBlockID())) return;
   // remove from canvas graphically
   this.remove(block);
   block.setHighlightParent(this);
   block.removeComponentListener(this);
 }