Examples of Param


Examples of org.exoplatform.webui.config.Param

      //    setComponentConfig(UIContainerConfigOptions.class, null);   
      selectedCategory_ = null;
      if (initParams == null)
         return;
      WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
      Param param = initParams.getParam("ContainerConfigOption");
      categories_ = (List<SelectItemCategory>)param.getMapGroovyObject(context);
      if (categories_ == null)
         return;
      setSelectedCategory(categories_.get(0));
   }
View Full Code Here

Examples of org.exoplatform.webui.config.Param

      if (annotations == null || annotations.length < 1)
         return null;
      ArrayList<Param> listParam = new ArrayList<Param>();
      for (ParamConfig ele : annotations)
      {
         Param param = new Param();
         param.setName(ele.name());
         param.setValue(ele.value());
         listParam.add(param);
      }
      InitParams initParams = new InitParams();
      initParams.setParams(listParam);
      return initParams;
View Full Code Here

Examples of org.exoplatform.webui.config.Param

        // setComponentConfig(UIContainerConfigOptions.class, null);
        selectedCategory_ = null;
        if (initParams == null)
            return;
        WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
        Param param = initParams.getParam("ContainerConfigOption");
        categories_ = (List<SelectItemCategory>) param.getMapGroovyObject(context);
        if (categories_ == null)
            return;
        setSelectedCategory(categories_.get(0));
    }
View Full Code Here

Examples of org.exoplatform.webui.config.Param

    public UIPageTemplateOptions(InitParams initParams) throws Exception {
        super("UIPageTemplateOptions", null, String.class);
        if (initParams == null)
            return;
        WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
        Param param = initParams.getParam("PageLayout");
        categories_ = (List<SelectItemCategory<String>>) param.getFreshObject(context);
        selectedItemOption_ = getDefaultItemOption();
        List<SelectItemOption<String>> itemOptions = new ArrayList<SelectItemOption<String>>();

        for (SelectItemCategory<String> itemCategory : categories_) {
            itemOptions.add(new SelectItemOption<String>(itemCategory.getName()));
View Full Code Here

Examples of org.geotools.data.DataAccessFactory.Param

        this.factory = factory;
        this.params = factory.getParametersInfo();
    }
   
    public <T> T lookup( Class<T> type, String key, Map<String,?> connectionParams ){
        Param param = getParam( key );
        if( param == null ) return null;       
        if( param.type != type ){
            return null; // not a good idea
        }
        Object value;
        try {
            value = param.lookUp( connectionParams );
        } catch (IOException e) {
            return null; // silient
        }
        return type.cast( value );
    }
View Full Code Here

Examples of org.geotools.data.DataStoreFactorySpi.Param

    public static Map defaultParams(DataStoreFactorySpi factory) {
        Map defaults = new HashMap();
        Param[] params = factory.getParametersInfo();

        for (int i = 0; i < params.length; i++) {
            Param param = params[i];
            String key = param.key;
            String value = null;

            //if (param.required ) {
                if( param.sample != null){
                    // Required params may have nice sample values
                    //
                    value = param.text( param.sample );
                }
                if (value == null ) {
                    // or not
                    value = "";
                }
View Full Code Here

Examples of org.glassfish.admin.amx.annotation.Param

        for (int i = 0; i < sig.length; ++i) {
            final Class<?> paramClass = translatedType(sig[i]);
            final Annotation[] annotations = paramAnnotations[i];

            final Param p = getAnnotation(annotations, Param.class);
            final String paramName = (p == null || p.name().length() == 0) ? ("p" + i) : p.name();

            final Description d = getAnnotation(annotations, Description.class);
            String description = "";
            if (d != null && d.value().length() != 0) {
                description = d.value();
View Full Code Here

Examples of org.glassfish.api.Param

            Iterator<CommandModel.ParamModel> iterator = params.iterator();
            CommandModel.ParamModel paramModel;
            while(iterator.hasNext()) {
                paramModel = iterator.next();
                Param param = paramModel.getParam();

                ParameterMetaData parameterMetaData =
                    getParameterMetaData(paramModel);

                String parameterName =
View Full Code Here

Examples of org.jboss.seam.navigation.Param

   @Test
   public void testGetConverterById()
   {
      String converterId = "javax.faces.Integer";
      String converterClass = "javax.faces.convert.IntegerConverter";
      Param param = new Param("param");
      param.setConverterId(converterId);
      assert param.getConverter() instanceof IntegerConverter : "expecting: " + converterClass + "; got: " + param.getConverter();
   }
View Full Code Here

Examples of org.jboss.seam.navigation.Param

    * @jira JBSEAM-3674
    */
   @Test
   public void testConverterIsNullForNonFacesValueExpression()
   {
      Param param = new Param("param");
      param.setValueExpression(Expressions.instance().createValueExpression("#{variable}"));
      assert param.getConverter() == null;
   }
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.