Betty v1.1.0

christophedelory.betty.admin.gwt
Class Betty

java.lang.Object
  extended by christophedelory.betty.admin.gwt.Betty
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint, com.google.gwt.user.client.ui.TreeListener, EventListener

public class Betty
extends Object
implements com.google.gwt.core.client.EntryPoint, com.google.gwt.user.client.ui.TreeListener

Entry point classes define onModuleLoad().

Since:
1.0.0
Version:
$Revision: 76 $
Author:
Christophe Delory

Constructor Summary
Betty()
           
 
Method Summary
 void addChampionship(ChampionshipDetails championship)
           
 void addLocation(LocationDetails location, com.google.gwt.user.client.ui.TreeItem parentTreeItem)
           
 void addPlayer(PlayerDetails details)
           
 void addResource(ResourceDetails details, com.google.gwt.user.client.ui.TreeItem parentTreeItem)
           
 void addUser(UserDetails details)
           
 void createRankModel(com.google.gwt.user.client.ui.TreeItem parentTreeItem, boolean isDefault)
           
 void createScoreModel(com.google.gwt.user.client.ui.TreeItem parentTreeItem, boolean isDefault)
           
 BettyAdminRemoteServiceAsync getBettyAdminRemoteServiceAsync()
          Returns the client proxy to the administration service interface.
 BettyRemoteServiceAsync getBettyRemoteServiceAsync()
          Returns the client proxy to the public service interface.
 LocationsDetails getLocations()
          Returns the top-level list of locations.
 com.google.gwt.user.client.ui.SuggestOracle getLocationSuggestOracle()
           
 com.google.gwt.user.client.ui.SuggestOracle getPlayerSuggestOracle()
           
 void onModuleLoad()
           
 void onTreeItemSelected(com.google.gwt.user.client.ui.TreeItem item)
           
 void onTreeItemStateChanged(com.google.gwt.user.client.ui.TreeItem item)
           
 void remove(com.google.gwt.user.client.ui.TreeItem treeItem)
          Removes the specified tree item from the application's tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Betty

public Betty()
Method Detail

onModuleLoad

public void onModuleLoad()
Specified by:
onModuleLoad in interface com.google.gwt.core.client.EntryPoint

remove

public void remove(com.google.gwt.user.client.ui.TreeItem treeItem)
Removes the specified tree item from the application's tree.

Parameters:
treeItem - a tree item. Shall not be null.
Throws:
NullPointerException - if treeItem is null.

onTreeItemSelected

public void onTreeItemSelected(com.google.gwt.user.client.ui.TreeItem item)
Specified by:
onTreeItemSelected in interface com.google.gwt.user.client.ui.TreeListener

onTreeItemStateChanged

public void onTreeItemStateChanged(com.google.gwt.user.client.ui.TreeItem item)
Specified by:
onTreeItemStateChanged in interface com.google.gwt.user.client.ui.TreeListener

getBettyAdminRemoteServiceAsync

public BettyAdminRemoteServiceAsync getBettyAdminRemoteServiceAsync()
Returns the client proxy to the administration service interface.

Returns:
an asynchronous service interface. Shall not be null.
See Also:
getBettyRemoteServiceAsync()

getBettyRemoteServiceAsync

public BettyRemoteServiceAsync getBettyRemoteServiceAsync()
Returns the client proxy to the public service interface.

Returns:
an asynchronous service interface. Shall not be null.
See Also:
getBettyAdminRemoteServiceAsync()

getLocationSuggestOracle

public com.google.gwt.user.client.ui.SuggestOracle getLocationSuggestOracle()

getPlayerSuggestOracle

public com.google.gwt.user.client.ui.SuggestOracle getPlayerSuggestOracle()

getLocations

public LocationsDetails getLocations()
Returns the top-level list of locations.

Returns:
a locations list. May be null until properly fetched.

addChampionship

public void addChampionship(ChampionshipDetails championship)

addLocation

public void addLocation(LocationDetails location,
                        com.google.gwt.user.client.ui.TreeItem parentTreeItem)

addResource

public void addResource(ResourceDetails details,
                        com.google.gwt.user.client.ui.TreeItem parentTreeItem)

addPlayer

public void addPlayer(PlayerDetails details)

addUser

public void addUser(UserDetails details)

createRankModel

public void createRankModel(com.google.gwt.user.client.ui.TreeItem parentTreeItem,
                            boolean isDefault)

createScoreModel

public void createScoreModel(com.google.gwt.user.client.ui.TreeItem parentTreeItem,
                             boolean isDefault)

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.