Package com.extjs.gxt.ui.client.event

Examples of com.extjs.gxt.ui.client.event.RowExpanderEvent


  public void setTemplate(XTemplate template) {
    this.template = template;
  }

  protected boolean beforeExpand(ModelData model, Element body, El row, int rowIndex) {
    RowExpanderEvent e = new RowExpanderEvent(this);
    e.setModel(model);
    e.setRowIndex(rowIndex);
    e.setBodyElement(body);

    if (fireEvent(Events.BeforeExpand, e)) {
      body.setInnerHTML(getBodyContent(model, rowIndex));
      return true;
    }
View Full Code Here


  protected void collapseRow(El row) {
    int idx = row.dom.getPropertyInt("rowIndex");
    ModelData model = grid.getStore().getAt(idx);
    Element body = DomQuery.selectNode("div.x-grid3-row-body", row.dom);
   
    RowExpanderEvent e = new RowExpanderEvent(this);
    e.setModel(model);
    e.setRowIndex(idx);
    e.setBodyElement(body);
   
    if (fireEvent(Events.BeforeCollapse, e)) {
      row.replaceStyleName("x-grid3-row-expanded", "x-grid3-row-collapsed");
      row.dom.setAttribute("aria-expanded", "false");
      fireEvent(Events.Collapse, e);
View Full Code Here

    ModelData model = grid.getStore().getAt(idx);
    Element body = DomQuery.selectNode("div.x-grid3-row-body", row.dom);
    if (beforeExpand(model, body, row, idx)) {
      row.replaceStyleName("x-grid3-row-collapsed", "x-grid3-row-expanded");
      row.dom.setAttribute("aria-expanded", "true");
      RowExpanderEvent e = new RowExpanderEvent(this);
      e.setModel(model);
      e.setRowIndex(idx);
      e.setBodyElement(body);
      fireEvent(Events.Expand, e);
    }
  }
View Full Code Here

  public void setTemplate(XTemplate template) {
    this.template = template;
  }

  protected boolean beforeExpand(ModelData model, Element body, El row, int rowIndex) {
    RowExpanderEvent e = new RowExpanderEvent(this);
    e.setModel(model);
    e.setRowIndex(rowIndex);
    e.setBodyElement(body);

    if (fireEvent(Events.BeforeExpand, e)) {
      body.setInnerHTML(getBodyContent(model, rowIndex));
      return true;
    }
View Full Code Here

  protected void collapseRow(El row) {
    int idx = row.dom.getPropertyInt("rowIndex");
    ModelData model = grid.getStore().getAt(idx);
    Element body = DomQuery.selectNode("div.x-grid3-row-body", row.dom);
   
    RowExpanderEvent e = new RowExpanderEvent(this);
    e.setModel(model);
    e.setRowIndex(idx);
    e.setBodyElement(body);
   
    if (fireEvent(Events.BeforeCollapse, e)) {
      row.replaceStyleName("x-grid3-row-expanded", "x-grid3-row-collapsed");
      row.dom.setAttribute("aria-expanded", "false");
      fireEvent(Events.Collapse, e);
View Full Code Here

    ModelData model = grid.getStore().getAt(idx);
    Element body = DomQuery.selectNode("div.x-grid3-row-body", row.dom);
    if (beforeExpand(model, body, row, idx)) {
      row.replaceStyleName("x-grid3-row-collapsed", "x-grid3-row-expanded");
      row.dom.setAttribute("aria-expanded", "true");
      RowExpanderEvent e = new RowExpanderEvent(this);
      e.setModel(model);
      e.setRowIndex(idx);
      e.setBodyElement(body);
      fireEvent(Events.Expand, e);
    }
  }
View Full Code Here

  public void setTemplate(XTemplate template) {
    this.template = template;
  }

  protected boolean beforeExpand(ModelData model, Element body, El row, int rowIndex) {
    RowExpanderEvent e = new RowExpanderEvent(this);
    e.setModel(model);
    e.setRowIndex(rowIndex);
    e.setBodyElement(body);

    if (fireEvent(Events.BeforeExpand, e)) {
      body.setInnerHTML(getBodyContent(model, rowIndex));
      return true;
    }
View Full Code Here

  protected void collapseRow(El row) {
    int idx = row.dom.getPropertyInt("rowIndex");
    ModelData model = grid.getStore().getAt(idx);
    Element body = DomQuery.selectNode("div.x-grid3-row-body", row.dom);
   
    RowExpanderEvent e = new RowExpanderEvent(this);
    e.setModel(model);
    e.setRowIndex(idx);
    e.setBodyElement(body);
   
    if (fireEvent(Events.BeforeCollapse, e)) {
      row.replaceStyleName("x-grid3-row-expanded", "x-grid3-row-collapsed");
      row.dom.setAttribute("aria-expanded", "false");
      fireEvent(Events.Collapse, e);
View Full Code Here

    ModelData model = grid.getStore().getAt(idx);
    Element body = DomQuery.selectNode("div.x-grid3-row-body", row.dom);
    if (beforeExpand(model, body, row, idx)) {
      row.replaceStyleName("x-grid3-row-collapsed", "x-grid3-row-expanded");
      row.dom.setAttribute("aria-expanded", "true");
      RowExpanderEvent e = new RowExpanderEvent(this);
      e.setModel(model);
      e.setRowIndex(idx);
      e.setBodyElement(body);
      fireEvent(Events.Expand, e);
    }
  }
View Full Code Here

  public void setTemplate(XTemplate template) {
    this.template = template;
  }

  protected boolean beforeExpand(ModelData model, Element body, El row, int rowIndex) {
    RowExpanderEvent e = new RowExpanderEvent(this);
    e.setModel(model);
    e.setRowIndex(rowIndex);
    e.setBodyElement(body);

    if (fireEvent(Events.BeforeExpand, e)) {
      body.setInnerHTML(getBodyContent(model, rowIndex));
      return true;
    }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.event.RowExpanderEvent

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.