/** * Gets the first repetition for <b>telecom</b> (Contact details of the location), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites * </p> */ public ContactDt getTelecomFirstRep() { if (getTelecom().isEmpty()) { return addTelecom(); } return getTelecom().get(0); } /**
/** * Sets the value(s) for <b>mode</b> (instance | kind) * * <p> * <b>Definition:</b> * Indicates whether a resource instance represents a specific location or a class of locations * </p> */ public Location setMode(LocationModeEnum theValue) { getMode().setValueAsEnum(theValue); return this; }
/** * Sets the value(s) for <b>status</b> (active | suspended | inactive) * * <p> * <b>Definition:</b> * * </p> */ public Location setStatus(LocationStatusEnum theValue) { getStatus().setValueAsEnum(theValue); return this; }
/** * Update the display when the location context changes. */ @Override public void committed() { Location location = LocationContext.getActiveLocation(); if (log.isDebugEnabled()) { log.debug("location: " + location); } String text = location == null ? noSelectionMessage : location.getName().getValue(); locationHeader.setValue(text); Clients.resize(root); }
/** * Sets the value(s) for <b>type</b> (Indicates the type of function performed at the location) * * <p> * <b>Definition:</b> * Indicates the type of function performed at the location * </p> */ public Location setType(LocationTypeEnum theValue) { getType().setValueAsEnum(theValue); return this; }
/** * Adds and returns a new value for <b>telecom</b> (Contact details of the location) * * <p> * <b>Definition:</b> * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites * </p> */ public ContactDt addTelecom() { ContactDt newType = new ContactDt(); getTelecom().add(newType); return newType; }
/** * Adds the service location to the specified listbox. * * @param location Service location to add. * @param lstLocation Listbox to receive the location. * @return The added list item. */ public static Listitem locationAdd(Location location, Listbox lstLocation) { Listitem item = new Listitem(location.getName().getValue()); item.setValue(location); //item.setTooltiptext(location.getDescription()); item.addForward(Events.ON_DOUBLE_CLICK, "btnOK", Events.ON_CLICK); lstLocation.appendChild(item); lstLocation.setDisabled(false); return item; }