예제 #1
0
    public Node(iWidget widget) {
      this.widget = widget;
      SPOTSequence e = (SPOTSequence) widget.getLinkedData();
      iSPOTElement na = e.spot_elementFor("name");
      this.name = na == null ? null : na.spot_stringValue();
      this.typeName = e.spot_getClassShortName();
      if (name == null) {
        name = typeName;
      }
      if (widget instanceof iContainer) {
        iContainer c = (iContainer) widget;
        int len = c.getWidgetCount();

        for (int i = 0; i < len; i++) {
          addChild(new Node(c.getWidget(i)));
        }
      }
    }
예제 #2
0
파일: Link.java 프로젝트: appnativa/rare
 /** Adds elements to the object elements map */
 protected void spot_setElements() {
   this.elementsSizeHint += 8;
   super.spot_setElements();
   spot_addElement("url", url);
   url.spot_defineAttribute("mimeType", null);
   url.spot_defineAttribute("inline", null);
   url.spot_defineAttribute("unescape", null);
   spot_addElement("target", target);
   target.spot_defineAttribute("windowType", "frame");
   target.spot_defineAttribute("resizable", "true");
   target.spot_defineAttribute("movable", "true");
   target.spot_defineAttribute("top", null);
   target.spot_defineAttribute("left", null);
   target.spot_defineAttribute("title", null);
   target.spot_defineAttribute("status", null);
   target.spot_defineAttribute("bgColor", null);
   target.spot_defineAttribute("icon", null);
   target.spot_defineAttribute("width", null);
   target.spot_defineAttribute("height", null);
   target.spot_defineAttribute("border", null);
   target.spot_defineAttribute("onOpened", null);
   target.spot_defineAttribute("onWillClose", null);
   target.spot_defineAttribute("onDrop", null);
   target.spot_defineAttribute("onWillExpand", null);
   target.spot_defineAttribute("onWillCollapse", null);
   target.spot_defineAttribute("onHasCollapsed", null);
   target.spot_defineAttribute("onHasExpanded", null);
   target.spot_defineAttribute("onFocus", null);
   target.spot_defineAttribute("onBlur", null);
   target.spot_defineAttribute("contentPadding", null);
   target.spot_defineAttribute("modal", null);
   target.spot_defineAttribute("timeout", null);
   spot_addElement("regionName", regionName);
   spot_addElement("requestType", requestType);
   spot_addElement("requestEncoding", requestEncoding);
   spot_addElement("attributes", attributes);
   attributes.spot_defineAttribute("mimeType", null);
   spot_addElement("headers", headers);
   spot_addElement("statusMessage", statusMessage);
 }