com.sas.visuals
Class CustomizerDialog

com.sas.visuals.CustomizerDialog
All Implemented Interfaces:
ContainerInterface, VisualInterface, com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.ComponentInterface, com.sas.DesignTimeDropTargetInterface, com.sas.lang.StringDataInterface, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, ValidatorInterface, com.sas.ViewInterface, MultipleValueEventSourceInterface, java.awt.event.ActionListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible
Direct Known Subclasses:
CloseCancelCustomizerDialog

public class CustomizerDialog
implements java.awt.event.ActionListener, java.awt.event.WindowListener

CustomizerDialog is a ButtonDialog subclass which displays a Customizer inside a ScrollPane and has a Close button for closing the dialog.

See Also:
Serialized Form

Field Summary
protected  PushButton closeButton
           
protected  java.awt.Component customizer
           
 
Fields inherited from class com.sas.visuals.ButtonDialog
buttonPanel, buttons, panel
 
Fields inherited from class com.sas.awt.Dialog
_cantUseSASModal, _inApplet, _modal, autoDispose, RB_KEY, READY, setVisibleCalled, t
 
Constructor Summary
CustomizerDialog(java.awt.Component customizer, java.lang.Object object, java.lang.String title)
          Construct a CustomizerDialog for the customizer for the specified object
CustomizerDialog(java.awt.Component customizer, java.lang.Object object, java.lang.String title, java.awt.Frame frame)
          Construct a CustomizerDialog for the customizer for the specified object
CustomizerDialog(java.awt.Component customizer, java.lang.Object object, java.lang.String title, java.awt.Frame frame, java.lang.String[][] buttonLabels)
          Construct a CustomizerDialog for the customizer for the specified object
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handle a button press from the Close button.
protected  void callCustomizerClosing()
          Upon closing the window, if the customizer implements CustomizerClosingInterface, call its CustomizerClosingInterface.customizerClosing() method.
 java.awt.Component getCustomizer()
          Return the customizer used to construct this dialog.
 void windowClosing(java.awt.event.WindowEvent event)
          Handle a window close event.
 
Methods inherited from class com.sas.visuals.ButtonDialog
getButtonPanel, getMainPanel, windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class com.sas.awt.Dialog
center, centerOver, centerOverWindow, dispose, fireReadySignal, getAutoDispose, getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, getText, hide, isSASModalEnabled, newDispatchThread, processWindowEvent, setAutoDispose, setDefaultHeight, setDefaultWidth, setModal, setResizable, setSASModalEnabled, setText, setTitle, setVisible, setVisible, show, stopDispatchThread, waitForReadySignal, waitTilReady
 
Methods inherited from class com.sas.awt.DialogContainerComponent
addNotify, clone, dragEnter, dragLeave, dragOver, drop, getContainerInterfaceSupportInfo, getErrorHandler, getInsets, getValidator, isIDEDnDDropBarrier, isIDEDnDDropTarget, isValid, removeNotify, setContainerInterfaceSupportInfo, setDefaultValues, setErrorHandler, setIDEDnDDropBarrier, setIDEDnDDropTarget, setInsets, setInsets, setValidator, superAddNotify, superGetInsets, superRemoveNotify, superSetDefaultValues
 
