|
|
|||||
| Package com.dassault_systemes.catweb.base.catlet |
Class CATlet
|
| Class Hierarchy |
java.lang.Object
|
+-java.awt.Component
|
+-java.awt.Container
|
+-com.dassault_systemes.catweb.base.awt.AWTToolbarContainer
|
+-com.dassault_systemes.catweb.base.catlet.CATlet
| Class Location |
| Class Description |
public abstract class CATlet
AWT implementation of the ICATlet interface.
All Implemented Interfaces: ICATlet LogonListener CursorListener ServerConnectionListener
| Field Summary |
| protected boolean | firstActivation
|
| protected boolean | isActivated
for activation state |
| protected Model[] | models
The models of MVC |
| public static final Integer | VERSION_2
|
| protected ViewInterface[] | views
The views of MVC |
| Constructor Summary |
| CATlet()
Default constructor - The workarea has no scroll |
| CATlet(boolean workareaInScrollpane)
Constructor with flag for workarea scroll |
| Method Summary |
| protected abstract void | activate()
Called when the catlet is activated. |
| public void | addNotify()
If a CATlet is added inside a container and is not activated yet, do it This lets the CATlet autoactivate itself in a desktop-less environment |
| public synchronized void | addPropertyChangeListener(PropertyChangeListener listener)
Adds the specified listener to receive property change events from this model. |
| public synchronized void | addVetoableChangeListener(VetoableChangeListener listener)
|
| public boolean | askStop()
Returns true if the catlet allows the ApplicationController to stop/cleanup it. |
| protected abstract void | deactivate()
Called when the catlet is deactivated This method is not directly called by the Frame but by the doDeactivate() method |
| public void | displayStatusBarMessage(String label)
Not implemented |
| protected void | displayWorkshops()
Displays the workshops of the catlet and its viewers in the toolbars and menubar |
| public final void | doActivate()
method called by the Frame to activate the catlet. |
| public final void | doCleanup()
Called by the WebTop to clean the CATlet. |
| public final void | doDeactivate()
method called by the Frame to deactivate the catlet. |
| public void | finalize()
|
| protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue)
|
| protected void | fireVetoableChange(String propertyName, Object oldValue, Object newValue)
|
| public final String | getCATletName()
Returns the CATlet name. |
| public CSO | getCSO()
Returns the CSO that handle selection for this CATlet. |
| public String | getCurrentDocumentName()
Returns the display name of the current Document loaded by the CATlet |
| public Model | getModel()
Not implemented - Should return the main model of the MVC |
| public String | getName()
this method call getCATletName method. |
| public Dimension | getPreferredSize()
|
| public final Integer | getVersion()
|
| public ViewInterface | getView()
Not implemented - Should return the main view of the MVC |
| public String | getWorkshopFilename()
Returns the file name that will be used for the workshop description of this catlet |
| public void | hideStatusBarMessage(String label)
Not implemented |
| public boolean | isActivated()
returns the activation state of the CATlet |
| public boolean | isFocusTraversable()
|
| public synchronized void | removePropertyChangeListener(PropertyChangeListener listener)
Removes the specified listener so that it no longer receives property change events from this model. |
| public synchronized void | removeVetoableChangeListener(VetoableChangeListener listener)
|
| public final void | setCATletName(String name)
Sets the name of this catlet. |
| public void | setCurrentDocumentName(String name)
Sets the name of the current document of the CATlet. |
| public void | setName(String name)
this method calls setCATletName method and catches PropertyVetoException |
| public void | setVisible(boolean isVisible)
|
| public void | setWorkshopFilename(String name)
Sets the file name that will be used for the workshop description of this catlet |
| public void | update(Graphics g)
|
| Field Detail |
protected boolean firstActivation
protected boolean isActivated
for activation state
protected Model[] models
The models of MVC
public static final Integer VERSION_2
protected ViewInterface[] views
The views of MVC
| Constructor Detail |
CATlet()
Default constructor - The workarea has no scroll
CATlet(boolean workareaInScrollpane)
Constructor with flag for workarea scroll
workareaInScrollpane| Method Detail |
protected abstract void activate()
Called when the catlet is activated.
This method is not directly called by the Frame but by the doActivate() method
public void addNotify()
If a CATlet is added inside a container and is not activated yet, do it
This lets the CATlet autoactivate itself in a desktop-less environment
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
Adds the specified listener to receive property change events from this model.
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
public boolean askStop()
Returns true if the catlet allows the ApplicationController to
stop/cleanup it.
protected abstract void deactivate()
Called when the catlet is deactivated
This method is not directly called by the Frame but by the doDeactivate() method
public void displayStatusBarMessage(String label)
Not implemented
protected void displayWorkshops()
Displays the workshops of the catlet and its viewers in the toolbars and menubar
public final void doActivate()
method called by the Frame to activate the catlet. Implemented final.
If activation is needed, the method activate() is called
public final void doCleanup()
Called by the WebTop to clean the CATlet. Implemented final.
Application must overload the cleanup() method if they have objects to clean.
this method calls cleanup() method.
public final void doDeactivate()
method called by the Frame to deactivate the catlet. Implemented final.
If deactivation is needed, the method deactivate() is called
public void finalize()
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue)
public final String getCATletName()
Returns the CATlet name. If no name has been provided, then the display name of the
BeanDescriptor will be returned. If no BeanDescriptor is provided, the name "CATlet"
is returned instead
public CSO getCSO()
Returns the CSO that handle selection for this CATlet.
The CSO object is only instanciated on first demand
public String getCurrentDocumentName()
Returns the display name of the current Document loaded by the CATlet
public Model getModel()
Not implemented - Should return the main model of the MVC
public String getName()
this method call getCATletName method.
public Dimension getPreferredSize()
public final Integer getVersion()
public ViewInterface getView()
Not implemented - Should return the main view of the MVC
public String getWorkshopFilename()
Returns the file name that will be used for the workshop description of this catlet
public void hideStatusBarMessage(String label)
Not implemented
public boolean isActivated()
returns the activation state of the CATlet
public boolean isFocusTraversable()
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
Removes the specified listener
so that it no longer receives property change events from this model.
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
public final void setCATletName(String name)
Sets the name of this catlet.
The CATlet name is a vetoable property. Each time the catlet name is modified,
a propertyChangeEvent is fired. If you want to veto this property, you must
subscribe on addVetoableListener otherwise, if you just want to be warned,
subscribe on addPropertyChangeListener
name
public void setCurrentDocumentName(String name)
Sets the name of the current document of the CATlet.
this name is displayed by the webtop in the taskbar
display
public void setName(String name)
this method calls setCATletName method and catches PropertyVetoException
new
public void setVisible(boolean isVisible)
public void setWorkshopFilename(String name)
Sets the file name that will be used for the workshop description of this catlet
the
public void update(Graphics g)