Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    A desktop for smartgwt

    I write a desktop module just like the one in gxt,
    include class like Desktop, Shortcut, Taskbar, etc.
    the app looks like the picture:

    http://dl.javaeye.com/upload/attachm...617142d9fc.jpg

    Call the module like this:

    Code:
        public void onModuleLoad() {
            initDebugConsole();
            initErrorHandler();
            desktop = new Desktop();
            createMenuAndShortcut(desktop.getTaskBar());
        }
    
        private void createMenuAndShortcut(TaskBar taskBar) {
            DesktopWindow contactWindow = new ContactPersonSubPanel();
            DesktopWindow documentWindow = new DocumentManagePanel();
            DesktopWindow notesWindow = new NotesSubPanel();
            DesktopWindow calendarWindow = new CalendarManagePanel();
    
            ToolStrip quickBar = taskBar.getQuickStartBar();
    
            createMenuAndShortcut(contactWindow, quickBar);
            createMenuAndShortcut(documentWindow, quickBar);
            createMenuAndShortcut(notesWindow, quickBar);
            createMenuAndShortcut(calendarWindow, quickBar);
            quickBar.addSeparator();
    
            DynamicForm form = createSimpleForm();
            form.setAlign( Alignment.CENTER);
            form.setLayoutAlign( VerticalAlignment.CENTER);
            form.setFields(createSearchItem(), createStyleSelectItem());
            quickBar.addMember( form);
            
            quickBar.addSeparator();
            createSystemButtons(quickBar);
            quickBar.addSeparator();
        }
    It works fine with smartgwt-2.4, from the night builds.
    The forum doesn't allow zip file as attachment, download it from : http://dl.javaeye.com/topics/downloa...2-1c3feac07948
    Last edited by SimonLei; 28 Dec 2010, 21:21.

    #2
    Looks great! Would be nice if you can host a live demo.

    I was unable to access the attached link for the download but it you would like to contribute your work then it would be a great addition to the smartgwt-extensions project. Let me know and I can add you as a commiter.

    Thanks,
    Sanjiv

    Comment


      #3
      Sorry I don't have a place to host the demo app.
      It's my pleasure to be a commiter to the smartgwt-extensions project.
      My google account is simonlei AT gmail.com.

      Comment


        #4
        The image is not available, can you upload again the image ?

        Comment


          #5
          The image is too large to upload as an attachment in the forum.
          I re-capture the image in a 800x600 browser.
          Attached Files

          Comment


            #6
            Hello, i don't find the source code of " desktop smart Gwt" ! can you send me the source code please ? i used in the past the "desktop Gxt", but the problem it is not free now !

            Comment


              #7
              The new address of the source code is : http://dl.iteye.com/topics/download/...2-1c3feac07948
              and the picture address is : http://dl.iteye.com/upload/attachmen...617142d9fc.jpg

              Attention: The code was only tested with smartgwt-2.4, from the night builds.

              Comment


                #8
                Thank you,
                the problem there are errors (the retrun type is incompatible with window.getheadericon) in this function :
                public String getHeaderIcon() {
                return (String) getAttributeAsMap( "headerIconProperties").get( "src");
                }

                public String getShortcutIcon() {
                return getHeaderIcon().replace( "16", "48");
                }

                also, I do not find the EntryPoint class of the project !

                you have not an import project GWT for "desktop" ?? i want import the project directly in Eclipse. Because eclipse do not consider your zip file (.rar) as a valid GWT project
                Last edited by delpiero345; 2 Nov 2016, 13:54.

                Comment


                  #9
                  There is not a solution for this error ??

                  Comment

                  Working...
                  X