org.jdesktop.swingx.JXTitledPanelBeanInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swingx Show documentation
Show all versions of swingx Show documentation
Contains extensions to the Swing GUI toolkit, including new and enhanced components that provide functionality commonly required by rich client applications.
The newest version!
package org.jdesktop.swingx;
import java.beans.BeanDescriptor;
/**
* BeanInfo class for JXTitledPanel.
*
* @author Richard, Jan Stola
*/
public class JXTitledPanelBeanInfo extends BeanInfoSupport {
public JXTitledPanelBeanInfo() {
super(JXTitledPanel.class);
}
@Override
protected void initialize() {
BeanDescriptor bd = getBeanDescriptor();
bd.setName("JXTitledPanel");
bd.setShortDescription("A special type of Panel that has a Title section and a Content section.");
bd.setValue("isContainer", Boolean.TRUE);
bd.setValue("containerDelegate", "getContentContainer");
setPreferred(true, "title", "titleFont", "titleForeground", "titlePainter");
setPreferred(true, "leftDecoration", "rightDecoration");
setPreferred(false, "alpha", "border", "inheritAlpha");
}
}