Package net.rim.tumbler.config

Examples of net.rim.tumbler.config.WidgetFeature


                buffer.append(line).append(NL_LVL_3);
                buffer.append("new WidgetFeature[] {").append(NL_LVL_3);

                Vector<?> wfList = (Vector<?>)_widgetConfig.getAccessTable().get(key);
                for (int j = 0; j < wfList.size(); j++) {
                    WidgetFeature wf = (WidgetFeature) wfList.get(j);
                    buffer.append("new WidgetFeature(").append(NL_LVL_4);
                    line = "\"" + wf.getID() + "\"" + ",";
                    buffer.append(line).append(NL_LVL_5);
                    line = (Boolean.valueOf(wf.isRequired())).toString() + ",";
                    buffer.append(line).append(NL_LVL_5);
                    line = "\"" + wf.getVersion() + "\"" + ",";
                    buffer.append(line).append(NL_LVL_5);
                    line = "null)";
                    if (j+1 != wfList.size()) {
                        line += ",";
                    }
View Full Code Here


  }
 
  private void processFeaturesNode(Node featuresNode) {
    NodeList childNodes = featuresNode.getChildNodes();
    for (int i = 0; i < childNodes.getLength(); i++) {
      WidgetFeature feature = processFeatureNode(childNodes.item(i));
     
      if (feature != null) {
        _library.addFeature(feature);
      }
    }
View Full Code Here

          if (requiredAttr != null) {
            isRequired = !requiredAttr.getNodeValue()
                .equalsIgnoreCase(Boolean.FALSE.toString());
          }

          WidgetFeature feature = new WidgetFeature(idAttr
              .getNodeValue(), isRequired, versionAttr
              .getNodeValue(), null);
          return feature;
        }
      }
View Full Code Here

                    if (ver != null) {
                        version = ver.getNodeValue();
                    }

                    if (name.length() > 0) {
                        WidgetFeature wf = new WidgetFeature(name, isRequired, version, null);
                        featureList.addElement(wf);
                    }
                } else {
                    throw new ValidationException("VALIDATION_MISSING_FEATURE_ID");
                }
View Full Code Here

                if (wfList.size()>0)
                {
                _buffer.append(makeLine("new Array(", 3));
               
                for (int j = 0; j < wfList.size(); j++) {
                    WidgetFeature wf = (WidgetFeature) wfList.get(j);
                    _buffer.append(makeLine("new Feature(", 4));
                    line = "\"" + wf.getID() + "\"" + ",";
                    _buffer.append(makeLine(line, 5));
                    line = (new Boolean(wf.isRequired())).toString() + ",";
                    _buffer.append(makeLine(line, 5));
                    line = "\"" + wf.getVersion() + "\"" + ",";
                    _buffer.append(makeLine(line, 5));
                    line = "null)";
                    if (j+1 != wfList.size()) {
                        line += ",";
                    }
View Full Code Here

                    if (ver != null) {
                        version = ver.getNodeValue();
                    }

                    if (name.length() > 0) {
                        WidgetFeature wf = new WidgetFeature(name, isRequired,
                                version, null);
                        featureList.addElement(wf);
                    }
                } else {
                    throw new ValidationException("VALIDATION_MISSING_FEATURE_ID");
View Full Code Here

TOP

Related Classes of net.rim.tumbler.config.WidgetFeature

Copyright © 2018 www.massapicom. 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.