eu.livotov.tpt.gui.widgets
Interface TPTMultiView.TPTView

All Known Implementing Classes:
PageRenderer, SinglePageDocumentRenderer
Enclosing class:
TPTMultiView

public static interface TPTMultiView.TPTView

An optional interface, your component representing a single view may implement. If interface is implemented, your view will receive its lifecycle events, see interface methods below. You do not need to register your view as a listener, just implement the interface and this is enough.


Method Summary
 void viewActivated(java.lang.String previousViewId, java.lang.String parameters)
          Called when view is activated, e.g.
 void viewAttached()
          Called when a view is attached to a multiview component, e.g.
 void viewDeactivated(java.lang.String newViewId)
          Called when view is deactivated, e.g.
 void viewRemoved()
          Called when a view is removed from a multiview component, e.g.
 

Method Detail

viewActivated

void viewActivated(java.lang.String previousViewId,
                   java.lang.String parameters)
Called when view is activated, e.g. becomes visible to the user.

Parameters:
parameters - optional view parameters, that may come from who called the method switchView
previousViewId - ID of the previous view. Useful for building navigation or historical browsing

viewDeactivated

void viewDeactivated(java.lang.String newViewId)
Called when view is deactivated, e.g. becomes hidden from a user. This usually happens if another view was swithced on.

Parameters:
newViewId - ID of the view that came at top

viewAttached

void viewAttached()
Called when a view is attached to a multiview component, e.g. when new view was added by invoking addView method.


viewRemoved

void viewRemoved()
Called when a view is removed from a multiview component, e.g. when view is removed by invoking a removeView method