View Javadoc

1   /**
2    * .
3    */
4   package org.sirius.client.web.classes;
5   
6   import java.rmi.RemoteException;
7   
8   import org.sirius.client.web.WebClient;
9   
10  /**
11   * @author Myk Kolisnyk
12   * .
13   */
14  public class Page extends Frame {
15  
16      /**
17       * .
18       * @param client .
19       */
20      public Page(final WebClient client) {
21          super(client, null);
22      }
23  
24      /**
25       * .
26       * @param client .
27       * @param locator .
28       */
29      public Page(final WebClient client, final String locator) {
30          super(client, locator);
31      }
32  
33      /**
34       * .
35       * @throws RemoteException .
36       */
37      public final void back() throws RemoteException {
38          getClient().core().back();
39      }
40  
41      /**
42       * .
43       * @throws RemoteException .
44       */
45      public final void forward() throws RemoteException {
46          getClient().core().forward();
47      }
48  
49      /**
50       * .
51       */
52      public void home() {
53      }
54  
55      /**
56       * .
57       * @param url .
58       * @throws RemoteException .
59       */
60      public final void open(final String url) throws RemoteException {
61          getClient().core().open(url);
62      }
63  
64      /**
65       * .
66       * @throws RemoteException .
67       */
68      public final void refresh() throws RemoteException {
69          getClient().core().refresh();
70      }
71  
72      /**
73       * .
74       * @param page .
75       * @throws RemoteException .
76       */
77      public final void switchTo(final Page page) throws RemoteException {
78          getClient().core().selectWindow(page.getLocator());
79      }
80  
81      /**
82       * .
83       * @return .
84       * @throws RemoteException .
85       */
86      public final String title() throws RemoteException {
87          return getClient().core().getTitle();
88      }
89  }