|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.core.LpexViewAdapter
Abstract adapter class for receiving document view event notifications. The methods in this class are empty, and do not stop any of the editor actions for which the events are issued.
This is a convenience class for creating view listener objects. Extend this class to create a document view listener, and override only the methods for the events of interest. If you implement the LpexViewListener interface, you have to define all its methods; this abstract class defines null methods for all of them, so define methods only for those events you care about. This also eliminates the need for coding updates if new event notifications are defined in LpexViewListener.
Create a listener object using your class, and then register it with a document view using the view's addLpexViewListener() method. When an event occurs, the relevant method in the listener object is invoked. Example:
lpexView.addLpexViewListener(new LpexViewAdapter() { // called after the updateProfile command has completed public void updateProfile(LpexView view) { handleUpdateProfile(view); } }); |
Constructor Summary | |
---|---|
LpexViewAdapter()
|
Method Summary | |
---|---|
void | disposed(LpexView lpexView)
This method is invoked when the document view is disposed. |
void | readonly(LpexView lpexView)
This method is invoked after an attempt has been made to edit a readonly document. |
void | renamed(LpexView lpexView)
This method is invoked after the document name, source name, or view id has changed. |
boolean | renaming(LpexView lpexView)
This method is invoked just before the document or source name is changed. |
void | saved(LpexView lpexView)
This method is invoked after the document has been saved by the LPEX widget. |
boolean | saving(LpexView lpexView)
This method is invoked just before the document is saved by the LPEX widget. |
void | showing(LpexView lpexView)
This method is invoked just before the screen is displayed. |
void | shown(LpexView lpexView)
This method is invoked after the screen display is complete. |
void | updateProfile(LpexView lpexView)
This method is invoked after the updateProfile editor command has completed processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LpexViewAdapter()
Method Detail |
public void showing(LpexView lpexView)
public void shown(LpexView lpexView)
public boolean saving(LpexView lpexView)
This notification is not issued for "save as" operations. Also, an LPEX-based application may do its own save, bypassing the widget's save to the local file system.
public void saved(LpexView lpexView)
This notification is not issued for "save as" operations. Also, an LPEX-based application may do its own save, bypassing the widget's save to the local file system.
public boolean renaming(LpexView lpexView)
public void renamed(LpexView lpexView)
public void readonly(LpexView lpexView)
public void updateProfile(LpexView lpexView)
public void disposed(LpexView lpexView)
|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |