Examples of StringParameter


Examples of net.sf.gilead.pojo.gwt.basic.StringParameter

    {
      return new IntegerParameter((Integer) object);
    }
    if (object instanceof String)
    {
      return new StringParameter((String)object);
    }
    if (object instanceof Long)
    {
      return new LongParameter((Long)object);
    }
View Full Code Here

Examples of net.sf.mzmine.parameters.parametertypes.StringParameter

        parameter = new DoubleParameter(paramName, null);
      }

      if (radiobuttonFreeText.isSelected()) {
        parameter = new StringParameter(paramName, null);
      }

      if (radiobuttonCategorical.isSelected()) {
        String[] possibleValues = new String[categories.size()];
        if (possibleValues.length == 0) {
View Full Code Here

Examples of oracle.olapi.data.source.StringParameter

                              mdmChanDim.getShortValueDescriptionAttribute();
    Source chanShortDescr = mdmChanShortDescr.getSource();
       
    // Create Parameter objects with values from the CUSTOMER_AW and
    // PRODUCT_AW dimensions.
    StringParameter prodParam =
                new StringParameter(dp, "DEPT::DEPT::0");
       
    // Create parameterized Source objects for the default hierarchies of
    // the CUSTOMER_AW and PRODUCT_AW dimensions.
    StringSource prodParamSrc = dp.createParameterizedSource(prodParam);
       
    // Create derived Source objects from the hierarchies, using the
    // parameterized Source objects as the comparison Source objects.
    Source paramProdSel = prodHier.join(prodHier.value(), prodParamSrc);
       
    // Select elements from the other dimensions of the measure
    Source timeSel = timeHier.selectValues(new String[]
                                            {"TIMEHIER::DAY::20110101",
                                             "TIMEHIER::DAY::20110102",
                                             "TIMEHIER::DAY::20110103"});
               
    Source chanSel = chanHier.selectValues(new String[]
                                       {"MEDIA::MEDIA::0",
                                        "MEDIA::MEDIA::1",
                                        "MEDIA::MEDIA::2"});
                        
    // Join the dimension selections to the short description attributes
    // for the dimensions.
    Source columnEdge = chanSel.join(chanShortDescr);
    Source rowEdge = timeSel.join(timeShortDescr);
    Source page1 = paramProdSel.join(prodShortDescr);
                        
    // Join the dimension selections to the measure.
    Source cube = units.join(columnEdge)
                       .join(rowEdge)
                       .join(page1);
                        
    // Prepare and commit the current Transaction.
    prepareAndCommit();
                        
    // Create a Cursor for the query.
    CursorManagerSpecification cMngrSpec =
                                 dp.createCursorManagerSpecification(cube);
    SpecifiedCursorManager  spCMngr = dp.createCursorManager(cMngrSpec);
    CompoundCursor cubeCursor = (CompoundCursor) spCMngr.createCursor();
    getContext().displayCursorAsCrosstab(cubeCursor);
                        
    // Change the customer parameter value.
    // Reset the Cursor position to 1.
    cubeCursor.setPosition(1);
    println();
    getContext().displayCursorAsCrosstab(cubeCursor);
                        
    // Pivot the column and row edges.
    columnEdge = timeSel.join(timeShortDescr);
    rowEdge = chanSel.join(chanShortDescr);
                        
    // Join the dimension selections to the measure.
    cube = units.join(columnEdge)
                .join(rowEdge)
                .join(page1);
                        
    prepareAndCommit();
                        
    // Create another Cursor.
    cMngrSpec = dp.createCursorManagerSpecification(cube);
    spCMngr = dp.createCursorManager(cMngrSpec);
    cubeCursor = (CompoundCursor) spCMngr.createCursor();
    getContext().displayCursorAsCrosstab(cubeCursor);
                        
    // Change the product parameter value.
    prodParam.setValue("DEPT::::1");
                        
    // Reset the Cursor position to 1
    cubeCursor.setPosition(1);
    println();
    getContext().displayCursorAsCrosstab(cubeCursor);
View Full Code Here

Examples of oracle.olapi.data.source.StringParameter

    // Get the unique identifiers of the Source objects for the measures.
    String unitCostID = unitCost.getID();
    String unitPriceID = unitPrice.getID();
               
    // Create a StringParameter using one of the IDs.
    StringParameter measParam = new StringParameter(dp, unitCostID);
               
    // Create a parameterized Source.
    StringSource measParamSrc = dp.createParameterizedSource(measParam);
               
    // Get the metadata objects and the Source objects for the dimensions of
    // the measures.
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmTimeHier = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
    StringSource prodHier = (StringSource) mdmProdDim.getSource();
    StringSource timeHier = (StringSource) mdmTimeHier.getSource();
               
    // Select elements from the hierarchies.
    Source prodSel = prodHier.selectValues(new String[]
                                        {"PRODUCT_PRIMARY_AW::ITEM_AW::13",
                                         "PRODUCT_PRIMARY_AW::ITEM_AW::14"});
                        
    Source timeSel = timeHier.selectValues(new String[]
                                           {"CALENDAR_YEAR_AW::MONTH_AW::58",
                                            "CALENDAR_YEAR_AW::MONTH_AW::59"});
                                 
    // Get the short description attributes for the dimensions and
    // get the Source objects for the attributes.
    MdmAttribute mdmProdShortDescr =
                               mdmProdDim.getShortValueDescriptionAttribute();
    MdmAttribute mdmTimeShortDescr =
                               mdmTimeDim.getShortValueDescriptionAttribute();
    Source prodShortDescr = mdmProdShortDescr.getSource();
    Source timeShortDescr = mdmTimeShortDescr.getSource();
                                 
    // Join the hierarchy selections to the short descriptions.
    Source prodSelShortDescr = prodShortDescr.join(prodSel);
    Source timeSelShortDescr = timeShortDescr.join(timeSel);
                                 
    // Extract the values from the measure dimension elements, and join
    // them to the specified measure and the dimension selections.
    Source result = measDim.extract().join(measDim, measParamSrc)
                                     .join(prodSelShortDescr)
                                     .join(timeSelShortDescr);
                                 
    // Prepare and commit the current transaction.
    prepareAndCommit();
                                 
    // Create a Cursor.
    CursorManagerSpecification cMngrSpec =
            getExpressDataProvider().createCursorManagerSpecification(result);
    SpecifiedCursorManager  spCMngr =
            getExpressDataProvider().createCursorManager(cMngrSpec);
    Cursor resultsCursor = spCMngr.createCursor();
                                 
    // Display the results.
    getContext().displayCursor(resultsCursor, true);
                                 
    //Reset the Cursor position to 1;
    resultsCursor.setPosition(1);
                                 
    //Change the value of the parameterized Source.
    measParam.setValue(unitPriceID);
                                 
    // Using the same Cursor, display the results again.
    println();
    getContext().displayCursor(resultsCursor, true);
    }
View Full Code Here

Examples of oracle.olapi.data.source.StringParameter

                              mdmChanDim.getShortValueDescriptionAttribute();
    Source chanShortDescr = mdmChanShortDescr.getSource();
       
    // Create Parameter objects with values from the CUSTOMER_AW and
    // PRODUCT_AW dimensions.
    StringParameter custParam =
                      new StringParameter(dp, "SHIPMENTS_AW::REGION_AW::9");
    StringParameter prodParam =
                new StringParameter(dp, "PRODUCT_PRIMARY_AW::FAMILY_AW::4");
       
    // Create parameterized Source objects for the default hierarchies of
    // the CUSTOMER_AW and PRODUCT_AW dimensions.
    StringSource custParamSrc = dp.createParameterizedSource(custParam);
    StringSource prodParamSrc = dp.createParameterizedSource(prodParam);
       
    // Create derived Source objects from the hierarchies, using the
    // parameterized Source objects as the comparison Source objects.
    Source paramCustSel = custHier.join(custHier.value(), custParamSrc);
    Source paramProdSel = prodHier.join(prodHier.value(), prodParamSrc);
       
    // Select elements from the other dimensions of the measure
    Source timeSel = timeHier.selectValues(new String[]
                                            {"CALENDAR_YEAR_AW::YEAR_AW::2",
                                             "CALENDAR_YEAR_AW::YEAR_AW::3",
                                             "CALENDAR_YEAR_AW::YEAR_AW::4"});
               
    Source chanSel = chanHier.selectValues(new String[]
                                       {"CHANNEL_PRIMARY_AW::CHANNEL_AW::2",
                                        "CHANNEL_PRIMARY_AW::CHANNEL_AW::3",
                                        "CHANNEL_PRIMARY_AW::CHANNEL_AW::4"});
                        
    // Join the dimension selections to the short description attributes
    // for the dimensions.
    Source columnEdge = chanSel.join(chanShortDescr);
    Source rowEdge = timeSel.join(timeShortDescr);
    Source page1 = paramProdSel.join(prodShortDescr);
    Source page2 = paramCustSel.join(custShortDescr);
                        
    // Join the dimension selections to the measure.
    Source cube = units.join(columnEdge)
                       .join(rowEdge)
                       .join(page2)
                       .join(page1);
                        
    // Prepare and commit the current Transaction.
    prepareAndCommit();
                        
    // Create a Cursor for the query.
    CursorManagerSpecification cMngrSpec =
                                 dp.createCursorManagerSpecification(cube);
    SpecifiedCursorManager  spCMngr = dp.createCursorManager(cMngrSpec);
    CompoundCursor cubeCursor = (CompoundCursor) spCMngr.createCursor();
    getContext().displayCursorAsCrosstab(cubeCursor);
                        
    // Change the customer parameter value.
    custParam.setValue("SHIPMENTS_AW::REGION_AW::10");
                        
    // Reset the Cursor position to 1.
    cubeCursor.setPosition(1);
    println();
    getContext().displayCursorAsCrosstab(cubeCursor);
                        
    // Pivot the column and row edges.
    columnEdge = timeSel.join(timeShortDescr);
    rowEdge = chanSel.join(chanShortDescr);
                        
    // Join the dimension selections to the measure.
    cube = units.join(columnEdge)
                .join(rowEdge)
                .join(page2)
                .join(page1);
                        
    prepareAndCommit();
                        
    // Create another Cursor.
    cMngrSpec = dp.createCursorManagerSpecification(cube);
    spCMngr = dp.createCursorManager(cMngrSpec);
    cubeCursor = (CompoundCursor) spCMngr.createCursor();
    getContext().displayCursorAsCrosstab(cubeCursor);
                        
    // Change the product parameter value.
    prodParam.setValue("PRODUCT_PRIMARY_AW::FAMILY_AW::5");
                        
    // Reset the Cursor position to 1
    cubeCursor.setPosition(1);
    println();
    getContext().displayCursorAsCrosstab(cubeCursor);
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.config.StringParameter

   
    enabled = config.addBooleanParameter2( "Plugin.localtracker.enable", "Plugin.localtracker.enable", true );

    config.addLabelParameter2( "Plugin.localtracker.networks.info" );
   
    final StringParameter subnets = config.addStringParameter2( "Plugin.localtracker.networks", "Plugin.localtracker.networks", "" );

    final BooleanParameter include_wellknown = config.addBooleanParameter2( "Plugin.localtracker.wellknownlocals", "Plugin.localtracker.wellknownlocals", true );
   
    config.addLabelParameter2( "Plugin.localtracker.autoadd.info" );
   
    final StringParameter autoadd = config.addStringParameter2( "Plugin.localtracker.autoadd", "Plugin.localtracker.autoadd", "" );
   
    /*
     * actually these parameters affect LAN detection as a whole, not just the local tracker,
     * so leave them enabled...
     *
    enabled.addEnabledOnSelection( lp1 );
    enabled.addEnabledOnSelection( subnets );
    enabled.addEnabledOnSelection( lp2 );
    enabled.addEnabledOnSelection( autoadd );
    */
   
    final BasicPluginViewModel  view_model =
      plugin_interface.getUIManager().createBasicPluginViewModel( "Plugin.localtracker.name" );

    view_model.setConfigSectionID(PLUGIN_CONFIGSECTION_ID);
    view_model.getActivity().setVisible( false );
    view_model.getProgress().setVisible( false );
   
    log.addListener(
        new LoggerChannelListener()
        {
          public void
          messageLogged(
            int    type,
            String  content )
          {
            view_model.getLogArea().appendText( content + "\n" );
          }
         
          public void
          messageLogged(
            String    str,
            Throwable  error )
          {
            if ( str.length() > 0 ){
              view_model.getLogArea().appendText( str + "\n" );
            }
           
            StringWriter sw = new StringWriter();
           
            PrintWriter  pw = new PrintWriter( sw );
           
            error.printStackTrace( pw );
           
            pw.flush();
           
            view_model.getLogArea().appendText( sw.toString() + "\n" );
          }
        });
   
    plugin_start_time = plugin_interface.getUtilities().getCurrentSystemTime();

    // Assume we have a core, since this is a plugin
    instance_manager  = AzureusCoreFactory.getSingleton().getInstanceManager();
   
    instance_manager.addListener( this );
   
    plugin_interface.getPluginconfig().addListener(
        new PluginConfigListener()
        {
          public void
          configSaved()
          {
            processSubNets( subnets.getValue(),include_wellknown.getValue() );
            processAutoAdd( autoadd.getValue());
          }
        });
     
    processSubNets(subnets.getValue(), include_wellknown.getValue());
    processAutoAdd(autoadd.getValue());

    final DelayedTask dt = plugin_interface.getUtilities().createDelayedTask(new Runnable()
      {
        public void
        run()
View Full Code Here

Examples of org.jboss.dashboard.ui.panel.parameters.StringParameter

    public static final String PARAM_SHOW_IMPORT = "showImport";

    public void init(PanelProvider provider) throws Exception {
        super.init(provider);
        addParameter(new BooleanParameter(provider, PARAM_USE_BLANKS, true, false));
        addParameter(new StringParameter(provider, RETURNED_FILE_NAME, true, "export.cex", false));
        addParameter(new StringParameter(provider, EXPORT_ENTRY_NAME, true, "content", false));
        addParameter(new BooleanParameter(provider, PARAM_SHOW_EXPORT, true, true));
        addParameter(new BooleanParameter(provider, PARAM_SHOW_IMPORT, true, true));
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.panel.parameters.StringParameter

        return DashboardFilterHandler.lookup(code);
    }
   
    public void init(PanelProvider provider) throws Exception {
        super.init(provider);
        addParameter(new StringParameter(provider, DashboardFilter.FILTER_HANDLER_CODE, false, false));
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.panel.parameters.StringParameter

        return DashboardFilterHandler.lookup(code);
    }
   
    public void init(PanelProvider provider) throws Exception {
        super.init(provider);
        addParameter(new StringParameter(provider, DashboardFilter.FILTER_HANDLER_CODE, false, false));
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.panel.parameters.StringParameter

    public static final String PARAM_SHOW_IMPORT = "showImport";

    public void init(PanelProvider provider) throws Exception {
        super.init(provider);
        addParameter(new BooleanParameter(provider, PARAM_USE_BLANKS, true, false));
        addParameter(new StringParameter(provider, RETURNED_FILE_NAME, true, "export.cex", false));
        addParameter(new StringParameter(provider, EXPORT_ENTRY_NAME, true, "content", false));
        addParameter(new BooleanParameter(provider, PARAM_SHOW_EXPORT, true, true));
        addParameter(new BooleanParameter(provider, PARAM_SHOW_IMPORT, true, true));
    }
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.