📄 vdatebeaninfo.java
字号:
package org.compiere.grid.ed;
import java.beans.*;
/**
* Generated
*
* @author Jorg Janke
* @version $Id: VDateBeanInfo.java,v 1.3 2002/06/24 05:01:45 jjanke Exp $
*/
public class VDateBeanInfo extends SimpleBeanInfo
{
private Class beanClass = VDate.class;
private String iconColor16x16Filename;
private String iconColor32x32Filename;
private String iconMono16x16Filename;
private String iconMono32x32Filename;
public VDateBeanInfo()
{
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
PropertyDescriptor _background = new PropertyDescriptor("background", beanClass, null, "setBackground");
PropertyDescriptor _display = new PropertyDescriptor("display", beanClass, "getDisplay", null);
PropertyDescriptor _field = new PropertyDescriptor("field", beanClass, null, "setField");
PropertyDescriptor _foreground = new PropertyDescriptor("foreground", beanClass, null, "setForeground");
PropertyDescriptor _mandatory = new PropertyDescriptor("mandatory", beanClass, "isMandatory", "setMandatory");
PropertyDescriptor _readWrite = new PropertyDescriptor("readWrite", beanClass, "isReadWrite", "setReadWrite");
PropertyDescriptor _timestamp = new PropertyDescriptor("timestamp", beanClass, "getTimestamp", null);
PropertyDescriptor _value = new PropertyDescriptor("value", beanClass, "getValue", "setValue");
PropertyDescriptor[] pds = new PropertyDescriptor[] {
_background,
_display,
_field,
_foreground,
_mandatory,
_readWrite,
_timestamp,
_value};
return pds;
}
catch(IntrospectionException ex)
{
ex.printStackTrace();
return null;
}
}
public java.awt.Image getIcon(int iconKind)
{
switch (iconKind) {
case BeanInfo.ICON_COLOR_16x16:
return iconColor16x16Filename != null ? loadImage(iconColor16x16Filename) : null;
case BeanInfo.ICON_COLOR_32x32:
return iconColor32x32Filename != null ? loadImage(iconColor32x32Filename) : null;
case BeanInfo.ICON_MONO_16x16:
return iconMono16x16Filename != null ? loadImage(iconMono16x16Filename) : null;
case BeanInfo.ICON_MONO_32x32:
return iconMono32x32Filename != null ? loadImage(iconMono32x32Filename) : null;
}
return null;
}
public BeanInfo[] getAdditionalBeanInfo()
{
Class superclass = beanClass.getSuperclass();
try
{
BeanInfo superBeanInfo = Introspector.getBeanInfo(superclass);
return new BeanInfo[] { superBeanInfo };
}
catch(IntrospectionException ex)
{
ex.printStackTrace();
return null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -