Package org.tei.comparator.web.client.ui

Examples of org.tei.comparator.web.client.ui.NotesPanel


        //
        String id = contentSection.getSelectedItemsId();
        if(null == id)
          Window.alert("Please select item");
        else {
           new NotesPanel(id, TCNote.TYPE_PARAGRAPH, new NotePanelCallback<TCNote, Integer>(){
            public void callback(TCNote note, Integer type) {
              if(type == NotesPanel.NOTE_ADDED)
                contentSection.addNote(note);
            }
           });
View Full Code Here


        @Override
        public void componentSelected(MenuEvent ce) {
          //
          final NoteItem mItem = (NoteItem) tabPanel.getSelectedItem().getWidget(0);
          String id = mItem.getId();
           new NotesPanel(id, TCNote.TYPE_PARAGRAPH, new NotePanelCallback<TCNote, Integer>(){
            public void callback(TCNote note, Integer type) {
              if(type == NotesPanel.NOTE_ADDED)
                mItem.addNote(note);
            }
           });
        }
      });
      matchMenu.add(addNote);
     
      MenuItem addNoteMatch = new MenuItem("Add Note to Match");
      addNoteMatch.setIconStyle("icon-menu-addNote");
      addNoteMatch.addSelectionListener(new SelectionListener<MenuEvent>(){

        @Override
        public void componentSelected(MenuEvent ce) {
          //
          final NoteItem mItem = (NoteItem) tabPanel.getSelectedItem().getWidget(0);
          String id = mItem.getId();
           new NotesPanel(id, TCNote.TYPE_LINK, new NotePanelCallback<TCNote, Integer>(){
            public void callback(TCNote note, Integer type) {
              if(type == NotesPanel.NOTE_ADDED)
                mItem.addNote(note);
            }
           });
View Full Code Here

        MatchProposal selectedProposal = matchProp.getSelectedMatchProposal();
        if(null == selectedProposal)
          Window.alert("Please select proposal.");
        else {
          String id = selectedProposal.getId();
          new NotesPanel(id, TCNote.TYPE_PARAGRAPH, new NotePanelCallback<TCNote, Integer>(){
            public void callback(TCNote note, Integer type) {
              if(type == NotesPanel.NOTE_ADDED)
                matchProp.addNote(note);
            }
           });
View Full Code Here

TOP

Related Classes of org.tei.comparator.web.client.ui.NotesPanel

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.