📄 colorselectorbeaninfo.java
字号:
asTextPropertyDescriptor()
,customEditorPropertyDescriptor()
,javaInitializationStringPropertyDescriptor()
,paintablePropertyDescriptor()
,selectedColorPropertyDescriptor()
,tagsPropertyDescriptor()
,valuePropertyDescriptor()
};
return aDescriptorList;
} catch (java.lang.Throwable exception) {
handleException(exception);
};
return null;
}
/**
* Gets the getTags() method descriptor.
* @return java.beans.MethodDescriptor
*/
public java.beans.MethodDescriptor getTagsMethodDescriptor() {
java.beans.MethodDescriptor aDescriptor = null;
try {
/* Create and return the getTags() method descriptor. */
java.lang.reflect.Method aMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aParameterTypes[] = {};
aMethod = getBeanClass().getMethod("getTags", aParameterTypes);
} catch (java.lang.Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aMethod = findMethod(getBeanClass(), "getTags", 0);
};
try {
/* Try creating the method descriptor with parameter descriptors. */
java.beans.ParameterDescriptor aParameterDescriptors[] = {};
aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors);
} catch (java.lang.Throwable exception) {
/* Try creating the method descriptor without parameter descriptors. */
handleException(exception);
aDescriptor = new java.beans.MethodDescriptor(aMethod);
};
/* aDescriptor.setDisplayName("getTags()"); */
/* aDescriptor.setShortDescription("getTags()"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
} catch (java.lang.Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Gets the getValue() method descriptor.
* @return java.beans.MethodDescriptor
*/
public java.beans.MethodDescriptor getValueMethodDescriptor() {
java.beans.MethodDescriptor aDescriptor = null;
try {
/* Create and return the getValue() method descriptor. */
java.lang.reflect.Method aMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aParameterTypes[] = {};
aMethod = getBeanClass().getMethod("getValue", aParameterTypes);
} catch (java.lang.Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aMethod = findMethod(getBeanClass(), "getValue", 0);
};
try {
/* Try creating the method descriptor with parameter descriptors. */
java.beans.ParameterDescriptor aParameterDescriptors[] = {};
aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors);
} catch (java.lang.Throwable exception) {
/* Try creating the method descriptor without parameter descriptors. */
handleException(exception);
aDescriptor = new java.beans.MethodDescriptor(aMethod);
};
/* aDescriptor.setDisplayName("getValue()"); */
/* aDescriptor.setShortDescription("getValue()"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
} catch (java.lang.Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Called whenever the bean information class throws an exception.
* @param exception java.lang.Throwable
*/
private void handleException(java.lang.Throwable exception) {
/* Uncomment the following lines to print uncaught exceptions to stdout */
// System.out.println("--------- UNCAUGHT EXCEPTION ---------");
// exception.printStackTrace(System.out);
}
/**
* Gets the isPaintable() method descriptor.
* @return java.beans.MethodDescriptor
*/
public java.beans.MethodDescriptor isPaintableMethodDescriptor() {
java.beans.MethodDescriptor aDescriptor = null;
try {
/* Create and return the isPaintable() method descriptor. */
java.lang.reflect.Method aMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aParameterTypes[] = {};
aMethod = getBeanClass().getMethod("isPaintable", aParameterTypes);
} catch (java.lang.Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aMethod = findMethod(getBeanClass(), "isPaintable", 0);
};
try {
/* Try creating the method descriptor with parameter descriptors. */
java.beans.ParameterDescriptor aParameterDescriptors[] = {};
aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors);
} catch (java.lang.Throwable exception) {
/* Try creating the method descriptor without parameter descriptors. */
handleException(exception);
aDescriptor = new java.beans.MethodDescriptor(aMethod);
};
/* aDescriptor.setDisplayName("isPaintable()"); */
/* aDescriptor.setShortDescription("isPaintable()"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
} catch (java.lang.Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Gets the javaInitializationString property descriptor.
* @return java.beans.PropertyDescriptor
*/
public java.beans.PropertyDescriptor javaInitializationStringPropertyDescriptor() {
java.beans.PropertyDescriptor aDescriptor = null;
try {
try {
/* Using methods via getMethod is the faster way to create the javaInitializationString property descriptor. */
java.lang.reflect.Method aGetMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aGetMethodParameterTypes[] = {};
aGetMethod = getBeanClass().getMethod("getJavaInitializationString", aGetMethodParameterTypes);
} catch (java.lang.Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aGetMethod = findMethod(getBeanClass(), "getJavaInitializationString", 0);
};
java.lang.reflect.Method aSetMethod = null;
aDescriptor = new java.beans.PropertyDescriptor("javaInitializationString"
, aGetMethod, aSetMethod);
} catch (java.lang.Throwable exception) {
/* Since we failed using methods, try creating a default property descriptor. */
handleException(exception);
aDescriptor = new java.beans.PropertyDescriptor("javaInitializationString"
, getBeanClass());
};
aDescriptor.setBound(true);
/* aDescriptor.setConstrained(false); */
/* aDescriptor.setDisplayName("javaInitializationString"); */
/* aDescriptor.setShortDescription("javaInitializationString"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
} catch (java.lang.Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Gets the paintable property descriptor.
* @return java.beans.PropertyDescriptor
*/
public java.beans.PropertyDescriptor paintablePropertyDescriptor() {
java.beans.PropertyDescriptor aDescriptor = null;
try {
try {
/* Using methods via getMethod is the faster way to create the paintable property descriptor. */
java.lang.reflect.Method aGetMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aGetMethodParameterTypes[] = {};
aGetMethod = getBeanClass().getMethod("isPaintable", aGetMethodParameterTypes);
} catch (java.lang.Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aGetMethod = findMethod(getBeanClass(), "isPaintable", 0);
};
java.lang.reflect.Method aSetMethod = null;
aDescriptor = new java.beans.PropertyDescriptor("paintable"
, aGetMethod, aSetMethod);
} catch (java.lang.Throwable exception) {
/* Since we failed using methods, try creating a default property descriptor. */
handleException(exception);
aDescriptor = new java.beans.PropertyDescriptor("paintable"
, getBeanClass());
};
aDescriptor.setBound(true);
/* aDescriptor.setConstrained(false); */
/* aDescriptor.setDisplayName("paintable"); */
/* aDescriptor.setShortDescription("paintable"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
} catch (java.lang.Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Gets the paintValue(java.awt.Graphics, java.awt.Rectangle) method descriptor.
* @return java.beans.MethodDescriptor
*/
public java.beans.MethodDescriptor paintValue_javaawtGraphics_javaawtRectangleMethodDescriptor() {
java.beans.MethodDescriptor aDescriptor = null;
try {
/* Create and return the paintValue(java.awt.Graphics, java.awt.Rectangle) method descriptor. */
java.lang.reflect.Method aMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aParameterTypes[] = {
java.awt.Graphics.class,
java.awt.Rectangle.class
};
aMethod = getBeanClass().getMethod("paintValue", aParameterTypes);
} catch (java.lang.Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aMethod = findMethod(getBeanClass(), "paintValue", 2);
};
try {
/* Try creating the method descriptor with parameter descriptors. */
java.beans.ParameterDescriptor aParameterDescriptor1 = new java.beans.ParameterDescriptor();
aParameterDescriptor1.setName("arg1");
aParameterDescriptor1.setDisplayName("gfx");
java.beans.ParameterDescriptor aParameterDescriptor2 = new java.beans.ParameterDescriptor();
aParameterDescriptor2.setName("arg2");
aParameterDescriptor2.setDisplayName("box");
java.beans.ParameterDescriptor aParameterDescriptors[] = {
aParameterDescriptor1,
aParameterDescriptor2
};
aDescriptor = new java.beans.MethodDescriptor(aMethod, aParameterDescriptors);
} catch (java.lang.Throwable exception) {
/* Try creating the method descriptor without parameter descriptors. */
handleException(exception);
aDescriptor = new java.beans.MethodDescriptor(aMethod);
};
/* aDescriptor.setDisplayName("paintValue(java"); */
aDescriptor.setShortDescription("paintValue(java.awt.Graphics, java.awt.Rectangle)");
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
} catch (java.lang.Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Gets the propertyChange event set descriptor.
* @return java.beans.EventSetDescriptor
*/
public java.beans.EventSetDescriptor propertyChangeEventSetDescriptor() {
java.beans.EventSetDescriptor aDescriptor = null;
try {
try {
/* Try using method descriptors to create the propertyChange event set descriptor. */
java.beans.MethodDescriptor eventMethodDescriptors[] = {
propertyChangepropertyChange_javabeansPropertyChangeEventMethodEventDescriptor() };
java.lang.reflect.Method anAddMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class anAddMethodParameterTypes[] = {
java.beans.PropertyChangeListener.class
};
anAddMethod = getBeanClass().getMethod("addPropertyChangeListener", anAddMethodParameterTypes);
} catch (java.lang.Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
anAddMethod = findMethod(getBeanClass(), "addPropertyChangeListener", 1);
};
java.lang.reflect.Method aRemoveMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aRemoveMethodParameterTypes[] = {
java.beans.PropertyChangeListener.class
};
aRemoveMethod = getBeanClass().getMethod("removePropertyChangeListener", aRemoveMethodParameterTypes);
} catch (java.lang.Throwable exception) {
/* Since getMethod failed, call findMethod. */
handleException(exception);
aRemoveMethod = findMethod(getBeanClass(), "removePropertyChangeListener", 1);
};
aDescriptor = new java.beans.EventSetDescriptor(
"propertyChange",
java.beans.PropertyChangeListener.class,
eventMethodDescriptors, anAddMethod, aRemoveMethod);
} catch (java.lang.Throwable exception) {
/* Using method descriptors failed, try using the methods names. */
handleException(exception);
java.lang.String eventMethodNames[] = {
"propertyChange" };
aDescriptor = new java.beans.EventSetDescriptor(getBeanClass(),
"propertyChange",
java.beans.PropertyChangeListener.class,
eventMethodNames,
"addPropertyChangeListener",
"removePropertyChangeListener");
};
/* aDescriptor.setUnicast(false); */
/* aDescriptor.setDisplayName("propertyChange"); */
/* aDescriptor.setShortDescription("propertyChange"); */
/* aDescriptor.setExpert(false); */
/* aDescriptor.setHidden(false); */
} catch (java.lang.Throwable exception) {
handleException(exception);
};
return aDescriptor;
}
/**
* Gets the propertyChange.propertyChange(java.beans.PropertyChangeEvent) method descriptor.
* @return java.beans.MethodDescriptor
*/
public java.beans.MethodDescriptor propertyChangepropertyChange_javabeansPropertyChangeEventMethodEventDescriptor() {
java.beans.MethodDescriptor aDescriptor = null;
try {
/* Create and return the propertyChange.propertyChange(java.beans.PropertyChangeEvent) method descriptor. */
java.lang.reflect.Method aMethod = null;
try {
/* Attempt to find the method using getMethod with parameter types. */
java.lang.Class aParameterTypes[] = {
java.beans.PropertyChangeEvent.class
};
aMethod = (java.beans.PropertyChangeListener.class).getMethod("propertyChange", aParameterTypes);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -