com.sas.awt
Class Applet

com.sas.awt.Applet
All Implemented Interfaces:
AppletStateChangedSource, VisualInterface, com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.ComponentInterface, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, com.sas.ViewInterface, MultipleValueEventSourceInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class Applet
implements AppletStateChangedSource

Applet is an extension of java.applet.Applet that includes ComponentInterface functionality and the ability to send events when the "state" of the applet changes.

The code generated by the webAF make calls to setState() so that components can listen to AppletStateChangedEvents and perform operations when the applet reaches certain points in it's creation/destruction.

See Also:
Serialized Form

Constructor Summary
Applet()
          Default constructor.
 
Method Summary
 void addAppletStateChangedListener(AppletStateChangedListener listener)
          Adds an AppletStateChangedListener for this component.
static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
           
protected  void notifyAppletStateChangedEvent(AppletStateChangedEvent event)
          Send a AppletStateChangedEvent event to all the AppletStateChangedListener objects in the listener list.
 void removeAppletStateChangedListener(AppletStateChangedListener listener)
          Removes an AppletStateChangedListener for this component.
 void setState(int state)
          Change the state of the applet.
 
Methods inherited from class com.sas.awt.AppletVisualComponent
addLink, addPropertyChangeListener, addVetoableChangeListener, anyPropertyChangeListeners, attachModel, attachView, clone, 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, setDefaultValues, 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
 

Constructor Detail

Applet

public Applet()
Default constructor.

Method Detail

getExtendedBeanInfo

public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()

addAppletStateChangedListener

public void addAppletStateChangedListener(AppletStateChangedListener listener)
Description copied from interface: AppletStateChangedSource
Adds an AppletStateChangedListener for this component.

Specified by:
addAppletStateChangedListener in interface AppletStateChangedSource
Parameters:
listener - The AppletStateChangedListener
See Also:
AppletStateChangedSource.removeAppletStateChangedListener(com.sas.awt.AppletStateChangedListener)

removeAppletStateChangedListener

public void removeAppletStateChangedListener(AppletStateChangedListener listener)
Description copied from interface: AppletStateChangedSource
Removes an AppletStateChangedListener for this component.

Specified by:
removeAppletStateChangedListener in interface AppletStateChangedSource
Parameters:
listener - The AppletStateChangedListener
See Also:
AppletStateChangedSource.addAppletStateChangedListener(com.sas.awt.AppletStateChangedListener)

setState

public void setState(int state)
Change the state of the applet. Possible values are APPLET_START, APPLET_STOP, APPLET_INIT, and APPLET_DESTROY.


notifyAppletStateChangedEvent

protected void notifyAppletStateChangedEvent(AppletStateChangedEvent event)
Send a AppletStateChangedEvent event to all the AppletStateChangedListener objects in the listener list. The listener list is copied first, so the event is sent only to each item which is in the list at the time of this copy, even if adds or removes are performed after the send has started.

Parameters:
event - the event to send



Copyright © 2009 SAS Institute Inc. All Rights Reserved.