@Override public FeatureDescriptor next() { Object key = keys.next(); FeatureDescriptor feature = new FeatureDescriptor(); feature.setDisplayName(key == null ? "null" : key.toString()); feature.setName(feature.getDisplayName()); feature.setShortDescription(""); feature.setExpert(true); feature.setHidden(false); feature.setPreferred(true); feature.setValue(TYPE, key == null ? "null" : key.getClass()); feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true); return feature; }
descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription(""); descriptor.setExpert(false); descriptor.setHidden(false);
descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription("page scope attribute"); descriptor.setExpert(false); descriptor.setHidden(false); descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription("request scope attribute"); descriptor.setExpert(false); descriptor.setHidden(false); descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription("session scope attribute"); descriptor.setExpert(false); descriptor.setHidden(false); descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription("application scope attribute"); descriptor.setExpert(false); descriptor.setHidden(false);
/** Set the short description of the node. Fires a property change event. * <p>This description may be used for tool tips, etc. * @param s the new description */ @Override public void setShortDescription(String s) { String descr = super.getShortDescription(); if ((descr == null) || !descr.equals(s)) { super.setShortDescription(s); fireShortDescriptionChange(descr, s); } }
/** Create a property set. * @param name system name of the property set * @param displayName human presentable name * @param shortDescription description for the set */ public PropertySet(String name, String displayName, String shortDescription) { super.setName(name); super.setDisplayName(displayName); super.setShortDescription(shortDescription); }
public FeatureDescriptor next() { Object key = keys.next(); FeatureDescriptor feature = new FeatureDescriptor(); feature.setDisplayName(key == null ? "null" : key.toString()); feature.setName(feature.getDisplayName()); feature.setShortDescription(""); feature.setExpert(true); feature.setHidden(false); feature.setPreferred(true); feature.setValue(TYPE, key == null ? null : key.getClass()); feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true); return feature; } public void remove() {
public FeatureDescriptor next() { Object key = keys.next(); FeatureDescriptor feature = new FeatureDescriptor(); feature.setDisplayName(key == null ? "null" : key.toString()); feature.setName(feature.getDisplayName()); feature.setShortDescription(""); feature.setExpert(true); feature.setHidden(false); feature.setPreferred(true); feature.setValue(TYPE, key == null ? null : key.getClass()); feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true); return feature; } public void remove() {
descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription(""); descriptor.setExpert(false); descriptor.setHidden(false);
public FeatureDescriptor next() { FeatureDescriptor feature = new FeatureDescriptor(); feature.setDisplayName(keys.nextElement()); feature.setName(feature.getDisplayName()); feature.setShortDescription(""); feature.setExpert(true); feature.setHidden(false); feature.setPreferred(true); feature.setValue(TYPE, String.class); feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true); return feature; } public void remove() {
public FeatureDescriptor next() { FeatureDescriptor feature = new FeatureDescriptor(); feature.setDisplayName(keys.nextElement()); feature.setName(feature.getDisplayName()); feature.setShortDescription(""); feature.setExpert(true); feature.setHidden(false); feature.setPreferred(true); feature.setValue(TYPE, String.class); feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true); return feature; } public void remove() {
public FeatureDescriptor next() { PropertyDescriptor property = properties[next++]; FeatureDescriptor feature = new FeatureDescriptor(); feature.setDisplayName(property.getDisplayName()); feature.setName(property.getName()); feature.setShortDescription(property.getShortDescription()); feature.setExpert(property.isExpert()); feature.setHidden(property.isHidden()); feature.setPreferred(property.isPreferred()); feature.setValue(TYPE, property.getPropertyType()); feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true); return feature; }
public FeatureDescriptor next() { PropertyDescriptor property = properties[next++]; FeatureDescriptor feature = new FeatureDescriptor(); feature.setDisplayName(property.getDisplayName()); feature.setName(property.getName()); feature.setShortDescription(property.getShortDescription()); feature.setExpert(property.isExpert()); feature.setHidden(property.isHidden()); feature.setPreferred(property.isPreferred()); feature.setValue(TYPE, property.getPropertyType()); feature.setValue(RESOLVABLE_AT_DESIGN_TIME, true); return feature; }
descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription("page scope attribute"); descriptor.setExpert(false); descriptor.setHidden(false); descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription("request scope attribute"); descriptor.setExpert(false); descriptor.setHidden(false); descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription("session scope attribute"); descriptor.setExpert(false); descriptor.setHidden(false); descriptor.setName(name); descriptor.setDisplayName(name); descriptor.setShortDescription("application scope attribute"); descriptor.setExpert(false); descriptor.setHidden(false);
public void apply(FaceletContext ctx, String propName, FeatureDescriptor target, TagAttribute attribute) { ValueExpression ve = attribute.getValueExpression(ctx, getEvalType()); String v = (String) ve.getValue(ctx); if (v != null) { target.setShortDescription((String) ve.getValue(ctx)); } }
public void apply(FaceletContext ctx, String propName, FeatureDescriptor target, TagAttribute attribute) { ValueExpression ve = attribute.getValueExpression(ctx, getEvalType()); String v = (String) ve.getValue(ctx); if (v != null) { target.setShortDescription((String) ve.getValue(ctx)); } } }
@Override public void apply(FaceletContext ctx, String propName, FeatureDescriptor target, TagAttribute attribute) { ValueExpression ve = attribute.getValueExpression(ctx, getEvalType()); String v = (String) ve.getValue(ctx); if (v != null) { target.setShortDescription((String) ve.getValue(ctx)); } }
@Override public void apply(FaceletContext ctx, String propName, FeatureDescriptor target, TagAttribute attribute) { ValueExpression ve = attribute.getValueExpression(ctx, getEvalType()); String v = (String) ve.getValue(ctx); if (v != null) { target.setShortDescription((String) ve.getValue(ctx)); } } }
protected static void addFeatureDescriptor(String featureName, Class<?> classType) { FeatureDescriptor featureDescriptor = new FeatureDescriptor(); featureDescriptor.setName(featureName); featureDescriptor.setDisplayName(featureName); featureDescriptor.setShortDescription(featureName); featureDescriptor.setExpert(false); featureDescriptor.setHidden(false); featureDescriptor.setPreferred(true); featureDescriptor.setValue(ELResolver.TYPE, classType); featureDescriptor.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, true); FEATURE_DESCRIPTORS.add(featureDescriptor); }
protected static void addFeatureDescriptor(String featureName, Class<?> classType) { FeatureDescriptor featureDescriptor = new FeatureDescriptor(); featureDescriptor.setName(featureName); featureDescriptor.setDisplayName(featureName); featureDescriptor.setShortDescription(featureName); featureDescriptor.setExpert(false); featureDescriptor.setHidden(false); featureDescriptor.setPreferred(true); featureDescriptor.setValue(ELResolver.TYPE, classType); featureDescriptor.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, true); FEATURE_DESCRIPTORS.add(featureDescriptor); }
private static FeatureDescriptor makeDescriptor(final String beanName, final ManagedBean managedBean) { final FeatureDescriptor fd = new FeatureDescriptor(); fd.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, Boolean.TRUE); fd.setValue(ELResolver.TYPE, managedBean.getManagedBeanClass()); fd.setName(beanName); fd.setDisplayName(beanName); fd.setShortDescription(managedBean.getDescription()); fd.setExpert(false); fd.setHidden(false); fd.setPreferred(true); return fd; }