/** * Sets the selection state. * * @param selected The selection state. * @param notifyClient If true, notify the client of the state change. * @param notifyParent If true, notify the parent of the state change. */ protected void _setSelected(boolean selected, boolean notifyClient, boolean notifyParent) { if (propertyChange("selected", this.selected, this.selected = selected, notifyClient)) { if (notifyParent && getParent() != null) { getCombobox()._updateSelected(selected ? this : null); } } }