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

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


  }

  @Override
  protected ComponentEvent createComponentEvent(Event event) {
    SplitBarEvent e = new SplitBarEvent(this);
    e.setEvent(event);
    return e;
  }
View Full Code Here


    int diffY = y - startBounds.y;
    int diffX = x - startBounds.x;

    resizeWidget.enableEvents(true);

    SplitBarEvent be = new SplitBarEvent(this);

    switch (region) {
      case NORTH: {
        be.setSize(height - diffY);
        if (isAutoSize()) {
          resizeEl.setY(y).setHeight(height);
        }
        break;
      }
      case SOUTH: {
        be.setSize(height + diffY);
        if (isAutoSize()) {
          resizeWidget.setHeight(diffY);
        }
        break;
      }
      case WEST: {
        be.setSize(width - diffX);
        if (isAutoSize()) {
          el().setX(x);
          resizeWidget.setWidth(width - diffX);
        }
        break;
      }
      case EAST: {
        be.setSize(width + diffX);
        if (isAutoSize()) {
          resizeWidget.setWidth(diffX);
        }
        break;
      }
View Full Code Here

      de.setWidth(getBarWidth());
    } else {
      de.setHeight(getBarWidth());
    }

    SplitBarEvent se = new SplitBarEvent(this);
    se.setDragEvent(de);
    fireEvent(Events.DragStart, se);

    resizeWidget.enableEvents(false);

    if (containerWidget != null) {
View Full Code Here

  }

  @Override
  protected ComponentEvent createComponentEvent(Event event) {
    SplitBarEvent e = new SplitBarEvent(this);
    e.setEvent(event);
    return e;
  }
View Full Code Here

    int diffY = y - startBounds.y;
    int diffX = x - startBounds.x;

    resizeWidget.enableEvents(true);

    SplitBarEvent be = new SplitBarEvent(this);

    switch (region) {
      case NORTH: {
        be.setSize(height - diffY);
        if (isAutoSize()) {
          resizeEl.setY(y).setHeight(height);
        }
        break;
      }
      case SOUTH: {
        be.setSize(height + diffY);
        if (isAutoSize()) {
          resizeWidget.setHeight(diffY);
        }
        break;
      }
      case WEST: {
        be.setSize(width - diffX);
        if (isAutoSize()) {
          el().setX(x);
          resizeWidget.setWidth(width - diffX);
        }
        break;
      }
      case EAST: {
        be.setSize(width + diffX);
        if (isAutoSize()) {
          resizeWidget.setWidth(diffX);
        }
        break;
      }
View Full Code Here

      de.setWidth(getBarWidth());
    } else {
      de.setHeight(getBarWidth());
    }

    SplitBarEvent se = new SplitBarEvent(this);
    se.setDragEvent(de);
    fireEvent(Events.DragStart, se);

    resizeWidget.enableEvents(false);

    if (containerWidget != null) {
View Full Code Here

  }

  @Override
  protected ComponentEvent createComponentEvent(Event event) {
    SplitBarEvent e = new SplitBarEvent(this);
    e.setEvent(event);
    return e;
  }
View Full Code Here

    int diffY = y - startBounds.y;
    int diffX = x - startBounds.x;

    resizeWidget.enableEvents(true);

    SplitBarEvent be = new SplitBarEvent(this);

    switch (region) {
      case NORTH: {
        be.setSize(height - diffY);
        if (isAutoSize()) {
          resizeEl.setY(y).setHeight(height);
        }
        break;
      }
      case SOUTH: {
        be.setSize(height + diffY);
        if (isAutoSize()) {
          resizeWidget.setHeight(diffY);
        }
        break;
      }
      case WEST: {
        be.setSize(width - diffX);
        if (isAutoSize()) {
          el().setX(x);
          resizeWidget.setWidth(width - diffX);
        }
        break;
      }
      case EAST: {
        be.setSize(width + diffX);
        if (isAutoSize()) {
          resizeWidget.setWidth(diffX);
        }
        break;
      }
View Full Code Here

      de.setWidth(getBarWidth());
    } else {
      de.setHeight(getBarWidth());
    }

    SplitBarEvent se = new SplitBarEvent(this);
    se.setDragEvent(de);
    fireEvent(Events.DragStart, se);

    resizeWidget.enableEvents(false);

    if (containerWidget != null) {
View Full Code Here

    draggable.setContainer(container);
  }

  @Override
  protected ComponentEvent createComponentEvent(Event event) {
    SplitBarEvent e = new SplitBarEvent(this);
    e.event = event;
    return e;
  }
View Full Code Here

TOP

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

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.