gate.cow.gwt.client
Class NewPage

java.lang.Object
  extended by gate.cow.gwt.client.NewPage
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint, com.google.gwt.user.client.HistoryListener, EventListener

public class NewPage
extends Object
implements com.google.gwt.core.client.EntryPoint, com.google.gwt.user.client.HistoryListener

GUI for creating a new page or directory. Get information from the server with javascript variables in the show view and use PageService methods to check the name and create the page or directory.


Constructor Summary
NewPage()
           
 
Method Summary
static void clear(com.google.gwt.user.client.Element parent)
          Removes all of the element's children.
 void onHistoryChanged(String s)
          Called when a GWT link is clicked.
 void onModuleLoad()
          Called when the javascript file is loaded in a web page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewPage

public NewPage()
Method Detail

onModuleLoad

public void onModuleLoad()
Called when the javascript file is loaded in a web page.

Specified by:
onModuleLoad in interface com.google.gwt.core.client.EntryPoint

onHistoryChanged

public void onHistoryChanged(String s)
Called when a GWT link is clicked.

Specified by:
onHistoryChanged in interface com.google.gwt.user.client.HistoryListener
Parameters:
s - anchor value of the link

clear

public static void clear(com.google.gwt.user.client.Element parent)
Removes all of the element's children.

Parameters:
parent - a DOM element
Throws:
IllegalArgumentException - if parent is null