Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.ControlListener


                }
        }
    }

    private void addResizeListener(Composite parent) {
        parent.addControlListener(new ControlListener() {
            public void controlMoved(ControlEvent e) {
            }

            public void controlResized(ControlEvent e) {
                updateOrientation();
View Full Code Here


    final TableColumn column = mainColumn.getColumn();
    column.setText("title");
    column.setWidth(500);
    column.setResizable(true);
    column.setMoveable(true);
    controlListener = new ControlListener() {
     
      @Override
      public void controlResized(ControlEvent e) {
        int newWidth = parent.getBounds().width - 5;
        if (newWidth > 0 && !column.isDisposed())
View Full Code Here

        // widgets we need to hardcode the combined widget's
        // size, otherwise it will open too small
        SIZING_SELECTION_WIDGET_WIDTH, SIZING_SELECTION_WIDGET_HEIGHT,
        allowMultiselection);

    composite.addControlListener(new ControlListener() {
      public void controlMoved(ControlEvent e) {
      }

      public void controlResized(ControlEvent e) {
        // Also try and reset the size of the columns as appropriate
View Full Code Here

    Point newLocation= getLocation();
    if ((newLocation.x < currentLocation.x && newLocation.y == currentLocation.y) || newLocation.y < currentLocation.y)
      fProposalShell.setLocation(newLocation);

    if (fAdditionalInfoController != null) {
      fProposalShell.addControlListener(new ControlListener() {

        public void controlMoved(ControlEvent e) {}

        public void controlResized(ControlEvent e) {
          // resets the cached resize constraints
View Full Code Here

      fProposalTable.setLayoutData(data);
      fProposalShell.pack();
    }
    fContentAssistant.addToLayout(this, fProposalShell, ContentAssistant.LayoutManager.LAYOUT_PROPOSAL_SELECTOR, fContentAssistant.getSelectionOffset());

    fProposalShell.addControlListener(new ControlListener() {

      public void controlMoved(ControlEvent e) {}

      public void controlResized(ControlEvent e) {
        if (fAdditionalInfoController != null) {
View Full Code Here

        Oscilloscope.this.paintControl(e);
    paintBlock = false;
      }
  });

  addControlListener(new ControlListener() {
      @Override
      public void controlResized(ControlEvent e) {
    paintBlock = true;
    Oscilloscope.this.controlResized(e);
View Full Code Here

        return new MouseCursor("cursor1", image, 0, image.getHeight() - 1);
    }

    static ControlListener newResizeHandler(final SwtCanvas swtCanvas, final CanvasRenderer canvasRenderer) {
        final ControlListener retVal = new ControlListener() {
            public void controlMoved(final ControlEvent e) {}

            public void controlResized(final ControlEvent event) {
                final Rectangle size = swtCanvas.getClientArea();
                if ((size.width == 0) && (size.height == 0)) {
View Full Code Here

        return new MouseCursor("cursor1", image, 0, image.getHeight() - 1);
    }

    static ControlListener newResizeHandler(final SwtCanvas swtCanvas, final CanvasRenderer canvasRenderer) {
        final ControlListener retVal = new ControlListener() {
            public void controlMoved(final ControlEvent e) {}

            public void controlResized(final ControlEvent event) {
                final Rectangle size = swtCanvas.getClientArea();
                if ((size.width == 0) && (size.height == 0)) {
View Full Code Here

    gridData.exclude = true;
    facade.setLayoutData( gridData );
  }

  private void addResizeListener( final Composite facade ) {
    composite.addControlListener( new ControlListener() {
      @Override
      public void controlResized( ControlEvent e ) {
        layoutFacade( facade );
      }
View Full Code Here

                // since this page has no other significantly-sized
                // widgets we need to hardcode the combined widget's
                // size, otherwise it will open too small
                SIZING_SELECTION_WIDGET_WIDTH, SIZING_SELECTION_WIDGET_HEIGHT);

        container.addControlListener(new ControlListener() {
            public void controlMoved(ControlEvent e) {
            }

            public void controlResized(ControlEvent e) {
                //Also try and reset the size of the columns as appropriate
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.ControlListener

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.