/** * Set the subject bean to check for properties. * * @param o the subject bean */ public void setObject(Object o) { if (o != props.getObject()) { if (getTable().isEditing()) { getTable().editingStopped(new ChangeEvent(this)); } getTable().editingCanceled(new ChangeEvent(this)); props.setObject(o); getTableModel().fireTableStructureChanged(); getTable().setRowHeightToMaximumPreferredHeight(); } }
/** * Gets the bound subject bean. * * @return the subject */ public Object getObject() { return props.getObject(); }