com.sas.visuals
Class IndexedPropertyEditorHost

com.sas.visuals.IndexedPropertyEditorHost
All Implemented Interfaces:
ContainerInterface, com.sas.awt.print.PrintableInterface, VisualInterface, com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.ComponentInterface, com.sas.DesignTimeDropTargetInterface, 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

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

See Also:
Serialized Form

Field Summary
protected  java.lang.Object bean
           
protected  Button customButton
          The Button to allow access to the custom editor if supportsCustomEditor returns true.
protected  int index
           
protected  java.lang.String property
           
 
Constructor Summary
IndexedPropertyEditorHost()
          The constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          actionPerformed is an event handler for the TextField used to enter the property value and the Button which is used to bring up the custom editor.
protected  void createControls()
          Create the controls for the UI.
 void initialize()
          Do common setup.
 void setProperty(java.lang.Object bean, java.lang.String property)
           
 void showCustomEditor()
          showCustomEditor creates a dialog to display the custom editor if the custom editor is not a subclass of Dialog or Frame.
 void windowActivated(java.awt.event.WindowEvent evt)
           
 void windowClosed(java.awt.event.WindowEvent evt)
           
 void windowClosing(java.awt.event.WindowEvent evt)
           
 void windowDeactivated(java.awt.event.WindowEvent evt)
           
 void windowDeiconified(java.awt.event.WindowEvent evt)
           
 void windowIconified(java.awt.event.WindowEvent evt)
           
 void windowOpened(java.awt.event.WindowEvent evt)
           
 
Methods inherited from class com.sas.awt.Container
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, setDefaultHeight, setDefaultValues, setDefaultWidth
 
Methods inherited from class com.sas.awt.ContainerContainerComponent
addNotify, clone, dragEnter, dragLeave, dragOver, drop, getContainerInterfaceSupportInfo, getErrorHandler, getInsets, getValidator, isIDEDnDDropBarrier, isIDEDnDDropTarget, isValid, removeNotify, setContainerInterfaceSupportInfo, setErrorHandler, setIDEDnDDropBarrier, setIDEDnDDropTarget, setInsets, setInsets, setValidator, superAddNotify, superGetInsets, superRemoveNotify, superSetDefaultValues
 
Methods inherited from class com.sas.awt.ContainerVisualComponent
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, getPageBounds, getPreferredSize, getPrePainter, getPrintOptionsPanel, getRequiredInterfaces, getVerticalPosition, getViewInterfaceSupportInfo, getVisualInterfaceSupportInfo, getWidth, initializeComponent, isDesignTime, isEnabled, isFocus, isLinked, isTransparent, isVisible, pageExists, paint, print, printFinalize, printInitialize, 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, setVisible, 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, setVisible, setVisualInterfaceSupportInfo, setWidth, superGetFont, superGetMinimumSize, superGetPreferredSize, superIsEnabled, superIsVisible, superPaint, superSetBounds, superSetEnabled, superSetFont, superSetVisible, superUpdate
 

Field Detail

bean

protected java.lang.Object bean

property

protected java.lang.String property

index

protected int index

customButton

protected Button customButton
The Button to allow access to the custom editor if supportsCustomEditor returns true.

Constructor Detail

IndexedPropertyEditorHost

public IndexedPropertyEditorHost()
The constructor.

Method Detail

initialize

public void initialize()
Do common setup.

Specified by:
initialize in interface com.sas.ComponentInterface
Overrides:
initialize in class ContainerVisualComponent
See Also:
ComponentInterface.initialize()

setProperty

public void setProperty(java.lang.Object bean,
                        java.lang.String property)

createControls

protected void createControls()
Create the controls for the UI.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed is an event handler for the TextField used to enter the property value and the Button which is used to bring up the custom editor.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

showCustomEditor

public void showCustomEditor()
showCustomEditor creates a dialog to display the custom editor if the custom editor is not a subclass of Dialog or Frame. If it is a subclass of Dialog or Frame, is just displays it.

Subclasses may want to override this method and bring up the custom editor some other way.


windowOpened

public void windowOpened(java.awt.event.WindowEvent evt)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent evt)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent evt)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent evt)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent evt)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent evt)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent evt)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener



Copyright © 2009 SAS Institute Inc. All Rights Reserved.