Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.ControlListener


      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


    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

      // Create a proxy control to measure the title area of the tab
      // folder
      titleAreaProxy = new Composite(tabFolder, SWT.NO_BACKGROUND);
      titleAreaProxy.setVisible(false);
      titleAreaProxy.addControlListener(new ControlListener() {
        public void controlMoved(ControlEvent e) {
          topRightResized = true;
        }

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

      tabFolder.setMRUVisible(((TabBehaviour)Tweaklets.get(TabBehaviour.KEY)).enableMRUTabVisibility());

            // Create a proxy control to measure the title area of the tab folder
            titleAreaProxy = new Composite(tabFolder, SWT.NO_BACKGROUND);
            titleAreaProxy.setVisible(false);
            titleAreaProxy.addControlListener(new ControlListener() {
                public void controlMoved(ControlEvent e) {
                    topRightResized = true;
                }

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

          settingFocus = false;
        }
      }
    });

    control.addControlListener(new ControlListener() {
      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.swt.events.ControlListener#controlMoved(org.eclipse.swt.events.ControlEvent)
       */
 
View Full Code Here

    scrolled.setExpandHorizontal(true);
    scrolled.setExpandVertical(true);

    control = new Composite(scrolled, SWT.NONE);

    control.addControlListener(new ControlListener() {
      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.swt.events.ControlListener#controlMoved(org.eclipse.swt.events.ControlEvent)
       */
 
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

  public void createPartControl(Composite parent) {
    parent.setLayout( new GridLayout(2, true) );
   
    colorDistribution = new CLabel(parent, SWT.BORDER);
    colorDistribution.setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true) );
    colorDistribution.addControlListener(new ControlListener() {
      public void controlMoved(ControlEvent e) {}

      public void controlResized(ControlEvent e) {
        updateRequiredManaChart(null);
      }
     
    });
    createColorDistributionChart();
       
    manaCurve = new CLabel(parent, SWT.BORDER);
    manaCurve.setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true) );
    manaCurve.addControlListener(new ControlListener() {

      public void controlMoved(ControlEvent e) {}

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

          gc.setBackground(oldBg);
        }

      });
     
      newSash.addControlListener(new ControlListener() {
        /**
         * @see org.eclipse.swt.events.ControlAdapter#controlMoved(ControlEvent)
         */
        public void controlMoved(ControlEvent e) {
          recomputeSashInfo();
View Full Code Here

    }

    restoreSashWeights();
    hideWodIfNecessary();

    _templateContainer.addControlListener(new ControlListener() {
      public void controlMoved(ControlEvent e) {
        // DO NOTHING
      }

      public void controlResized(ControlEvent e) {
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.