/** Sets the radio is checked and unchecked the others in the same radio * group ({@link Radiogroup}. */ public void setChecked(boolean checked) { if (checked != isChecked()) { super.setChecked(checked); fixSiblings(checked, false); } }
private void flagsChanged() { if (chkForceCreate != null) { boolean forceVisit = hasFlag(flags, EncounterFlag.FORCE); chkForceCreate.setChecked(forceVisit); chkForceCreate.setDisabled(forceVisit); } }
@Override protected boolean init(MainController mainController) { super.init(mainController); datEncounter.setDate(new Date()); lstLocation.setSelectedItem(null); cboServiceCategory.setSelectedItem(null); loadEncounterParticipants(new Encounter()); boolean forceVisit = EncounterFlag.hasFlag(mainController.flags, EncounterFlag.FORCE); chkForceCreate.setChecked(forceVisit); chkForceCreate.setDisabled(forceVisit); return true; }
/** * Initializes the controller. Loads user preferences and properties. */ @Override protected void initializeController() { setMeshElement(grid, "grid"); super.initializeController(); grid.setRowRenderer(rowRenderer); boolean expandAll = getPropertyValue(Constants.PROPERTY_ID_EXPAND_DETAIL, Boolean.class, chkExpandAll != null && chkExpandAll.isChecked()); if (this.chkExpandAll != null) { this.chkExpandAll.setChecked(expandAll); } AbstractRowRenderer.setExpandDetail(grid, expandAll); if (grid.getColumns() != null) { RowComparator.autowireColumnComparators(grid.getColumns().getChildren()); } grid.setVflex("1"); }
chkAssociate.setChecked(true); chkAssociate.setValue(notification.getDfn()); } else {