com.sas.beans
Class CustomizerUtil

com.sas.beans.CustomizerUtil

public class CustomizerUtil

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


Constructor Summary
CustomizerUtil()
           
 
Method Summary
static CustomizerDialog customize(java.lang.Object bean)
          Displays a Dialog containing an instance of the bean customizer.
static CustomizerDialog 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 CustomizerDialog customize(java.lang.Object bean, java.awt.Frame frame, boolean modal)
          Displays a Dialog containing an instance of the bean customizer.
static CloseCancelCustomizerDialog getCloseCancelCustomizerDialog(java.lang.Object bean, java.awt.Component customizer, java.awt.Frame frame, boolean useSuperclass)
          Returns a CloseCancelDialog containing an instance of the bean customizer.
static CustomizerDialog getCustomizerDialog(java.lang.Object bean, java.awt.Component customizer, java.awt.Frame frame)
          Returns a Dialog containing an instance of the bean customizer.
static CustomizerDialog 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

CustomizerUtil

public CustomizerUtil()
Method Detail

getCustomizerDialog

public static CustomizerDialog 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.

getCloseCancelCustomizerDialog

public static CloseCancelCustomizerDialog getCloseCancelCustomizerDialog(java.lang.Object bean,
                                                                         java.awt.Component customizer,
                                                                         java.awt.Frame frame,
                                                                         boolean useSuperclass)
Returns a CloseCancelDialog 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 CustomizerDialog 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 CustomizerDialog 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 CustomizerDialog 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 CustomizerDialog 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.