code: public void readFromObject(Object data) {
          // cancel pending edits
          getTable().cancelEditing();
  
          Property[] properties = model.getProperties();
          for (int i = 0, c = properties.length; i < c; i++) {
              properties[i].readFromObject(data);
          }
          repaint();
      }
docs: Initializes the PropertySheet from the given object. If any, it cancels
  pending edit before proceeding with properties.
  
  @param data