當前位置: 首頁>>代碼示例>>Java>>正文


Java PropertyDescriptor.setDisplayName方法代碼示例

本文整理匯總了Java中java.beans.PropertyDescriptor.setDisplayName方法的典型用法代碼示例。如果您正苦於以下問題:Java PropertyDescriptor.setDisplayName方法的具體用法?Java PropertyDescriptor.setDisplayName怎麽用?Java PropertyDescriptor.setDisplayName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在java.beans.PropertyDescriptor的用法示例。


在下文中一共展示了PropertyDescriptor.setDisplayName方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: setDocInfoProps

import java.beans.PropertyDescriptor; //導入方法依賴的package包/類
/**
 * Sets properties from the BeanInfo supplement on the
 * introspected PropertyDescriptor
 */
private void setDocInfoProps(DocBeanInfo dbi, PropertyDescriptor pds) {
    int beanflags = dbi.beanflags;

    if ((beanflags & DocBeanInfo.BOUND) != 0)
        pds.setBound(true);
    if ((beanflags & DocBeanInfo.EXPERT) != 0)
        pds.setExpert(true);
    if ((beanflags & DocBeanInfo.CONSTRAINED) != 0)
        pds.setConstrained(true);
    if ((beanflags & DocBeanInfo.HIDDEN) !=0)
        pds.setHidden(true);
    if ((beanflags & DocBeanInfo.PREFERRED) !=0)
        pds.setPreferred(true);

    if (!(dbi.desc.equals("null"))){
        pds.setShortDescription(dbi.desc);
    }
    if (!(dbi.displayname.equals("null"))){
        pds.setDisplayName(dbi.displayname);
    }
}
 
開發者ID:lambdalab-mirror,項目名稱:jdk8u-jdk,代碼行數:26,代碼來源:GenSwingBeanInfo.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: 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

示例12: IfXpathExistsStatementBeanInfo

import java.beans.PropertyDescriptor; //導入方法依賴的package包/類
public IfXpathExistsStatementBeanInfo() {
	try {
		beanClass = IfXpathExistsStatement.class;
		additionalBeanClass = com.twinsoft.convertigo.beans.statements.BlockStatement.class;

		iconNameC16 = "/com/twinsoft/convertigo/beans/statements/images/ifxpathexists_16x16.png";
		iconNameC32 = "/com/twinsoft/convertigo/beans/statements/images/ifxpathexists_32x32.png";
		
		resourceBundle = getResourceBundle("res/IfXpathExistsStatement");
		
		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,代碼來源:IfXpathExistsStatementBeanInfo.java

示例13: 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

示例14: main

import java.beans.PropertyDescriptor; //導入方法依賴的package包/類
public static void main(String[] args) throws Exception {
    for (PropertyDescriptor pd : getPropertyDescriptors()) {
        pd.setDisplayName(NAME);
    }
    ThreadGroup group = new ThreadGroup(NAME);
    Thread thread = new Thread(group, new Test6660539());
    thread.start();
    thread.join();
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:10,代碼來源:Test6660539.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.setDisplayName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。