com.sas.visuals
Class CloseCancelCustomizerDialog
com.sas.visuals.CloseCancelCustomizerDialog
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
public class CloseCancelCustomizerDialog implements java.awt.event.ActionListener , java.awt.event.WindowListener
CloseCancelCustomizerDialog
is a ButtonDialog
subclass
which displays a Customizer
inside a ScrollPane
and has a Close button for closing the dialog.
See Also: Serialized Form
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.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
cancelButton
protected PushButton cancelButton
BUTTON_OK
public static final int BUTTON_OK
See Also: Constant Field Values
BUTTON_CANCEL
public static final int BUTTON_CANCEL
See Also: Constant Field Values
selectedButton
protected int selectedButton
CloseCancelCustomizerDialog
public CloseCancelCustomizerDialog (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 dialogobject
- the object (Java bean) to be customized by the
customizer .title
- the window titleframe
- the parent frame. If frame is null
, a new parent frame is created.
CloseCancelCustomizerDialog
public CloseCancelCustomizerDialog (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 dialogobject
- the object (Java bean) to be customized by the
customizer .title
- the window title
actionPerformed
public void actionPerformed (java.awt.event.ActionEvent e)
Handle a button press from the Close or Cancel button.
This closes the dialog.
Specified by: actionPerformed
in interface java.awt.event.ActionListener
Overrides: actionPerformed
in class CustomizerDialog
Parameters: e
- an event. If the event came from the close button,
close (Window.dispose()
)
the dialog.
getSelectedButton
public int getSelectedButton ()
getSelectedButton can be called to return the button selected.
If there has not been a button selected, zero will be returned. Otherwise, the
number indicating the button will be returned.
Copyright © 2009 SAS Institute Inc. All Rights Reserved.