Package com.gadglet.client.gwt.ui

Examples of com.gadglet.client.gwt.ui.HomeViewMainPanel


    debug = DebugDialogBox.getErrorNotifier();

    prevButton.setText(prefsUtils.getMsg("gadgetLabelPrevious"));
    nextButton.setText(prefsUtils.getMsg("gadgetLabelNext"));

    final HomeViewMainPanel mainPanel = new HomeViewMainPanel();

    final HorizontalPanel addItemPanel = new HorizontalPanel();
    final DisclosurePanel addDisclosurePanel = new DisclosurePanel();
   
   
    final VerticalPanel bookMark = new VerticalPanel();
   
    final TextBox bookMarkUrl = new TextBox();
    bookMarkUrl.setValue("http://");
    bookMarkUrl.setWidth("200px");
    final TextBox bookMarkTitle = new TextBox();
    bookMarkTitle.setWidth("200px");
   
    bookMark.add(bookMarkUrl);
   
    bookMark.add(bookMarkTitle);
   

    final VerticalPanel bookMarkType = new VerticalPanel();
    final RadioButton typePrivate = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelHigh"));
    final RadioButton typePublic = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelMedium"));
   
    typePrivate.setValue(true);
   
    bookMarkType.add(typePrivate);
    bookMarkType.add(typePublic);
   

    final Button saveButton = new Button(
        prefsUtils.getMsg("gadgetLabelSave"));


    addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    addItemPanel.add(bookMark);
   
    //addItemPanel.add(new HTML(" "));
    //addItemPanel.add(bookMarkType);
 
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(saveButton);

    addDisclosurePanel.add(addItemPanel);
   
    ActionLabel add = new ActionLabel(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setTitle(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setStyleName("gadglet-ActionLabel");
   
    addDisclosurePanel.setHeader(add);

    mainPanel.add(addDisclosurePanel);

    mainPanel.add(results);

    RootPanel.get().add(mainPanel.getGadgetPanel());

    saveButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        changeBookMarkQry.setRequestAction(ReqActionTypes.ADD);
View Full Code Here


    debug = DebugDialogBox.getErrorNotifier();

    prevButton.setText(prefsUtils.getMsg("gadgetLabelPrevious"));
    nextButton.setText(prefsUtils.getMsg("gadgetLabelNext"));

    final HomeViewMainPanel mainPanel = new HomeViewMainPanel();

    final HorizontalPanel addItemPanel = new HorizontalPanel();
    final DisclosurePanel addDisclosurePanel = new DisclosurePanel(
        prefsUtils.getMsg("gadgetLabelAdd"));
    final TextArea message = new TextArea();

    final VerticalPanel priority = new VerticalPanel();
    final RadioButton highPriority = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelHigh"));
    final RadioButton medPriority = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelMedium"));
    final RadioButton lowPriority = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelLow"));
    lowPriority.setValue(true);
    priority.add(highPriority);
    priority.add(medPriority);
    priority.add(lowPriority);

    final Button saveButton = new Button(
        prefsUtils.getMsg("gadgetLabelSave"));

    final PrioritySelection selection = new PrioritySelection(
        viewPersonalNotesQry, viewPersonalNotesRequest);
    addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    addItemPanel.add(message);
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(priority);
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(saveButton);

    addDisclosurePanel.add(addItemPanel);
    addDisclosurePanel.setHeader(new HTML(prefsUtils
        .getMsg("gadgetLabelAdd")));

    mainPanel.add(addDisclosurePanel);

    mainPanel.add(selection.getPanel());

    mainPanel.add(results);

    RootPanel.get().add(mainPanel.getGadgetPanel());

    saveButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        changePersonalNoteQry.setRequestAction(ReqActionTypes.ADD);
View Full Code Here

    } catch (Exception e) {

    }
   

    final HomeViewMainPanel mainPanel = new HomeViewMainPanel();

    final HorizontalPanel addItemPanel = new HorizontalPanel();
    final DisclosurePanel addDisclosurePanel = new DisclosurePanel();
   
   
    final VerticalPanel bookMark = new VerticalPanel();
   
    final TextArea DiscussionText = new TextArea();
    DiscussionText.setWidth("200px");
 
   
    bookMark.add(DiscussionText);
 

    final Button saveButton = new Button(
        prefsUtils.getMsg("gadgetLabelSave"));


    addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    addItemPanel.add(bookMark);
   
    //addItemPanel.add(new HTML(" "));
    //addItemPanel.add(bookMarkType);
 
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(saveButton);

    addDisclosurePanel.add(addItemPanel);
   
    ActionLabel add = new ActionLabel(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setTitle(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setStyleName("gadglet-ActionLabel");
   
    addDisclosurePanel.setHeader(add);

    mainPanel.add(addDisclosurePanel);

    mainPanel.add(results);

    RootPanel.get().add(mainPanel.getGadgetPanel());

    saveButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        changeDiscussionQry.setRequestAction(ReqActionTypes.ADD);
View Full Code Here

    debug = DebugDialogBox.getErrorNotifier();

    prevButton.setText(prefsUtils.getMsg("gadgetLabelPrevious"));
    nextButton.setText(prefsUtils.getMsg("gadgetLabelNext"));

    final HomeViewMainPanel mainPanel = new HomeViewMainPanel();

    ActionLabel add = new ActionLabel(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setTitle(prefsUtils.getMsg("gadgetLabelAdd"));
   
    final HorizontalPanel addItemPanel = new HorizontalPanel();
    final DisclosurePanel addDisclosurePanel = new DisclosurePanel();
    addDisclosurePanel.setHeader(add);
   
    final TextArea message = new TextArea();

    final VerticalPanel priority = new VerticalPanel();
    final RadioButton highPriority = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelHigh"));
    final RadioButton medPriority = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelMedium"));
    final RadioButton lowPriority = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelLow"));
    lowPriority.setValue(true);
    priority.add(highPriority);
    priority.add(medPriority);
    priority.add(lowPriority);

    final Button saveButton = new Button(
        prefsUtils.getMsg("gadgetLabelSave"));

    final PrioritySelection selection = new PrioritySelection(
        viewPersonalNotesQry, viewPersonalNotesRequest);
    addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    addItemPanel.add(message);
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(priority);
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(saveButton);

    addDisclosurePanel.add(addItemPanel);


    mainPanel.add(addDisclosurePanel);

    mainPanel.add(selection.getPanel());

    mainPanel.add(results);

    RootPanel.get().add(mainPanel.getGadgetPanel());

    saveButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        changePersonalNoteQry.setRequestAction(ReqActionTypes.ADD);
View Full Code Here

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());
 
   
   }
View Full Code Here

TOP

Related Classes of com.gadglet.client.gwt.ui.HomeViewMainPanel

Copyright © 2018 www.massapicom. 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.