Examples of SWTSkinObject


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

    }

    item = MenuFactory.addMenuItem(viewMenu, SWT.CHECK, menuIndex, textID,
        new Listener() {
          public void handleEvent(Event event) {
            SWTSkinObject skinObject = skin.getSkinObject(viewID);
            if (skinObject != null) {
              boolean newVisibility = !skinObject.isVisible();

              SWTSkinUtils.setVisibility(skin, configID, viewID, newVisibility,
                  true, fast);
            }
          }
View Full Code Here

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

        }
        return null;
      }
    });

    SWTSkinObject soParent = skinObject.getParent();

    Object data = soParent.getControl().getData("ViewMode");
    if (data instanceof Long) {
      viewMode = (int) ((Long) data).longValue();
    }

    boolean big = viewMode == SBC_ActivityView.MODE_BIGTABLE;
View Full Code Here

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

    int oldViewMode = this.viewMode;

    this.viewMode = viewMode;

    if (oldViewMode >= 0 && oldViewMode < modeViewIDs.length) {
      SWTSkinObject soOldViewArea = getSkinObject(modeViewIDs[oldViewMode]);
      //SWTSkinObject soOldViewArea = skin.getSkinObjectByID(modeIDs[oldViewMode]);
      if (soOldViewArea != null) {
        soOldViewArea.setVisible(false);
      }
    }

    SelectedContentManager.clearCurrentlySelectedContent();

    SWTSkinObject soViewArea = getSkinObject(modeViewIDs[viewMode]);
    if (soViewArea == null) {
      soViewArea = skin.createSkinObject(modeIDs[viewMode] + torrentFilterMode,
          modeIDs[viewMode], soListArea);
      skin.layout();
      soViewArea.setVisible(true);
      soViewArea.getControl().setLayoutData(Utils.getFilledFormData());
    } else {
      soViewArea.setVisible(true);
    }

    if (save) {
      COConfigurationManager.setParameter(torrentFilter + ".viewmode", viewMode);
    }
View Full Code Here

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

    setViewMode(
        COConfigurationManager.getIntParameter(torrentFilter + ".viewmode"),
        false);

    SWTSkinObject so;
    so = getSkinObject(ID + "-button-smalltable");
    if (so != null) {
      btnSmallTable = new SWTSkinButtonUtility(so);
      btnSmallTable.addSelectionListener(new SWTSkinButtonUtility.ButtonListenerAdapter() {
        public void pressed(SWTSkinButtonUtility buttonUtility,
View Full Code Here

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

    SWTSkinObject   skinObject,
    Object       params )
  {
    super.skinObjectShown(skinObject, params);

    SWTSkinObject so_list = getSkinObject("devicesod-list");
   
    if ( so_list != null ){
     
      initTable((Composite) so_list.getControl());
    }
   
    return null;
  }
View Full Code Here

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

      Debug.out(e);
    }
   
    final SWTSkin skin = SWTSkinFactory.getInstance();
    if (skin != null) {
      SWTSkinObject soHeader = skin.getSkinObject("plus-header");
      if (soHeader != null) {
        soHeader.setVisible(hasFullLicence);
      }
      Utils.execSWTThread(new AERunnable() {
        public void runSupport() {
          UIFunctionsSWT uif = UIFunctionsManagerSWT.getUIFunctionsSWT();
          uif.getMainShell().setText(hasFullLicence ? "Vuze Plus" : "Vuze");
View Full Code Here

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

        }
      }
    });
   
    SWTSkin skin = skinnedDialog.getSkin();
    SWTSkinObject so= skin.getSkinObject("list");
    if (so instanceof SWTSkinObjectContainer) {
      SWTSkinObjectContainer soList = (SWTSkinObjectContainer) so;
     
      Composite parent = soList.getComposite();
     
View Full Code Here

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

  // @see com.aelitis.azureus.ui.swt.views.skin.SkinView#showSupport(com.aelitis.azureus.ui.swt.skin.SWTSkinObject, java.lang.Object)
  public Object skinObjectInitialShow(SWTSkinObject skinObject, Object params) {

    soListArea = getSkinObject(ID + "-area");

    SWTSkinObject so;
    so = getSkinObject(ID + "-button-smalltable");
    if (so != null) {
      btnSmallTable = new SWTSkinButtonUtility(so);
      btnSmallTable.addSelectionListener(new SWTSkinButtonUtility.ButtonListenerAdapter() {
        public void pressed(SWTSkinButtonUtility buttonUtility,
            SWTSkinObject skinObject, int stateMask) {
          setViewMode(MODE_SMALLTABLE, true);
        }
      });
    }

    so = getSkinObject(ID + "-button-bigtable");
    if (so != null) {
      btnBigTable = new SWTSkinButtonUtility(so);
      btnBigTable.addSelectionListener(new SWTSkinButtonUtility.ButtonListenerAdapter() {
        public void pressed(SWTSkinButtonUtility buttonUtility,
            SWTSkinObject skinObject, int stateMask) {
          setViewMode(MODE_BIGTABLE, true);
        }
      });
    }

    so = getSkinObject(ID + "-button-right");
    if (so != null) {
      so.setVisible(true);
      SWTSkinButtonUtility btnReadAll = new SWTSkinButtonUtility(so);
      btnReadAll.setTextID("v3.activity.button.readall");
      btnReadAll.addSelectionListener(new SWTSkinButtonUtility.ButtonListenerAdapter() {
        public void pressed(SWTSkinButtonUtility buttonUtility,
            SWTSkinObject skinObject, int stateMask) {
View Full Code Here

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

    soListArea = getSkinObject(ID + "-area");

    soListArea.getControl().setData("ViewMode", new Long(viewMode));

    if (oldViewMode >= 0 && oldViewMode < modeViewIDs.length) {
      SWTSkinObject soOldViewArea = getSkinObject(modeViewIDs[oldViewMode]);
      if (soOldViewArea != null) {
        soOldViewArea.setVisible(false);
      }
    }

    SWTSkinObject soViewArea = getSkinObject(modeViewIDs[viewMode]);
    if (soViewArea == null) {
      soViewArea = skin.createSkinObject(modeIDs[viewMode], modeIDs[viewMode],
          soListArea);
      skin.layout();
      soViewArea.setVisible(true);
      soViewArea.getControl().setLayoutData(Utils.getFilledFormData());
    } else {
      soViewArea.setVisible(true);
    }

    if (btnSmallTable != null) {
      btnSmallTable.getSkinObject().switchSuffix(
          viewMode == MODE_SMALLTABLE ? "-selected" : "");
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.