public String getValue(Component cmp) { return ((Label) cmp).getValue(); } });
private Object handleCase(Object c) { if (c instanceof Label) c = ((Label) c).getValue(); if (_igcase) { if (c instanceof String) return ((String) c).toUpperCase(); if (c instanceof Character) return new Character(Character.toUpperCase(((Character) c).charValue())); } return c; }
/** Returns the value of the {@link Label} it contains, or null * if no such cell. */ public String getLabel() { final Component cell = getFirstChild(); return cell != null && cell instanceof Label ? ((Label) cell).getValue() : null; }
/** Returns the value of the {@link Label} it contains, or null * if no such cell. */ public String getLabel() { final Component cell = getFirstChild(); return cell != null && cell instanceof Label ? ((Label) cell).getValue() : null; }
/** Returns the value of the {@link Label} it contains, or null * if no such cell. */ public String getLabel() { final Component cell = getFirstChild(); return cell != null && cell instanceof Label ? ((Label) cell).getValue() : null; }
/** Sets the value. */ public void setValue(String value) { if (value == null) value = ""; if (!Objects.equals(_value, value)) { _value = value; smartUpdate("value", getValue()); //allow deriving to override getValue() } }
/** * Internal use only * @since 6.5.0 */ public void onCreate(Event evt) { if (_tmpLabel != null) { setLabel(_tmpLabel.getValue()); removeChild(_tmpLabel); } _tmpLabel = null; }
/** * Initialize controller. */ @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); root = comp; noSelectionMessage = locationHeader.getValue(); committed(); }
/** * Initialize controller. */ @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); root = comp; noSelectionMessage = locationHeader.getValue(); committed(); }
/** * Initialize controller. */ @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); noSelectionMessage = lblLocation.getValue(); imgLocked.setSrc(Constants.ICON_LOCKED); committed(); }
private String getValue(int col, int row) { Component cmp = getCell(col, row).getFirstChild(); return cmp instanceof Label ? ((Label) cmp).getValue() : ((Textbox) cmp).getValue(); }
/** * Initialize controller. */ @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); getAppFramework().registerObject(patientContextListener); noSelectionMessage = lblLocation.getValue(); patientContextListener.committed(); committed(); }
/** * Set the drop id of the root component. * * @param comp The root component of the info panel. */ @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); ((HtmlBasedComponent) comp).setDroppable(getDropId()); this.collapsedAlertPanelHeight = this.alertPanel.getHeight(); this.alertTitlePrefix = this.alertTitle.getValue(); openAlertPanel(false); }
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws IOException { super.renderProperties(renderer); int v = getMaxlength(); if (v > 0) renderer.render("maxlength", v); render(renderer, "multiline", isMultiline()); render(renderer, "pre", isPre()); final String val = getValue(); //allow deriving to override getValue() render(renderer, "value", val); org.zkoss.zul.impl.Utils.renderCrawlableText(val); }
private void test(Component root, String eventName, int eventData, int expectedSize) { String labelText = eventName + "." + eventData; EventManager.getInstance().fireLocalEvent(eventName, labelText); assertEquals(expectedSize, root.getChildren().size()); Label label = (Label) root.getChildren().get(expectedSize - 1).getFirstChild(); assertEquals(labelText, label.getValue()); } }
Component cc = cell.getFirstChild(); if (cc instanceof Label) { String val = ((Label) cc).getValue(); group = new Listgroup(val); } else {
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); noSelection = lblName.getValue(); IUser user = SecurityUtil.getAuthenticatedUser(); setLabel(lblUser, user.getFullName() + " @ " + user.getSecurityDomain().getName(), null); lblUser.setVisible(showUser); this.getEventManager().subscribe(PATIENT_CHANGE_EVENT, patientChangeListener); setPatient(PatientContext.getActivePatient()); }
throw new UiException("The model template can only support Label component, not " + items[0]); items[0].detach(); //remove the label from owner return ((Label) items[0]).getValue();
return lbl.getValue();
/** * Update the scheduled notification with new input values and send to the server, then close * the dialog if successful. */ public void onClick$btnOK() { if (validate()) { notification.setDeliveryDate(new FMDate(dtbDelivery.getDate())); notification.setDfn(chkAssociate.isChecked() ? (String) chkAssociate.getValue() : null); notification.setPatientName(chkAssociate.isChecked() ? lblPatient.getValue() : null); notification.setSubject(txtSubject.getValue()); notification.setPriority((Priority) cboPriority.getSelectedItem().getValue()); List<String> message = StrUtil.toList(txtMessage.getText()); if (service.scheduleNotification(notification, message, recipients)) { root.setAttribute("notification", notification); root.detach(); } else { PromptDialog.showError("@vistanotification.schedule.save.failure"); } } }