本文整理匯總了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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());
}
示例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);
}
}
示例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;
}
示例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();
}
示例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);
}
}