Examples of SWTSkinObjectContainer


Examples of com.aelitis.azureus.ui.swt.skin.SWTSkinObjectContainer

    }

    SWTSkinObject skinObject = getSkinObjectMaster();
    skinObject.setVisible(true);
    if (skinObject instanceof SWTSkinObjectContainer) {
      SWTSkinObjectContainer container = (SWTSkinObjectContainer) skinObject;
      Composite composite = container.getComposite();
      if (composite != null && !composite.isDisposed()) {
        composite.setVisible(true);
        composite.moveAbove(null);
        //composite.setFocus();
        //container.getParent().relayout();
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.skin.SWTSkinObjectContainer

  }

  private void swt_hide() {
    SWTSkinObject skinObjectMaster = getSkinObjectMaster();
    if (skinObjectMaster instanceof SWTSkinObjectContainer) {
      SWTSkinObjectContainer container = (SWTSkinObjectContainer) skinObjectMaster;
      if (container != null) {
        Control oldComposite = container.getControl();

        container.setVisible(false);
        if (!oldComposite.isDisposed()) {
          oldComposite.getShell().update();
        }
      }
    }
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.skin.SWTSkinObjectContainer

        } finally {
          shell.setCursor(cursor);
        }
      } else if (iview != null) {
        try {
          SWTSkinObjectContainer soContents = (SWTSkinObjectContainer) skin.createSkinObject(
              "MdiIView." + uniqueNumber++, "mdi.content.item",
              soParent);
          skin.addSkinObject(soContents);

          parent.setBackgroundMode(SWT.INHERIT_NONE);

          Composite viewComposite = soContents.getComposite();
          //viewComposite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
          //viewComposite.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));

          boolean doGridLayout = true;
          if (iview instanceof UISWTView) {
            UISWTView swtView = (UISWTView) iview;
            if (swtView.getControlType() == UISWTViewCore.CONTROLTYPE_SKINOBJECT) {
              doGridLayout = false;
            }
          }
          if (doGridLayout) {
            GridLayout gridLayout = new GridLayout();
            gridLayout.horizontalSpacing = gridLayout.verticalSpacing = gridLayout.marginHeight = gridLayout.marginWidth = 0;
            viewComposite.setLayout(gridLayout);
            viewComposite.setLayoutData(Utils.getFilledFormData());
          }

          if (iview instanceof UISWTViewCore) {
            UISWTViewCore uiViewCore = (UISWTViewCore) iview;
            uiViewCore.setSkinObject(soContents, soContents.getComposite());
          }

          iview.initialize(viewComposite);
          setTitle(iview.getFullTitle());

          Composite iviewComposite = iview.getComposite();
          control = iviewComposite;
          if (doGridLayout) {
            Object existingLayoutData = iviewComposite.getLayoutData();
            Object existingParentLayoutData = iviewComposite.getParent().getLayoutData();
            if (existingLayoutData == null
                || !(existingLayoutData instanceof GridData)
                && (existingParentLayoutData instanceof GridLayout)) {
              GridData gridData = new GridData(GridData.FILL_BOTH);
              iviewComposite.setLayoutData(gridData);
            }
          }

          //soContents is invisible, so of course iviwComposite is invisible
          //We should do the one time layout on the first show..
          //if (iviewComposite.isVisible()) {
          //  parent.layout(true, true);
          //}

          CTabItem oldSelection = swtItem.getParent().getSelection();
          swtItem.getParent().setSelection(swtItem);
          swtItem.setControl(soContents.getControl());
          if (oldSelection != null) {
            swtItem.getParent().setSelection(oldSelection);
          }
          setSkinObject(soContents, soContents);
        } catch (Exception e) {
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.skin.SWTSkinObjectContainer

      public void tableViewDestroyed() {
      }
    });

    SWTSkinObjectContainer soContents = new SWTSkinObjectContainer(skin,
        skin.getSkinProperties(), getUpdateUIName(), "", soMain);

    skin.layout();

    viewComposite = soContents.getComposite();
    viewComposite.setBackground(viewComposite.getDisplay().getSystemColor(
        SWT.COLOR_WIDGET_BACKGROUND));
    viewComposite.setForeground(viewComposite.getDisplay().getSystemColor(
        SWT.COLOR_WIDGET_FOREGROUND));
    viewComposite.setLayoutData(Utils.getFilledFormData());
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.skin.SWTSkinObjectContainer

      public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
        SWTSkin skin = soExtra.getSkin();
        skin.createSkinObject("dlg.register.install", "dlg.register.install",
            soExtra);

        SWTSkinObjectContainer soProgressBar = (SWTSkinObjectContainer) skin.getSkinObject("progress-bar");
        if (soProgressBar != null) {
          progressBar = new ProgressBar(soProgressBar.getComposite(),
              SWT.HORIZONTAL);
          progressBar.setMinimum(0);
          progressBar.setMaximum(100);
          progressBar.setLayoutData(Utils.getFilledFormData());
        }
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.skin.SWTSkinObjectContainer

    });
   
    SWTSkin skin = skinnedDialog.getSkin();
    SWTSkinObject so= skin.getSkinObject("list");
    if (so instanceof SWTSkinObjectContainer) {
      SWTSkinObjectContainer soList = (SWTSkinObjectContainer) so;
     
      Composite parent = soList.getComposite();
     
      Canvas centerCanvas = new Canvas(parent, SWT.NONE);
      FormData fd = Utils.getFilledFormData();
      fd.bottom = null;
      fd.height = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.