/** Sets whether it is selectable. * * <p>If the listbox is in a checkmark mode, the selectable state will affect * the checkable icon to display or not.</p> * <p>Default: true.</p> * @param selectable */ public void setSelectable(boolean selectable) { if (_selectable != selectable) { _selectable = selectable; // non-checkable cannot be selected if (!_selectable) setSelected(false); smartUpdate("selectable", selectable); } }
/** * Initializes the listbox with the current location context, if one is set. * * @param lstLocation The list box. */ public static void locationInit(Listbox lstLocation) { Location location = LocationContext.getActiveLocation(); if (location != null) { locationAdd(location, lstLocation).setSelected(true); } }
/** * Initializes the listbox with the current location context, if one is set. * * @param lstLocation The list box. */ public static void locationInit(Listbox lstLocation) { Location location = LocationContext.getActiveLocation(); if (location != null) { locationAdd(location, lstLocation).setSelected(true); } }
private void restoreGridState() { lbProblems.clearSelection(); for (Object object : lbProblems.getItems()) { Listitem item = (Listitem) object; lbProblems.renderItem(item); if (selectedProblems.contains(item.getValue())) { item.setSelected(true); } } selectedProblems.clear(); updateControls(); }
item.setSelected(true); deflt = null;
/** * Opening the display view after a double-click is deferred to avoid anomalies with selection * of the associated list item. * * @param event The deferred open event. */ public void onDeferredOpen$listBox(Event event) { Listitem item = (Listitem) ZKUtil.getEventOrigin(event).getData(); item.setSelected(true); onSelect$listBox(); onClick$btnView(); }
if (smodel.isSelected(_model.getElementAt(_jsel))) return; //nothing changed getSelectedItem().setSelected(false); if (sel) ++selCnt; item.setSelected(sel);
item.setSelected(true); deflt = null;
public void onClick$btnDelete() { Listitem item = getSelectedItem(); if (DeleteController.show(getSelectedValue())) { item.setSelected(false); item.setVisible(false); updateControls(); } }
if ((securityDomainId != null && securityDomainId.equals(securityDomain.getLogicalId())) || (securityDomainId == null && securityDomain.getAttribute("default") != null)) { li.setSelected(true); defaultSet = true;