com.sas.beans
Class SwingCustomizerUtil

com.sas.beans.SwingCustomizerUtil

public class SwingCustomizerUtil

This is a helper class which provides a variety of methods dealing with JavaBeans Customizers.


Constructor Summary
SwingCustomizerUtil()
           
 
Method Summary
static SwingCustomizerDialog customize(java.lang.Object bean)
          Displays a Dialog containing an instance of the bean customizer.
static SwingCustomizerDialog customize(java.lang.Object bean, java.awt.Component customizer, java.awt.Frame frame, boolean modal)
          Displays a Dialog containing an instance of the bean customizer.
static SwingCustomizerDialog customize(java.lang.Object bean, java.awt.Frame frame, boolean modal)
          Displays a Dialog containing an instance of the bean customizer.
static SwingCustomizerDialog getCustomizerDialog(java.lang.Object bean, java.awt.Component customizer, java.awt.Frame frame)
          Returns a Dialog containing an instance of the bean customizer.
static SwingCustomizerDialog getCustomizerDialog(java.lang.Object bean, java.awt.Component customizer, java.awt.Frame frame, boolean useSuperclass)
          Returns a Dialog containing an instance of the bean customizer.
 
Methods inherited from class com.sas.beans.BaseCustomizerUtil
getCustomizer, getCustomizer, getCustomizerClass, getCustomizerClass, getCustomizerClass, getCustomizerClass
 

Constructor Detail

SwingCustomizerUtil

public SwingCustomizerUtil()
Method Detail

getCustomizerDialog

public static SwingCustomizerDialog getCustomizerDialog(java.lang.Object bean,
                                                        java.awt.Component customizer,
                                                        java.awt.Frame frame,
                                                        boolean useSuperclass)
Returns a Dialog containing an instance of the bean customizer.

Parameters:
bean - The bean to determine the customizer for. Should not be null.
customizer - The customizer to put in the Dialog.
frame - The frame to parent the Dialog to.
useSuperclass - Whether to look up the class hierarchy of the JavaBean for a Customizer if one is not available at the JavaBean's classs level.
Returns:
A Dialog containing the Customizer or null if no Customizer is found.

getCustomizerDialog

public static SwingCustomizerDialog getCustomizerDialog(java.lang.Object bean,
                                                        java.awt.Component customizer,
                                                        java.awt.Frame frame)
Returns a Dialog containing an instance of the bean customizer.

Parameters:
bean - The bean to determine the customizer for. Should not be null.
customizer - The customizer to put in the Dialog.
frame - The frame to parent the Dialog to.
Returns:
A Dialog containing the Customizer or null if no Customizer is found.

customize

public static SwingCustomizerDialog customize(java.lang.Object bean,
                                              java.awt.Component customizer,
                                              java.awt.Frame frame,
                                              boolean modal)
Displays a Dialog containing an instance of the bean customizer.

Parameters:
bean - The bean to determine the customizer for. Should not be null.
customizer - The customizer to put in the Dialog.
frame - The frame to parent the Dialog to.
modal - Whether the Dialog will be modal.
Returns:
A Dialog containing the Customizer or null if no Customizer is found.

customize

public static SwingCustomizerDialog customize(java.lang.Object bean,
                                              java.awt.Frame frame,
                                              boolean modal)
Displays a Dialog containing an instance of the bean customizer.

Parameters:
bean - The bean to determine the customizer for. Should not be null.
frame - The frame to parent the Dialog to.
modal - Whether the Dialog will be modal.
Returns:
A Dialog containing the Customizer or null if no Customizer is found.

customize

public static SwingCustomizerDialog customize(java.lang.Object bean)
Displays a Dialog containing an instance of the bean customizer.

Parameters:
bean - The bean to determine the customizer for. Should not be null.
Returns:
A Dialog containing the Customizer or null if no Customizer is found.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.