public void removePage(BPageModel model) { if (model != null) { pageModels.remove(model.getName()); for (BShape shape : model.getShapes()) removeShape(shape.getModel()); model = null; } }
public void removeResource(String resourceName) { for (BShapeModel shapeModel : shapeModels.values()) if (shapeModel.getImageName().equals(resourceName)) shapeModel.setImageName(""); resources.remove(resourceName); resourceNames.remove(resourceName); }
public void removeShape(BShapeModel model) { if (model != null) shapeModels.remove(model.getName()); }