home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
JActionMenuItemBeanInfo.java
< prev
next >
Wrap
Text File
|
1998-09-24
|
2KB
|
74 lines
package com.symantec.itools.swing.actions;
import java.beans.*;
import java.util.ResourceBundle;
import com.symantec.itools.swing.DesignTimeResourceBundle;
import com.symantec.itools.vcafe.beans.ObjectReferenceAttributes;
public final class JActionMenuItemBeanInfo
extends com.symantec.itools.beans.HelperBeanInfo
{
public JActionMenuItemBeanInfo()
{
ResourceBundle resources = ResourceBundle.getBundle("com.symantec.itools.swing.DesignTimeResourceBundle");
String folderName = resources.getString(DesignTimeResourceBundle.MENU_AND_MENU_ITEMS_FOLDER_KEY);
setComponentLibraryFolder(folderName);
setInheritSuperBeanInfo(true);
setWinHelpKey(m_WinHelpID);
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
//
// Added properties
//
PropertyDescriptor actionPD = new PropertyDescriptor("action",m_JActionMenuItemClass);
actionPD.setValue(ObjectReferenceAttributes.OBJECTREFERENCE_DEFAULT_IS_NONE_ATTRIBUTE, Boolean.TRUE);
//
// Hidden properties
//
PropertyDescriptor textPD = new PropertyDescriptor("text",m_JActionMenuItemClass);
textPD.setHidden(true);
PropertyDescriptor enabledPD = new PropertyDescriptor("enabled",m_JActionMenuItemClass);
enabledPD.setHidden(true);
PropertyDescriptor iconPD = new PropertyDescriptor("icon",m_JActionMenuItemClass);
iconPD.setHidden(true);
PropertyDescriptor disabledIconPD = new PropertyDescriptor("disabledIcon",m_JActionMenuItemClass);
disabledIconPD.setHidden(true);
return new PropertyDescriptor[]
{
actionPD,
textPD,
enabledPD,
iconPD,
disabledIconPD,
};
}
catch(IntrospectionException e)
{
e.printStackTrace();
}
return null;
}
protected Class getBeanClass()
{
return m_JActionMenuItemClass;
}
protected final static String m_WinHelpID = "0x600FA";
protected final static Class m_JActionMenuItemClass = JActionMenuItem.class;
}