Examples of SWTSkinObject


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

    if (uif != null) {
      //uif.refreshIconBar(); // needed?
      uif.refreshTorrentMenu();
    }

    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);
View Full Code Here

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

      }
    });
  }

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

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

   * @return
   *
   * @since 3.1.1.1
   */
  public MdiEntry getEntryBySkinView(Object skinView) {
    SWTSkinObject so = ((SkinView)skinView).getMainSkinObject();
    Object[] sideBarEntries = mapIdToEntry.values().toArray();
    for (int i = 0; i < sideBarEntries.length; i++) {
      //MdiEntrySWT entry = (MdiEntrySWT) sideBarEntries[i];
      BaseMdiEntry entry = (BaseMdiEntry) sideBarEntries[i];
      SWTSkinObject entrySO = entry.getSkinObject();
      SWTSkinObject entrySOParent = entrySO == null ? entrySO
          : entrySO.getParent();
      if (entrySO == so || entrySO == so.getParent() || entrySOParent == so) {
        return entry;
      }
    }
View Full Code Here

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

    buildonSWTItemSet = false;

    Control control = swtItem.getControl();
    if (control == null) {
      Composite parent = swtItem.getParent();
      SWTSkinObject soParent = (SWTSkinObject) parent.getData("SkinObject");

      String skinRef = getSkinRef();
      if (skinRef != null) {
        Shell shell = parent.getShell();
        Cursor cursor = shell.getCursor();
        try {
          shell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));

//          SWTSkinObjectContainer soContents = (SWTSkinObjectContainer) skin.createSkinObject(
//              "MdiContents." + uniqueNumber++, "mdi.content.item",
//              soParent, getSkinRefParams());
//          skin.addSkinObject(soContents);

         
          SWTSkinObject skinObject = skin.createSkinObject(id, skinRef,
              soParent, getDatasourceCore());
         
          control = skinObject.getControl();
          control.setLayoutData(Utils.getFilledFormData());
          control.getParent().layout(true);
          // swtItem.setControl will set the control's visibility based on
          // whether the control is selected.  To ensure it doesn't set
          // our control invisible, set selection now
View Full Code Here

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

    IView iview = getIView();
    if (iview != null) {
      setIView(null);
      iview.delete();
    }
    SWTSkinObject so = getSkinObject();
    if (so != null) {
      setSkinObject(null, null);
      so.getSkin().removeSkinObject(so);
    }
   
    // delay saving of removing of auto-open flag.  If after the delay, we are
    // still alive, it's assumed the user invoked the close, and we should
    // remove the auto-open flag
View Full Code Here

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

      list.add(skinView);
    } finally {
      mon_skinViews.exit();
    }
   
    SWTSkinObject mainSkinObject = skinView.getMainSkinObject();
    if (mainSkinObject != null) {
      skinIDs.put(mainSkinObject.getSkinObjectID(), skinView);
      String viewID = mainSkinObject.getViewID();
      if (viewID != null && viewID.length() > 0) {
        skinViewIDs.put(viewID, skinView);
      }
    }
View Full Code Here

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

      }
    } finally {
      mon_skinViews.exit();
    }
   
    SWTSkinObject mainSkinObject = skinView.getMainSkinObject();
    if (mainSkinObject != null) {
      skinIDs.remove(mainSkinObject.getSkinObjectID());
      skinViewIDs.remove(mainSkinObject.getViewID());
    }
  }
View Full Code Here

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

   
    Object[] skinViews = list.toArray();
    for (int i = 0; i < skinViews.length; i++) {
      SkinView sv = (SkinView) skinViews[i];

      SWTSkinObject so = sv.getMainSkinObject();
      if (so != null) {
        if (!so.isDisposed()) {
          return sv;
        }
        remove(sv);
      }
    }
View Full Code Here

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

   * @return
   */
  public static SkinView getBySkinObjectID(String id) {
    SkinView sv = skinIDs.get(id);
    if (sv != null) {
      SWTSkinObject so = sv.getMainSkinObject();
      if (so != null && so.isDisposed()) {
        remove(sv);
        return null;
      }
    }
    return sv;
View Full Code Here

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

   * @return
   */
  public static SkinView getByViewID(String viewID) {
    SkinView sv = skinViewIDs.get(viewID);
    if (sv != null) {
      SWTSkinObject so = sv.getMainSkinObject();
      if (so != null && so.isDisposed()) {
        remove(sv);
        return null;
      }
    }
    return sv;
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.