use of com.ait.lienzo.client.core.shape.wires.WiresContainer in project kie-wb-common by kiegroup.
the class WiresUtilsTest method isWiresShapeWhenWiresContainer.
@Test
public void isWiresShapeWhenWiresContainer() {
final WiresContainer wc = new WiresContainer(new Group());
assertFalse(WiresUtils.isWiresShape(wc));
}
use of com.ait.lienzo.client.core.shape.wires.WiresContainer in project kie-wb-common by kiegroup.
the class CanvasView method addChildShape.
@Override
public AbstractCanvas.View addChildShape(final ShapeView<?> parent, final ShapeView<?> child) {
final WiresContainer parentShape = (WiresContainer) parent;
final WiresShape childShape = (WiresShape) child;
return this.addChildShape(parentShape, childShape);
}
use of com.ait.lienzo.client.core.shape.wires.WiresContainer in project kie-wb-common by kiegroup.
the class CanvasView method removeChildShape.
@Override
public AbstractCanvas.View removeChildShape(final ShapeView<?> parent, final ShapeView<?> child) {
final WiresContainer parentShape = (WiresContainer) parent;
final WiresShape childShape = (WiresShape) child;
return this.removeChildShape(parentShape, childShape);
}
use of com.ait.lienzo.client.core.shape.wires.WiresContainer in project kie-wb-common by kiegroup.
the class AbstractNestedLayoutHandler method requestLayout.
@Override
public void requestLayout(final WiresContainer container) {
final WiresContainer root = findRoot(container);
final List<WiresContainer> children = walker.getChildren(root);
for (WiresContainer child : children) {
child.getLayoutHandler().layout(child);
}
}
use of com.ait.lienzo.client.core.shape.wires.WiresContainer in project kie-wb-common by kiegroup.
the class CaseManagementContainmentControl method execute.
@Override
public void execute() {
// Execute.
final AbstractCaseManagementShape ghost = state.getGhost().get();
// Children contains m_ghost and others excluding m_shape. This replaces m_ghost with m_shape.
final WiresContainer originalParent = state.getOriginalParent().get();
reparentDraggedShape(ghost, originalParent);
clearState();
batch();
}
Aggregations