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