diff options
author | Jouni Koivuviita <jouni@vaadin.com> | 2012-08-07 15:35:55 +0300 |
---|---|---|
committer | Jouni Koivuviita <jouni@vaadin.com> | 2012-08-07 15:35:55 +0300 |
commit | d422eba61ba6e8ef82c72fa661ff4991f8918ec0 (patch) | |
tree | 1e4f1c8f7f2d8b3543eed1991709a43889466446 /src/com/vaadin/navigator/View.java | |
parent | ef744edf4a0e849932d30bd9d6870ec15f391225 (diff) | |
parent | 23fcb95f1a8b2fda7f6b7d648634ec21463da875 (diff) | |
download | vaadin-framework-d422eba61ba6e8ef82c72fa661ff4991f8918ec0.tar.gz vaadin-framework-d422eba61ba6e8ef82c72fa661ff4991f8918ec0.zip |
Boxlayout
Diffstat (limited to 'src/com/vaadin/navigator/View.java')
-rw-r--r-- | src/com/vaadin/navigator/View.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/com/vaadin/navigator/View.java b/src/com/vaadin/navigator/View.java new file mode 100644 index 0000000000..4d135b4c0b --- /dev/null +++ b/src/com/vaadin/navigator/View.java @@ -0,0 +1,36 @@ +/* +@VaadinApache2LicenseForJavaFiles@ + */ + +package com.vaadin.navigator; + +import java.io.Serializable; + +import com.vaadin.ui.Component; + +/** + * Interface for all views controlled by the navigator. + * + * Each view added to the navigator must implement this interface. Typically, a + * view is a {@link Component}. + * + * @author Vaadin Ltd + * @since 7.0 + */ +public interface View extends Serializable { + + /** + * This view is navigated to. + * + * This method is always called before the view is shown on screen. If there + * is any additional id to data what should be shown in the view, it is also + * optionally passed as parameter. + * + * TODO fragmentParameters null if no parameters or empty string? + * + * @param fragmentParameters + * parameters to the view or null if none given. This is the + * string that appears e.g. in URI after "viewname/" + */ + public void navigateTo(String fragmentParameters); +}
\ No newline at end of file |