Package com.google.gdt.eclipse.designer.gwtext.gef.policy.table.header.edit

Examples of com.google.gdt.eclipse.designer.gwtext.gef.policy.table.header.edit.DimensionHeaderEditPart


  }

  @Override
  protected void showLayoutTargetFeedback(Request request) {
    // prepare header
    DimensionHeaderEditPart headerEditPart;
    {
      ChangeBoundsRequest changeBoundsRequest = (ChangeBoundsRequest) request;
      headerEditPart = (DimensionHeaderEditPart) changeBoundsRequest.getEditParts().get(0);
    }
    // prepare location
    Point location;
    {
      IDropRequest dropRequest = (IDropRequest) request;
      location = dropRequest.getLocation().getCopy();
    }
    // prepare target header
    DimensionHeaderEditPart target = null;
    {
      List<EditPart> children = getHost().getChildren();
      for (EditPart child : children) {
        DimensionHeaderEditPart columnEditPart = (DimensionHeaderEditPart) child;
        Rectangle bounds = columnEditPart.getFigure().getBounds();
        if (location.x < bounds.getCenter().x) {
          target = columnEditPart;
          break;
        }
      }
View Full Code Here


  }

  @Override
  protected void showLayoutTargetFeedback(Request request) {
    // prepare header
    DimensionHeaderEditPart headerEditPart;
    {
      ChangeBoundsRequest changeBoundsRequest = (ChangeBoundsRequest) request;
      headerEditPart = (DimensionHeaderEditPart) changeBoundsRequest.getEditParts().get(0);
    }
    // prepare location
    Point location;
    {
      IDropRequest dropRequest = (IDropRequest) request;
      location = dropRequest.getLocation().getCopy();
    }
    // prepare target header
    DimensionHeaderEditPart target = null;
    {
      List<EditPart> children = getHost().getChildren();
      for (EditPart child : children) {
        DimensionHeaderEditPart rowEditPart = (DimensionHeaderEditPart) child;
        Rectangle bounds = rowEditPart.getFigure().getBounds();
        if (location.y < bounds.getCenter().y) {
          target = rowEditPart;
          break;
        }
      }
View Full Code Here

    // prepare selection
    List<DimensionInfo> dimensions = Lists.newArrayList();
    {
      for (EditPart editPart : m_viewer.getSelectedEditParts()) {
        if (editPart instanceof DimensionHeaderEditPart) {
          DimensionHeaderEditPart headerEditPart = (DimensionHeaderEditPart) editPart;
          dimensions.add(headerEditPart.getDimension());
        }
      }
    }
    // run over them
    run(dimensions);
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.gwtext.gef.policy.table.header.edit.DimensionHeaderEditPart

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.