@Override public void setElementOrderDetail(Element element, AOrderBoardDetail orderFurniture) { DimensionItem dimensionItem = element.getDimensionItem(); if (dimensionItem instanceof ElementDimensionItem) { ((ElementDimensionItem) dimensionItem).setFurniture(orderFurniture); } }
@Override public AOrderBoardDetail getElementOrderDetail(Element element) { DimensionItem dimensionItem = element.getDimensionItem(); if (dimensionItem instanceof ElementDimensionItem) { return ((ElementDimensionItem) dimensionItem).getFurniture(); } return null; }
@Override public void fillWithDimensionItem(Element element, DimensionItem dimensionItem) { element.setRotatable(((ElementDimensionItem) dimensionItem).isRotatable()); AElement2StringConverter.setDescriptionsTo(element); }
@Override public int compareTo(ElementDescriptor o) { return (element.getWidth() - o.element.getWidth()) * -1; }