Examples of retrieveMessage()


Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

  // make the table to hold section parameters, add all parameters
  HtmlPanelGrid parametersTable = new HtmlPanelGrid();
  parametersTable.setId(sParamsId);
  parametersTable.setColumns(2);
  parametersTable.setStyleClass("parameters");
  parametersTable.setSummary(msgBroker.retrieveMessage("catalog.general.designOnly"));
  boolean hasMap = false;
  for (Parameter parameter: getParameters().values()) {
    HtmlOutputText cmpLabel = null;
    UIComponent cmpValue = null;
   
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

      }
    } else if (bDisplay) {
      cmpValue = parameter.getInput().makeOutputComponent(context,this,parameter);
      if (cmpValue != null) {
        cmpLabel = new HtmlOutputText();
        cmpLabel.setValue(msgBroker.retrieveMessage(parameter.getLabel().getResourceKey()));
        parametersTable.getChildren().add(cmpLabel);
        parametersTable.getChildren().add(cmpValue);
      }
    }
  }
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

  MessageBroker msgBroker = context.extractMessageBroker();
 
  // determine the caption
  String sCaption = "";
  if (getLabel() != null) {
    sCaption = msgBroker.retrieveMessage(getLabel().getResourceKey());
  }
  if (sCaption.length() == 0) {
    sCaption = getKey();
  }
 
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

      int nIdx = 0;
      for (Section sibling: exclusive.values()) {
        String sItemLabel = "";
        String sItemId = sibling.getFacesId();
        if (sibling.getLabel() != null) {
          sItemLabel = msgBroker.retrieveMessage(sibling.getLabel().getResourceKey());
        }
        if (sItemLabel.length() == 0) {
          sItemLabel = sibling.getKey();
        }
        radioItems.add(new SelectItem(sItemId,sItemLabel));
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

    captionPanel.setStyleClass("optionalSectionHeader");
   
    HtmlPanelGrid headerTable = new HtmlPanelGrid();
    headerTable.setColumns(2);
    headerTable.setStyleClass("optionalSectionHeader");
    headerTable.setSummary(msgBroker.retrieveMessage("catalog.general.designOnly"));
   
    HtmlSelectBooleanCheckbox checkBox = new HtmlSelectBooleanCheckbox();
    checkBox.setId(sCheckboxId);
    checkBox.setSelected(getOpen());
    checkBox.setOnclick(sbOnclick.toString());
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

  } else {
   
    HtmlPanelGrid headerTable = new HtmlPanelGrid();
    headerTable.setColumns(3);
    headerTable.setStyleClass("mandatorySectionHeader");
    headerTable.setSummary(msgBroker.retrieveMessage("catalog.general.designOnly"));
    headerTable.setOnclick(sbOnclick.toString());
   
    HtmlSelectBooleanCheckbox checkBox = new HtmlSelectBooleanCheckbox();
    checkBox.setId(sCheckboxId);
    checkBox.setSelected(getOpen());
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

  HtmlPanelGrid parametersTable = new HtmlPanelGrid();
  parametersTable.setId(sParamsId);
  parametersTable.setColumns(2);
  parametersTable.setStyleClass("parameters");
  parametersTable.setColumnClasses("parameterLabel,parameterInput");
  parametersTable.setSummary(msgBroker.retrieveMessage("catalog.general.designOnly"));
  for (Parameter parameter: getParameters().values()) {
    if (parameter.getVisible()) {
      UIComponent cmpLabel = null;
      if (parameter.getLabel() != null) {
        cmpLabel = parameter.getLabel().makeEditorLabel(context,this,parameter);
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

    if(iter.hasNext() && firstIter) {
      json.append(",");
    }
    firstIter = true;
    json.append("{");
    label = broker.retrieveMessage(label);
    json.append("uuid: '" +
        com.esri.gpt.framework.util.Val.escapeSingleQuotes(key) + "',");
    json.append("name: '" +
        com.esri.gpt.framework.util.Val.escapeSingleQuotes(label) + "'");
    json.append("}");
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

    // generate the name, e.g. Parent Service Name (WMS)
    String resourceKey = "catalog.ags.namegeneration."+Val.chkStr(this.getOgcType()).toLowerCase();
    try {
      MessageBroker msgBroker = new MessageBroker();
      msgBroker.setBundleBaseName(MessageBroker.DEFAULT_BUNDLE_BASE_NAME);
      String name = msgBroker.retrieveMessage(resourceKey,new String[]{serviceInfo.getName()});
      if (!name.startsWith("???")) {
        serviceInfo.setName(name);
      }
    } catch (Exception e) {
      String msg = "Error auto-generating OGC service name for resource key: "+resourceKey;
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()

     absKey = map.get("abstractResourceKey");
  }
  MessageBroker bundle = new MessageBroker();
  bundle.setBundleBaseName(MessageBroker.DEFAULT_BUNDLE_BASE_NAME);
  return bundle.retrieveMessage(absKey);
}

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.