/** * {@inheritDoc} <p> * * Sets the underlying data model. Note that if isFilterEnabled you must * call getWrappedModel to access the model given here. In this case * getModel returns a wrapper around the data! * * @param model the data model for this list. * */ @Override public void setModel(ListModel model) { super.setModel(model); if (getAutoCreateRowSorter()) { setRowSorter(createDefaultRowSorter()); } }
/** * {@inheritDoc} <p> * * Sets the underlying data model. Note that if isFilterEnabled you must * call getWrappedModel to access the model given here. In this case * getModel returns a wrapper around the data! * * @param model the data model for this list. * */ @Override public void setModel(ListModel model) { super.setModel(model); if (getAutoCreateRowSorter()) { setRowSorter(createDefaultRowSorter()); } }
/** * {@inheritDoc} <p> * * Sets the underlying data model. Note that if isFilterEnabled you must * call getWrappedModel to access the model given here. In this case * getModel returns a wrapper around the data! * * @param model the data model for this list. * */ @Override public void setModel(ListModel model) { super.setModel(model); if (getAutoCreateRowSorter()) { setRowSorter(createDefaultRowSorter()); } }
/** * {@inheritDoc} <p> * * Sets the underlying data model. Note that if isFilterEnabled you must * call getWrappedModel to access the model given here. In this case * getModel returns a wrapper around the data! * * @param model the data model for this list. * */ @Override public void setModel(ListModel model) { super.setModel(model); if (getAutoCreateRowSorter()) { setRowSorter(createDefaultRowSorter()); } }
/** * Specifies whether a {@code RowSorter} should be created for the * list whenever its model changes. * <p> * When {@code setAutoCreateRowSorter(true)} is invoked, a {@code * RowSorter} is immediately created and installed on the * list. While the {@code autoCreateRowSorter} property remains * {@code true}, every time the model is changed, a new {@code * RowSorter} is created and set as the list's row sorter.<p> * * The default value is false. * * @param autoCreateRowSorter whether or not a {@code RowSorter} * should be automatically created * @beaninfo * bound: true * preferred: true * description: Whether or not to turn on sorting by default. */ public void setAutoCreateRowSorter(boolean autoCreateRowSorter) { if (getAutoCreateRowSorter() == autoCreateRowSorter) return; boolean oldValue = getAutoCreateRowSorter(); this.autoCreateRowSorter = autoCreateRowSorter; if (autoCreateRowSorter) { setRowSorter(createDefaultRowSorter()); } firePropertyChange("autoCreateRowSorter", oldValue, getAutoCreateRowSorter()); }
/** * Specifies whether a {@code RowSorter} should be created for the * list whenever its model changes. * <p> * When {@code setAutoCreateRowSorter(true)} is invoked, a {@code * RowSorter} is immediately created and installed on the * list. While the {@code autoCreateRowSorter} property remains * {@code true}, every time the model is changed, a new {@code * RowSorter} is created and set as the list's row sorter.<p> * * The default value is false. * * @param autoCreateRowSorter whether or not a {@code RowSorter} * should be automatically created * @beaninfo * bound: true * preferred: true * description: Whether or not to turn on sorting by default. */ public void setAutoCreateRowSorter(boolean autoCreateRowSorter) { if (getAutoCreateRowSorter() == autoCreateRowSorter) return; boolean oldValue = getAutoCreateRowSorter(); this.autoCreateRowSorter = autoCreateRowSorter; if (autoCreateRowSorter) { setRowSorter(createDefaultRowSorter()); } firePropertyChange("autoCreateRowSorter", oldValue, getAutoCreateRowSorter()); }
/** * Specifies whether a {@code RowSorter} should be created for the * list whenever its model changes. * <p> * When {@code setAutoCreateRowSorter(true)} is invoked, a {@code * RowSorter} is immediately created and installed on the * list. While the {@code autoCreateRowSorter} property remains * {@code true}, every time the model is changed, a new {@code * RowSorter} is created and set as the list's row sorter.<p> * * The default value is false. * * @param autoCreateRowSorter whether or not a {@code RowSorter} * should be automatically created * @beaninfo * bound: true * preferred: true * description: Whether or not to turn on sorting by default. */ public void setAutoCreateRowSorter(boolean autoCreateRowSorter) { if (getAutoCreateRowSorter() == autoCreateRowSorter) return; boolean oldValue = getAutoCreateRowSorter(); this.autoCreateRowSorter = autoCreateRowSorter; if (autoCreateRowSorter) { setRowSorter(createDefaultRowSorter()); } firePropertyChange("autoCreateRowSorter", oldValue, getAutoCreateRowSorter()); }
/** * Specifies whether a {@code RowSorter} should be created for the * list whenever its model changes. * <p> * When {@code setAutoCreateRowSorter(true)} is invoked, a {@code * RowSorter} is immediately created and installed on the * list. While the {@code autoCreateRowSorter} property remains * {@code true}, every time the model is changed, a new {@code * RowSorter} is created and set as the list's row sorter.<p> * * The default value is false. * * @param autoCreateRowSorter whether or not a {@code RowSorter} * should be automatically created * @beaninfo * bound: true * preferred: true * description: Whether or not to turn on sorting by default. */ public void setAutoCreateRowSorter(boolean autoCreateRowSorter) { if (getAutoCreateRowSorter() == autoCreateRowSorter) return; boolean oldValue = getAutoCreateRowSorter(); this.autoCreateRowSorter = autoCreateRowSorter; if (autoCreateRowSorter) { setRowSorter(createDefaultRowSorter()); } firePropertyChange("autoCreateRowSorter", oldValue, getAutoCreateRowSorter()); }