Examples of XElement


Examples of bibliothek.util.xml.XElement

     * @param element the element to write into, the attributes of this
     * element will not be changed.
     */
    public void writeXML( XElement element ){
        for( Map.Entry<String, ApplicationResource> resource : resources.entrySet() ){
            XElement xresource = element.addElement( "resource" );
            xresource.addString( "name", resource.getKey() );
            resource.getValue().writeXML( xresource );
        }
    }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

  /**
   * Collapses a {@link CollapsePanel} so that it is hidden.
   */
  public void collapseHidden() {
    XElement wrap = appearance.iconWrap(getElement());
    if (wrap != null) {
      wrap.removeChildren();
    }

    getElement().getStyle().setProperty("border", "none");

    SplitBar bar = getData("splitBar");
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

        @Override
        protected boolean onPreview(NativePreviewEvent pe) {
          switch (pe.getTypeInt()) {
            case Event.ONCLICK:
            case Event.ONMOUSEDOWN:
              XElement target = pe.getNativeEvent().getEventTarget().cast();
              if (!panel.getElement().isOrHasChild(target) && !(getElement().isOrHasChild(target))) {
                collapse();
                remove();
              }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

  public void onBrowserEvent(Event event) {
    super.onBrowserEvent(event);

    if (event.getTypeInt() == Event.ONCLICK) {
      event.stopPropagation();
      XElement target = event.getEventTarget().cast();
      if (expandBtn.getElement().isOrHasChild(target)) {
        disableAnimations = false;
        collapse();
        disableAnimations = true;
        onExpandButton();
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

  @Override
  public int getFrameWidth(XElement parent) {
    int w = frame.getFrameSize(parent).getWidth();

    XElement content = getContentElem(parent);
    w += content.getFrameWidth(Side.LEFT, Side.RIGHT);

    return w;
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

    return resources.loading();
  }

  @Override
  public void onUpdateIcon(XElement parent, ImageResource icon) {
    XElement iconWrap = parent.selectNode("." + style.statusIcon());
    iconWrap.setVisible(icon != null);
    if (icon != null) {
      iconWrap.removeChildren();
      iconWrap.appendChild(IconHelper.getElement(icon));
    }
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

      case TODAY:
        cls = style.dateToday();
        break;
    }

    XElement elem = cell.cast();
    elem.setClassName(cls, add);
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

    }

    @Override
    public void onMouseDown(MouseDownEvent event) {
      XElement target = event.getNativeEvent().getEventTarget().cast();
      if (el == target) {
        event.stopPropagation();
        event.preventDefault();
        preview.add();
        handleMouseDown();
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

      }
    }

    @Override
    public void onMouseOut(MouseOutEvent event) {
      XElement target = event.getNativeEvent().getEventTarget().cast();
      if (el == target) {
        handleMouseOut();
      }

    }
View Full Code Here

Examples of com.sencha.gxt.core.client.dom.XElement

    }

    @Override
    public void onMouseOver(MouseOverEvent event) {
      XElement target = event.getNativeEvent().getEventTarget().cast();
      if (el == target) {
        handleMouseReturn();
      }
    }
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.