Package com.eteks.sweethome3d.swing.FurnitureTable

Examples of com.eteks.sweethome3d.swing.FurnitureTable.FurnitureFilter


    FurnitureController furnitureController =
        new FurnitureController(home, preferences, new SwingViewFactory());
    FurnitureTable table = (FurnitureTable)furnitureController.getView();
    assertEquals("Home furniture count and row count different", homeFurniture.size(), table.getRowCount());
    // Apply a filter on furniture that refuses pieces that are windows
    table.setFurnitureFilter(new FurnitureFilter() {
        public boolean include(Home home, HomePieceOfFurniture piece) {         
          return !piece.isDoorOrWindow();
        }
      });
    // Count how many doors and windows are in home
View Full Code Here

TOP

Related Classes of com.eteks.sweethome3d.swing.FurnitureTable.FurnitureFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.