/** The property set model is a model-within-a-model which * manages the expanded/unexpanded state of expandable * property sets and handles the sorting of properties * within a property set */ public void setPropertySetModel (PropertySetModel mod) { if (this.model == mod) return; if (model != null) model.removePropertySetModelListener (this); model = mod; if (model == null) throw new IllegalArgumentException ("Model cannot be null"); //set the node before adding listener so we don't get duplicate //events mod.addPropertySetModelListener (this); model = mod; fireTableChanged(new TableModelEvent(this)); //XXX optimize rows & stuff }
/** The property set model is a model-within-a-model which * manages the expanded/unexpanded state of expandable * property sets and handles the sorting of properties * within a property set */ public void setPropertySetModel (PropertySetModel mod) { if (this.model == mod) return; if (model != null) model.removePropertySetModelListener (this); model = mod; if (model == null) throw new IllegalArgumentException ("Model cannot be null"); //set the node before adding listener so we don't get duplicate //events mod.addPropertySetModelListener (this); model = mod; fireTableChanged(new TableModelEvent(this)); //XXX optimize rows & stuff }
/** The property set model is a model-within-a-model which * manages the expanded/unexpanded state of expandable * property sets and handles the sorting of properties * within a property set */ public void setPropertySetModel(PropertySetModel mod) { if (this.model == mod) { return; } if (model != null) { model.removePropertySetModelListener(this); } model = mod; if (model == null) { throw new IllegalArgumentException("Model cannot be null"); } //set the node before adding listener so we don't get duplicate //events mod.addPropertySetModelListener(this); model = mod; fireTableChanged(new TableModelEvent(this)); //XXX optimize rows & stuff }
/** Set the model which determines the ordering of properties and expansion * state of embedded property sets. */ public void setPropertySetModel (PropertySetModel psm) { PropertySetModel old = getSheetModel().getPropertySetModel(); if (old == psm) return; if (old != null) { old.removePropertySetModelListener (this); } getSheetModel().setPropertySetModel (psm); psm.addPropertySetModelListener (this); }
/** Set the model which determines the ordering of properties and expansion * state of embedded property sets. */ public void setPropertySetModel (PropertySetModel psm) { PropertySetModel old = getSheetModel().getPropertySetModel(); if (old == psm) return; if (old != null) { old.removePropertySetModelListener (this); } getSheetModel().setPropertySetModel (psm); psm.addPropertySetModelListener (this); }
/** Set the model which determines the ordering of properties and expansion * state of embedded property sets. */ public void setPropertySetModel(PropertySetModel psm) { PropertySetModel old = getSheetModel().getPropertySetModel(); if (old == psm) { return; } if (old != null) { old.removePropertySetModelListener(this); } getSheetModel().setPropertySetModel(psm); psm.addPropertySetModelListener(this); }