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


Java PropertyDescriptor.setShortDescription方法代码示例

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


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

示例1: getPropertyDescriptors

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
/**
 * @return Returns an array of PropertyDescriptors
 * describing the editable properties supported by this bean. */
public PropertyDescriptor[] getPropertyDescriptors () {
    try {

        PropertyDescriptor p2 = new PropertyDescriptor(
            "extensions", // NOI18N
            PropertiesDataLoader.class,
            "getExtensions", // NOI18N
            "setExtensions"); // NOI18N

        p2.setDisplayName(NbBundle.getBundle(PropertiesDataLoaderBeanInfo.class).getString("PROP_Ext"));
        p2.setShortDescription(NbBundle.getBundle(PropertiesDataLoaderBeanInfo.class).getString("HINT_Ext"));

        return new PropertyDescriptor[] {p2};
    } catch(IntrospectionException ie) {
        ErrorManager.getDefault().notify(ie);
        
        return null;
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:PropertiesDataLoaderBeanInfo.java

示例2: MoveStepBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public MoveStepBeanInfo() {
	try {
		beanClass = MoveStep.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.steps.CopyStep.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/steps/images/move_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/steps/images/move_32x32.png";
		
		resourceBundle = getResourceBundle("res/MoveStep");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");	          
	
		PropertyDescriptor property = getPropertyDescriptor("sourcePath");
		property.setDisplayName(getExternalizedString("property.sourcePath.display_name"));
		property.setShortDescription(getExternalizedString("property.sourcePath.short_description"));

		property = getPropertyDescriptor("destinationPath");
		property.setDisplayName(getExternalizedString("property.destinationPath.display_name"));
		property.setShortDescription(getExternalizedString("property.destinationPath.short_description"));
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:26,代码来源:MoveStepBeanInfo.java

示例3: IfFileExistStepBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public IfFileExistStepBeanInfo() {
	try {
		beanClass = IfFileExistStep.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.steps.BlockStep.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/steps/images/ifFileExists_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/steps/images/ifFileExists_32x32.png";
		
		resourceBundle = getResourceBundle("res/IfFileExistStep");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");

		PropertyDescriptor property = getPropertyDescriptor("condition");
		property.setDisplayName(getExternalizedString("property.condition.display_name"));
		property.setShortDescription(getExternalizedString("property.condition.short_description"));
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:22,代码来源:IfFileExistStepBeanInfo.java

示例4: GenericSequenceBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public GenericSequenceBeanInfo() {
	try {
		beanClass = GenericSequence.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.core.Sequence.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/sequences/images/genericsequence_color_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/sequences/images/genericsequence_color_32x32.png";

		resourceBundle = getResourceBundle("res/GenericSequence");
		
		displayName = getExternalizedString("display_name");
		shortDescription = getExternalizedString("short_description");
		
		PropertyDescriptor property = getPropertyDescriptor("sheetLocation");
           property.setDisplayName(getExternalizedString("property.sheetLocation.display_name"));
           property.setShortDescription(getExternalizedString("property.sheetLocation.short_description"));
		
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:23,代码来源:GenericSequenceBeanInfo.java

示例5: XsdSchemaReferenceBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public XsdSchemaReferenceBeanInfo() {
	try {
		beanClass = XsdSchemaReference.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.references.RemoteFileReference.class;

		resourceBundle = getResourceBundle("res/XsdSchemaReference");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");
		
        PropertyDescriptor filepathProperty = getPropertyDescriptor("filepath");
        filepathProperty.setDisplayName(getExternalizedString("property.filepath.display_name"));
        filepathProperty.setShortDescription(getExternalizedString("property.filepath.short_description"));

        PropertyDescriptor urlpathProperty = getPropertyDescriptor("urlpath");
        urlpathProperty.setDisplayName(getExternalizedString("property.urlpath.display_name"));
        urlpathProperty.setShortDescription(getExternalizedString("property.urlpath.short_description"));
		
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:24,代码来源:XsdSchemaReferenceBeanInfo.java

示例6: RestModelReferenceBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public RestModelReferenceBeanInfo() {
	try {
		beanClass = RestModelReference.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.references.RemoteFileReference.class;

		resourceBundle = getResourceBundle("res/RestModelReference");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");
		
        PropertyDescriptor filepathProperty = getPropertyDescriptor("filepath");
        filepathProperty.setDisplayName(getExternalizedString("property.filepath.display_name"));
        filepathProperty.setShortDescription(getExternalizedString("property.filepath.short_description"));

        PropertyDescriptor urlpathProperty = getPropertyDescriptor("urlpath");
        urlpathProperty.setDisplayName(getExternalizedString("property.urlpath.display_name"));
        urlpathProperty.setShortDescription(getExternalizedString("property.urlpath.short_description"));
		
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:24,代码来源:RestModelReferenceBeanInfo.java

示例7: WsdlSchemaReferenceBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public WsdlSchemaReferenceBeanInfo() {
	try {
		beanClass = WsdlSchemaReference.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.references.RemoteFileReference.class;

		resourceBundle = getResourceBundle("res/WsdlSchemaReference");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");
		
        PropertyDescriptor filepathProperty = getPropertyDescriptor("filepath");
        filepathProperty.setDisplayName(getExternalizedString("property.filepath.display_name"));
        filepathProperty.setShortDescription(getExternalizedString("property.filepath.short_description"));

        PropertyDescriptor urlpathProperty = getPropertyDescriptor("urlpath");
        urlpathProperty.setDisplayName(getExternalizedString("property.urlpath.display_name"));
        urlpathProperty.setShortDescription(getExternalizedString("property.urlpath.short_description"));
		
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:24,代码来源:WsdlSchemaReferenceBeanInfo.java

示例8: IfXpathExistsThenElseStatementBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public IfXpathExistsThenElseStatementBeanInfo() {
	try {
		beanClass = IfXpathExistsThenElseStatement.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.statements.IfXpathExistsStatement.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/statements/images/ifxpathexists_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/statements/images/ifxpathexists_32x32.png";
		
		resourceBundle = getResourceBundle("res/IfXpathExistsThenElseStatement");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");
		
		PropertyDescriptor property = getPropertyDescriptor("condition");
           property.setDisplayName(getExternalizedString("property.condition.display_name"));
           property.setShortDescription(getExternalizedString("property.condition.short_description"));
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:22,代码来源:IfXpathExistsThenElseStatementBeanInfo.java

示例9: ScEntryDefaultHandlerStatementBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public ScEntryDefaultHandlerStatementBeanInfo() {
	try {
		beanClass = ScEntryDefaultHandlerStatement.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.statements.ScDefaultHandlerStatement.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/statements/images/handler_entry_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/statements/images/handler_entry_32x32.png";
		
		resourceBundle = getResourceBundle("res/ScEntryDefaultHandlerStatement");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");

		PropertyDescriptor property = getPropertyDescriptor("handlerResult");
           property.setDisplayName(getExternalizedString("property.handlerResult.display_name"));
           property.setShortDescription(getExternalizedString("property.handlerResult.short_description"));
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:22,代码来源:ScEntryDefaultHandlerStatementBeanInfo.java

示例10: ScEntryHandlerStatementBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public ScEntryHandlerStatementBeanInfo() {
	try {
		beanClass = ScEntryHandlerStatement.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.statements.ScHandlerStatement.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/statements/images/handler_entry_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/statements/images/handler_entry_32x32.png";
		
		resourceBundle = getResourceBundle("res/ScEntryHandlerStatement");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");

		PropertyDescriptor property = getPropertyDescriptor("handlerResult");
           property.setDisplayName(getExternalizedString("property.handlerResult.display_name"));
           property.setShortDescription(getExternalizedString("property.handlerResult.short_description"));
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:22,代码来源:ScEntryHandlerStatementBeanInfo.java

示例11: ScExitHandlerStatementBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public ScExitHandlerStatementBeanInfo() {
	try {
		beanClass = ScExitHandlerStatement.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.statements.ScHandlerStatement.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/statements/images/handler_exit_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/statements/images/handler_exit_32x32.png";
		
		resourceBundle = getResourceBundle("res/ScExitHandlerStatement");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");

		PropertyDescriptor property = getPropertyDescriptor("handlerResult");
           property.setDisplayName(getExternalizedString("property.handlerResult.display_name"));
           property.setShortDescription(getExternalizedString("property.handlerResult.short_description"));
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:22,代码来源:ScExitHandlerStatementBeanInfo.java

示例12: ScExitDefaultHandlerStatementBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public ScExitDefaultHandlerStatementBeanInfo() {
	try {
		beanClass = ScExitDefaultHandlerStatement.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.statements.ScDefaultHandlerStatement.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/statements/images/handler_exit_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/statements/images/handler_exit_32x32.png";
		
		resourceBundle = getResourceBundle("res/ScExitDefaultHandlerStatement");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");

		PropertyDescriptor property = getPropertyDescriptor("handlerResult");
           property.setDisplayName(getExternalizedString("property.handlerResult.display_name"));
           property.setShortDescription(getExternalizedString("property.handlerResult.short_description"));
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:22,代码来源:ScExitDefaultHandlerStatementBeanInfo.java

示例13: copyNonMethodProperties

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public static void copyNonMethodProperties(PropertyDescriptor source, PropertyDescriptor target)
		throws IntrospectionException {

	target.setExpert(source.isExpert());
	target.setHidden(source.isHidden());
	target.setPreferred(source.isPreferred());
	target.setName(source.getName());
	target.setShortDescription(source.getShortDescription());
	target.setDisplayName(source.getDisplayName());

	// Copy all attributes (emulating behavior of private FeatureDescriptor#addTable)
	Enumeration<String> keys = source.attributeNames();
	while (keys.hasMoreElements()) {
		String key = keys.nextElement();
		target.setValue(key, source.getValue(key));
	}

	// See java.beans.PropertyDescriptor#PropertyDescriptor(PropertyDescriptor)
	target.setPropertyEditorClass(source.getPropertyEditorClass());
	target.setBound(source.isBound());
	target.setConstrained(source.isConstrained());
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:23,代码来源:ExtendedBeanInfo.java

示例14: getPropertyDescriptor

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
protected PropertyDescriptor getPropertyDescriptor(String name) throws IntrospectionException {
	checkAdditionalProperties();
	for (int i = 0 ; i < properties.length ; i++) {
		PropertyDescriptor property = properties[i];
		if (name.equals(property.getName())) {
			PropertyDescriptor clone = new PropertyDescriptor(name, property.getReadMethod(), property.getWriteMethod());
			clone.setDisplayName(property.getDisplayName());
			clone.setShortDescription(property.getShortDescription());
			clone.setPropertyEditorClass(property.getPropertyEditorClass());
			clone.setBound(property.isBound());
			clone.setConstrained(property.isConstrained());
			clone.setExpert(property.isExpert());
			clone.setHidden(property.isHidden());
			clone.setPreferred(property.isPreferred());
			for (String attributeName : Collections.list(property.attributeNames())) {
				clone.setValue(attributeName, property.getValue(attributeName));
			}
			return properties[i] = clone;
		}
	}
	return null;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:23,代码来源:MySimpleBeanInfo.java

示例15: IteratorStepBeanInfo

import java.beans.PropertyDescriptor; //导入方法依赖的package包/类
public IteratorStepBeanInfo() {
	try {
		beanClass = IteratorStep.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.steps.LoopStep.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/steps/images/iterator_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/steps/images/iterator_32x32.png";
		
		resourceBundle = getResourceBundle("res/IteratorStep");
		
		displayName = resourceBundle.getString("display_name");
		shortDescription = resourceBundle.getString("short_description");
		
		properties = new PropertyDescriptor[2];
		
           properties[0] = new PropertyDescriptor("sourceDefinition", beanClass, "getSourceDefinition", "setSourceDefinition");
		properties[0].setExpert(true);
		properties[0].setDisplayName(getExternalizedString("property.sourceDefinition.display_name"));
		properties[0].setShortDescription(getExternalizedString("property.sourceDefinition.short_description"));
		properties[0].setPropertyEditorClass(getEditorClass("StepSourceEditor"));

           properties[1] = new PropertyDescriptor("startIndex", beanClass, "getStartIndex", "setStartIndex");
		properties[1].setDisplayName(getExternalizedString("property.startIndex.display_name"));
		properties[1].setShortDescription(getExternalizedString("property.startIndex.short_description"));
		properties[1].setValue("scriptable", Boolean.TRUE);
		
		PropertyDescriptor property = getPropertyDescriptor("condition");
		property.setDisplayName(getExternalizedString("property.condition.display_name"));
		property.setShortDescription(getExternalizedString("property.condition.short_description"));
	}
	catch(Exception e) {
		com.twinsoft.convertigo.engine.Engine.logBeans.error("Exception with bean info; beanClass=" + beanClass.toString(), e);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:35,代码来源:IteratorStepBeanInfo.java


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