public final void setRadioButtonMax(int max) { if (max != radioButtonMax) { int old = radioButtonMax; boolean needChange = false; if (inplace != null) { InplaceEditor innermost = PropUtils.findInnermostInplaceEditor(inplace); if (innermost instanceof JComboBox || innermost instanceof RadioInplaceEditor) { PropertyEditor ped = innermost.getPropertyEditor(); int tagCount = (ped.getTags() == null) ? (-1) : ped.getTags().length; needChange = (old <= tagCount) != (max <= tagCount); } } radioButtonMax = max; if (needChange && (inner != null)) { replaceInner(); firePropertyChange("preferredSize", null, null); //NOI18N } } }
public final void setRadioButtonMax(int max) { if (max != radioButtonMax) { int old = radioButtonMax; boolean needChange=false; if (inplace != null) { InplaceEditor innermost = PropUtils.findInnermostInplaceEditor(inplace); if (innermost instanceof JComboBox || innermost instanceof RadioInplaceEditor) { PropertyEditor ped = innermost.getPropertyEditor(); int tagCount = ped.getTags() == null ? -1 : ped.getTags().length; needChange = old <= tagCount != max <= tagCount; } } radioButtonMax = max; if (needChange && inner != null) { replaceInner(); firePropertyChange("preferredSize", null, null); //NOI18N } } }
public final void setRadioButtonMax(int max) { if (max != radioButtonMax) { int old = radioButtonMax; boolean needChange=false; if (inplace != null) { InplaceEditor innermost = PropUtils.findInnermostInplaceEditor(inplace); if (innermost instanceof JComboBox || innermost instanceof RadioInplaceEditor) { PropertyEditor ped = innermost.getPropertyEditor(); int tagCount = ped.getTags() == null ? -1 : ped.getTags().length; needChange = old <= tagCount != max <= tagCount; } } radioButtonMax = max; if (needChange && inner != null) { replaceInner(); firePropertyChange("preferredSize", null, null); //NOI18N } } }