コード例 #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
ファイル: ElementDescriptor.java プロジェクト: akoyro/furman
 @Override
 public int compareTo(ElementDescriptor o) {
   return (element.getWidth() - o.element.getWidth()) * -1;
 }