home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
FileTableModelBeanInfo.java
< prev
next >
Wrap
Text File
|
1998-10-21
|
2KB
|
50 lines
package com.symantec.itools.swing.models;
import java.beans.*;
import com.symantec.itools.vcafe.beans.PropertyDescriptorAttributes;
import com.symantec.itools.vcafe.beans.PropertyHelpIDs;
public class FileTableModelBeanInfo
extends com.symantec.itools.swing.models.ModelBeanInfo
{
public FileTableModelBeanInfo()
{
setWinHelpKey(m_WinHelpID);
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
PropertyDescriptor items = new PropertyDescriptor("items",FileTableModelClass);
items.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.FILETABLEMODEL_ITEMS_HELP_ID));
PropertyDescriptor columnHeaders = new PropertyDescriptor("columnHeaders",FileTableModelClass);
columnHeaders.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.FILETABLEMODEL_COLUMN_HEADERS_HELP_ID));
PropertyDescriptor delimiterPD = new PropertyDescriptor("delimiter",FileTableModelClass);
delimiterPD.setPropertyEditorClass(FileTableModelDelimeterPropertyEditor.class);
delimiterPD.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.FILETABLEMODEL_DELIMITER_HELP_ID));
PropertyDescriptor[] rv = { items, columnHeaders, delimiterPD };
return rv;
}
catch(IntrospectionException e)
{
e.printStackTrace();
}
return null;
}
protected Class getBeanClass()
{
return FileTableModelClass;
}
protected final static Class FileTableModelClass = FileTableModel.class;
protected final static String m_WinHelpID = "0x6012D";
}