Package com.izforge.izpack

Examples of com.izforge.izpack.Pack


  }
 
  /**  Called when the panel becomes active.  */
  public void panelActivate() {
      for (int i = 0; i < idata.selectedPacks.size (); i++) {
        Pack p = (Pack)idata.selectedPacks.get (i);
        String packID = p.id;
        if (packID != null && packID.toLowerCase().indexOf("team") != -1)
            // if a team-related package has been selected, return from this
            // method.
            return;
View Full Code Here


    selectedPacks = new LinkedList();
    selectedPacksText = "";

    for (int i = 0; i < idata.selectedPacks.size (); i++)
    {
      Pack p = (Pack)idata.selectedPacks.get (i);
      String packName = getI18NPackName(p);
      String packID = p.id;
      if (forPacks.contains(packID)) {
        selectedPacks.add(p);
        selectedPacksText = selectedPacksText + ", " + packName;
View Full Code Here

    private void hideAndPreselectPacks() {

        List selPacks = installdata.selectedPacks;
        Iterator pack_it = installdata.availablePacks.iterator();
        while (pack_it.hasNext()) {
            Pack pack = (Pack) pack_it.next();
            String packID = pack.id;
            String hidePropName = "pack." + packID + ".hidden";
            if (isConfigTrue(hidePropName) && !pack.required) {
                selPacks.remove(pack);
                pack_it.remove();
View Full Code Here

        {

            java.util.Iterator iter = idata.selectedPacks.iterator();
            while (iter.hasNext())
            {
                Pack p = (Pack) iter.next();
                if (p.name.equals(compareToValue)) {
                     found = true;
                }
    }
View Full Code Here

    protected boolean isPackSelected( AutomatedInstallData idata, String packName ) {
       boolean fRet = false;
       int iSize = idata.selectedPacks.size();
       if( iSize > 0 ) {
          for( int i = 0; i < iSize; ++i ) {
             Pack p = (Pack)idata.selectedPacks.get( i );
             if( p.name.equals( packName )) {
                fRet = true;
             }
          }
       }
View Full Code Here

    }

    protected void initEnableVarsToPackSelections( AutomatedInstallData idata ) {
        boolean fSel = false;
        for( int i = 0; i < idata.allPacks.size(); ++i ) {
            Pack pack = (Pack)idata.allPacks.get( i );
            fSel = false;
            if( isPackSelected( idata, pack.name )) {
                fSel = true;
            }
            setEnableVar( idata, pack.name, fSel );
View Full Code Here

    protected void resetConfigNonSelected( AutomatedInstallData idata ) {
         debug( ">resetConfigNonSelected()  ");
         String packName = null;
         for( int i = 0; i < idata.allPacks.size(); ++i ) {
                Pack pack = (Pack)idata.allPacks.get( i );
                packName = pack.name;
                if( isPackSelected( idata, packName ) == false ) {
                   String sel = "false";
                   String varName = new String(packName);
                   varName = varName.replace( ' ','.' );
View Full Code Here

         //    packs which may not have had panels displayed. In any case,
         //    if the pack is not selected for install, the related
         //    PackName.enable variable should be false.
         String packName = null;
         for( int i = 0; i < idata.allPacks.size(); ++i ) {
                Pack pack = (Pack)idata.allPacks.get( i );
                String sel = "false";
                packName = pack.name;
                String packVar = new String(packName);
                packVar = packVar.replace( ' ','.' );
                sel = idata.getVariable( packVar );
View Full Code Here

    }
    protected void panelDebug( AutomatedInstallData idata, String panelName ) {
      Debug.trace( "------ Begin panel entry debug info for: " + panelName + "-----" );
      if( panelName.equals( getPanelName( BASE_CONFIG ))) {
         for( int i = 0; i < idata.selectedPacks.size(); ++i ) {
            Pack pack = (Pack)idata.selectedPacks.get( i );
            Debug.trace( pack.name + " is selected." );
         }
         Debug.trace( "-----------" );
         String packName = null;
         for( int i = 0; i < idata.allPacks.size(); ++i ) {
                Pack pack = (Pack)idata.allPacks.get( i );
                String sel = "not selected";
                packName = pack.name;
                if( isPackSelected( idata, packName )) {
                   sel = "selected";
                }
View Full Code Here

TOP

Related Classes of com.izforge.izpack.Pack

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.