Package com.gadglet.gadgets.phoneBook.client

Source Code of com.gadglet.gadgets.phoneBook.client.PhoneBook

/**
* Copyright (C)  Gadglet .
*
* This file is part of Gadglet
*
* Gadglet is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gadglet is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Gadglet. If not, see <http://www.gnu.org/licenses/>.
*/

package com.gadglet.gadgets.phoneBook.client;



import com.gadglet.client.gwt.ui.HomeViewMainPanel;
import com.google.gwt.gadgets.client.Gadget;
import com.google.gwt.gadgets.client.Gadget.AllowHtmlQuirksMode;
import com.google.gwt.gadgets.client.Gadget.InjectContent;
import com.google.gwt.gadgets.client.Gadget.InjectModulePrefs;
import com.google.gwt.gadgets.client.Gadget.UseLongManifestName;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
* Anan Gadget Contacts.
*/

@InjectModulePrefs(files = {"prefInject.txt"})
@InjectContent(files={"divs.html"})

// Create a short manifest name (instead of prepending the package prefix)
@UseLongManifestName(false)
@AllowHtmlQuirksMode(false)

public class PhoneBook extends Gadget<phoneBookPreferences>{
 
public static boolean debug = false;
public static String  gadgetName = "PhoneBook";

  @Override
protected void init(final phoneBookPreferences prefs) {
HomeViewMainPanel mainPanel = new HomeViewMainPanel();
   
   final VerticalPanel pbPanel =  new PhoneBookPanel().buildUI();
   
   mainPanel.add(pbPanel);
  
    RootPanel.get().add(mainPanel.getGadgetPanel());
 
   
   }
 
}




TOP

Related Classes of com.gadglet.gadgets.phoneBook.client.PhoneBook

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.