protected void initialize() { BeanDescriptor bd = getBeanDescriptor(); // setup bean descriptor in constructor. bd.setName("JXTaskPaneContainer"); bd.setShortDescription("A component that contains JXTaskPanes."); bd.setValue("isContainer", Boolean.TRUE); }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(BEAN); bd.setName("include"); bd.setDisplayName(XMLBean.concatName(schema.XSD_URI, "include")); bd.setValue("ignore", new String[] {schema.XSD_URI + "#annotation"}); return bd; }
@Override public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(RelationshipStatusIs.class); bd.setDisplayName( "<html><font color='green'><center>Add<br>Relationship Status Is<br>Clause to RefSet Spec"); return bd; }
/*lazy BeanDescriptor*/ private static BeanDescriptor getBdescriptor() { BeanDescriptor beanDescriptor = new BeanDescriptor(Bean21341Hidden.class, null); beanDescriptor.setShortDescription("ShortDescription"); // GEN-HEADEREND:BeanDescriptor beanDescriptor.setValue("helpID", "HelpID"); beanDescriptor.setValue("propertiesHelpID", "PropertiesHelpID"); beanDescriptor.setValue("expertHelpID", "ExpertHelpID"); // Here you can add code for customizing the BeanDescriptor. return beanDescriptor; } // GEN-LAST:BeanDescriptor
private static BeanDescriptor getBdescriptor() { // GEN-HEADEREND:BeanDescriptor // Here you can add code for customizing the BeanDescriptor. if (beanDescriptor == null) beanDescriptor = new BeanDescriptor(StrokeToolBarBeanInfo.class); beanDescriptor.setValue("isContainer", Boolean.FALSE); beanDescriptor.setDisplayName("StrokeToolPane"); return beanDescriptor; } // GEN-LAST:BeanDescriptor
private static BeanDescriptor getBdescriptor() { // GEN-HEADEREND:BeanDescriptor // Here you can add code for customizing the BeanDescriptor. if (beanDescriptor == null) { beanDescriptor = new BeanDescriptor(JAttributeTextFieldBeanInfo.class); } beanDescriptor.setValue("isContainer", Boolean.FALSE); beanDescriptor.setDisplayName("JAttributeTextField"); return beanDescriptor; } // GEN-LAST:BeanDescriptor
public void applyMetadata(FaceletContext ctx, Object instance) { ValueExpression ve = attr.getValueExpression(ctx, type); UIComponent cc = (UIComponent) instance; assert (UIComponent.isCompositeComponent(cc)); Map<String, Object> attrs = cc.getAttributes(); BeanInfo componentMetadata = (BeanInfo) attrs.get(UIComponent.BEANINFO_KEY); BeanDescriptor desc = componentMetadata.getBeanDescriptor(); Collection<String> attributesWithDeclaredDefaultValues = (Collection<String>) desc.getValue(RIConstants.ATTRS_WITH_DECLARED_DEFAULT_VALUES); if (null != attributesWithDeclaredDefaultValues && attributesWithDeclaredDefaultValues.contains(name)) { // It is necessary to remove the value from the attribute // map because the ELexpression transparancy doesn't know // about the value's existence. attrs.remove(name); } cc.setValueExpression(name, ve); }
static { try { descr = new BeanDescriptor(AppletExecutor.class); ResourceBundle bundle = NbBundle.getBundle(AppletExecutorBeanInfo.class); descr.setName(bundle.getString("CTL_Exec_Name")); prop = new PropertyDescriptor[1]; prop[0] = new PropertyDescriptor("externalExecutor", AppletExecutor.class); // 0 prop[0].setDisplayName(bundle.getString("PROP_External_path")); prop[0].setShortDescription(bundle.getString("HINT_External_path")); } catch (IntrospectionException ex) { if (Boolean.getBoolean("netbeans.debug.exceptions")) { ex.printStackTrace(); } } }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(DestroyFailsafe.class); bd.setDisplayName("<html><font color='red'><center>Destroy Failsafe"); return bd; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(OneItemInSet.class); bd.setDisplayName("<html><font color='green'><center>Check if 1<br>item in set"); return bd; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(SetEditPathForProfile.class); bd.setDisplayName("<html><font color='green'><center>add edit path<br>to profile"); return bd; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(ToQueue.class); bd.setDisplayName("<html><font color='green'><center>To Queue"); return bd; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(PerformRefresetRefreshAction.class); bd.setDisplayName("<html><font color='green'><center>Perform Refset<br>Refresh Action"); return bd; }
/** * @see ViewHandler#retargetAttachedObjects(javax.faces.context.FacesContext, * javax.faces.component.UIComponent, java.util.List) */ @Override public void retargetAttachedObjects( FacesContext context, UIComponent topLevelComponent, List<AttachedObjectHandler> handlers) { BeanInfo componentBeanInfo = (BeanInfo) topLevelComponent.getAttributes().get(UIComponent.BEANINFO_KEY); // PENDING(edburns): log error message if componentBeanInfo is null; if (null == componentBeanInfo) { return; } BeanDescriptor componentDescriptor = componentBeanInfo.getBeanDescriptor(); // There is an entry in targetList for each attached object in the // <composite:interface> section of the composite component. List<AttachedObjectTarget> targetList = (List<AttachedObjectTarget>) componentDescriptor.getValue(AttachedObjectTarget.ATTACHED_OBJECT_TARGETS_KEY); // Each entry in targetList will vend one or more UIComponent instances // that is to serve as the target of an attached object in the consuming // page. List<UIComponent> targetComponents = null; String forAttributeValue, curTargetName, handlerTagId, componentTagId; boolean foundMatch = false; // For each of the attached object handlers... for (AttachedObjectHandler curHandler : handlers) { // Get the name given to this attached object by the page author // in the consuming page. forAttributeValue = curHandler.getFor(); // For each of the attached objects in the <composite:interface> section // of this composite component... foundMatch = false; for (AttachedObjectTarget curTarget : targetList) { if (foundMatch) { break; } // Get the name given to this attached object target by the // composite component author curTargetName = curTarget.getName(); targetComponents = curTarget.getTargets(topLevelComponent); if (curHandler instanceof ActionSource2AttachedObjectHandler && curTarget instanceof ActionSource2AttachedObjectTarget) { if (forAttributeValue.equals(curTargetName)) { for (UIComponent curTargetComponent : targetComponents) { curHandler.applyAttachedObject(context, curTargetComponent); foundMatch = true; } } } else if (curHandler instanceof EditableValueHolderAttachedObjectHandler && curTarget instanceof EditableValueHolderAttachedObjectTarget) { if (forAttributeValue.equals(curTargetName)) { for (UIComponent curTargetComponent : targetComponents) { curHandler.applyAttachedObject(context, curTargetComponent); foundMatch = true; } } } else if (curHandler instanceof ValueHolderAttachedObjectHandler && curTarget instanceof ValueHolderAttachedObjectTarget) { if (forAttributeValue.equals(curTargetName)) { for (UIComponent curTargetComponent : targetComponents) { curHandler.applyAttachedObject(context, curTargetComponent); foundMatch = true; } } } } } }
public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Wombat.class); // set a value to ensure that it's unique bd.setValue("test", Boolean.TRUE); return bd; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(PutCurrentProfileInProperty.class); bd.setDisplayName("<html><font color='green'><center>Put Current Profile<br>in Property"); return bd; }
/** @return BeanDescriptor with localized name */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(FastJavacCompilerType.class); bd.setDisplayName(JavaCompilerType.getString("CTL_FastCompilerType")); return bd; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(ResetWorkerSimulationClock.class); bd.setDisplayName("<html><font color='green'><center>Reset Worker<br>Simulation Clock"); return bd; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(TakeFirstItemInAttachmentList.class); bd.setDisplayName( "<html><font color='green'><center>Take First Item<br>In Attachment List<br> Return Concept"); return bd; }
@Override public BeanDescriptor getBeanDescriptor() { BeanDescriptor d = new BeanDescriptor(Base.class, null); d.setShortDescription("BASE"); return d; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(CommitAllSvnEntries.class); bd.setDisplayName("<html><font color='green'><center>Commit All Svn Entries"); return bd; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(ImportAllChangeSets.class); bd.setDisplayName("<html><font color='green'><center>Import All<br>Change Sets"); return bd; }
/** @see java.beans.BeanInfo#getBeanDescriptor() */ public BeanDescriptor getBeanDescriptor() { BeanDescriptor bd = new BeanDescriptor(Cancel.class); bd.setDisplayName("<html><font color='green'><center>Cancel Changes"); return bd; }