/** * If the added list item is marked as selected, add it to the set of selected items. * * @see org.fujion.component.BaseComponent#afterAddChild(org.fujion.component.BaseComponent) */ @Override protected void afterAddChild(BaseComponent child) { _updateSelected((Listitem) child); }
/** * 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) { getListbox()._updateSelected(this); } } }