Methods inherited from class com.sas.awt.DialogVisualComponent
addLink, addPropertyChangeListener, addVetoableChangeListener, anyPropertyChangeListeners, attachModel, attachView, computePreferredSize, detachModel, detachView, dumpComponent, firePropertyChange, firePropertyChange, fireVetoableChange, getBackgroundColor, getBorder, getComponentDescription, getComponentSupportInfo, getEventMethod, getEventValues, getFont, getForegroundColor, getHeight, getHorizontalPosition, getLinkInfo, getMinimumSize, getModelInterface, getPreferredSize, getPrePainter, getRequiredInterfaces, getVerticalPosition, getViewInterfaceSupportInfo, getVisualInterfaceSupportInfo, getWidth, initialize, initializeComponent, isDesignTime, isEnabled, isFocus, isLinked, isTransparent, isVisible, paint, propertyChange, queryLinks, queryLinks, refresh, removeAllLinks, removeInterfaceTraps, removeLink, removePropertyChangeListener, removeVetoableChangeListener, setBackgroundColor, setBorder, setBounds, setComponentDescription, setComponentSupportInfo, setEnabled, setFocus, setFont, setForegroundColor, setHeight, setHorizontalPosition, setLinkInfo, setModelInterface, setPreferredSize, setPrePainter, setRequiredInterfaces, setTransparent, setVerticalPosition, setViewInterfaceSupportInfo, setVisualInterfaceSupportInfo, setWidth, superGetFont, superGetMinimumSize, superGetPreferredSize, superIsEnabled, superIsVisible, superPaint, superSetBounds, superSetEnabled, superSetFont, superSetVisible, superUpdate, supportsListenerInterface, supportsRequiredInterfaces, trapInterfaceEvents, update, validateObject
 
Methods inherited from interface com.sas.awt.ContainerInterface
getComponents, getLayout, invalidate, setLayout, validate
 
Methods inherited from interface com.sas.awt.VisualInterface
computePreferredSize, getBackgroundColor, getBorder, getFont, getForegroundColor, getHeight, getHorizontalPosition, getMinimumSize, getPreferredSize, getPrePainter, getVerticalPosition, getVisualInterfaceSupportInfo, getWidth, isEnabled, isFocus, isTransparent, isVisible, setBackgroundColor, setBorder, setBounds, setEnabled, setFocus, setFont, setForegroundColor, setHeight, setHorizontalPosition, setPreferredSize, setPrePainter, setTransparent, setVerticalPosition, setVisualInterfaceSupportInfo, setWidth, superGetFont, superGetMinimumSize, superGetPreferredSize, superIsEnabled, superIsVisible, superPaint, superSetBounds, superSetEnabled, superSetFont, superSetVisible, superUpdate
 

Field Detail

closeButton

protected PushButton closeButton

customizer

protected java.awt.Component customizer
Constructor Detail

CustomizerDialog

public CustomizerDialog(java.awt.Component customizer,
                        java.lang.Object object,
                        java.lang.String title,
                        java.awt.Frame frame)
Construct a CustomizerDialog for the customizer for the specified object

Parameters:
customizer - the customizer to display within the dialog
object - the object (Java bean) to be customized by the customizer.
title - the window title
frame - the parent frame. If frame is null, a new parent frame is created.

CustomizerDialog

public CustomizerDialog(java.awt.Component customizer,
                        java.lang.Object object,
                        java.lang.String title,
                        java.awt.Frame frame,
                        java.lang.String[][] buttonLabels)
Construct a CustomizerDialog for the customizer for the specified object

Parameters:
customizer - the customizer to display within the dialog
object - the object (Java bean) to be customized by the customizer.
title - the window title
frame - the parent frame. If frame is null, a new parent frame is created.

CustomizerDialog

public CustomizerDialog(java.awt.Component customizer,
                        java.lang.Object object,
                        java.lang.String title)
Construct a CustomizerDialog for the customizer for the specified object

Parameters:
customizer - the customizer to display within the dialog
object - the object (Java bean) to be customized by the customizer.
title - the window title
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Handle a button press from the Close button. This closes the dialog.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - an event. If the event came from the close button, close (Window.dispose()) the dialog.

callCustomizerClosing

protected void callCustomizerClosing()
Upon closing the window, if the customizer implements CustomizerClosingInterface, call its CustomizerClosingInterface.customizerClosing() method.


getCustomizer

public java.awt.Component getCustomizer()
Return the customizer used to construct this dialog.

Returns:
the customizer used to construct this dialog.

windowClosing

public void windowClosing(java.awt.event.WindowEvent event)
Handle a window close event. Calls callCustomizerClosing(), then invokes the super method.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class ButtonDialog
Parameters:
event - the window closing event.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.