当前位置: 首页>>代码示例>>Java>>正文


Java FeatureDescriptor.setValue方法代码示例

本文整理汇总了Java中java.beans.FeatureDescriptor.setValue方法的典型用法代码示例。如果您正苦于以下问题:Java FeatureDescriptor.setValue方法的具体用法?Java FeatureDescriptor.setValue怎么用?Java FeatureDescriptor.setValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在java.beans.FeatureDescriptor的用法示例。


在下文中一共展示了FeatureDescriptor.setValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: __addFeatureValues

import java.beans.FeatureDescriptor; //导入方法依赖的package包/类
/**
 * Add all of the attributes of one FeatureDescriptor to thos
 * of another, replacing any attributes that conflict.
 */
static void __addFeatureValues(
  FeatureDescriptor addingDescriptor,
  FeatureDescriptor destinationDescriptor
  )
{
  Enumeration<String> keys = addingDescriptor.attributeNames();

  if (keys != null)
  {
    while (keys.hasMoreElements())
    {
      String key = keys.nextElement();
      Object value = addingDescriptor.getValue(key);
      destinationDescriptor.setValue(key, value);
    }
  }
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:22,代码来源:JavaIntrospector.java

示例2: _createFeatureDescriptorList

import java.beans.FeatureDescriptor; //导入方法依赖的package包/类
/**
 * Creates the list of FeatureDescriptors.
 */
private List<FeatureDescriptor> _createFeatureDescriptorList()
{
  ArrayList<FeatureDescriptor> list = new ArrayList<FeatureDescriptor>();
  // FeatureDescriptor for "requestContext"
  FeatureDescriptor requestContext = new FeatureDescriptor();
  requestContext.setName(RequestContext.VARIABLE_NAME);
  // TODO translate this
  requestContext.setShortDescription("Trinidad RequestContext");
  requestContext.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, false);
  requestContext.setValue(ELResolver.TYPE, RequestContext.class);
  list.add(requestContext);
  
  // FeatureDescriptor for "pageFlowScope"
  FeatureDescriptor pageFlowScope = new FeatureDescriptor();
  pageFlowScope.setName(PAGE_FLOW_SCOPE_VARIABLE_NAME);
  // TODO translate this
  pageFlowScope.setShortDescription("Trinidad Page Flow Scope");
  pageFlowScope.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, false);
  pageFlowScope.setValue(ELResolver.TYPE, Map.class);
  list.add(pageFlowScope);
  
  // FeatureDescriptor for "processScope"
  FeatureDescriptor processScope = new FeatureDescriptor();
  processScope.setName(PAGE_FLOW_SCOPE_VARIABLE_NAME);
  // TODO translate this
  pageFlowScope.setShortDescription(
    "Backwards compatibility alias for Trinidad Page Flow Scope");
  processScope.setExpert(true);
  processScope.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, false);
  processScope.setValue(ELResolver.TYPE, Map.class);
  list.add(pageFlowScope);

  return Collections.unmodifiableList(list);
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:38,代码来源:TrinidadELResolver.java

示例3: createObjectCircle

import java.beans.FeatureDescriptor; //导入方法依赖的package包/类
private static EventObject createObjectCircle() {
    FeatureDescriptor fd = new FeatureDescriptor();
    EventObject eo = new EventObject(fd);
    fd.setValue("event", eo);
    return eo;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:7,代码来源:MirrorValuesApp.java


注:本文中的java.beans.FeatureDescriptor.setValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。