Package edu.stanford.bmir.protege.web.client.ui.library.itemarea

Examples of edu.stanford.bmir.protege.web.client.ui.library.itemarea.UserIdSuggestOracle


    protected TextBox endEditor;

    private boolean dirty;

    public UserIdRangeEditorImpl() {
        userIdEditor = new ItemListSuggestBox<UserId>(new UserIdSuggestOracle(), new TextBox());
        userIdEditor.getElement().setAttribute("placeholder", "Type user name");
        HTMLPanel rootElement = ourUiBinder.createAndBindUi(this);
        initWidget(rootElement);
    }
View Full Code Here


        final TextArea addPeopleTextArea = new TextArea();
        addPeopleTextArea.setVisibleLines(5);
        addPeopleTextArea.setCharacterWidth(50);
        addPeopleTextArea.getElement().setAttribute("placeholder", PLACE_HOLDER_TEXT);

        final UserIdSuggestOracle userIdSuggestOracle = new UserIdSuggestOracle(getUsersInSharingSettingsList()) {
            @Override
            public List<UserId> getItemsMatchingExactly(String itemString) {
                List<UserId> userIds = super.getItemsMatchingExactly(itemString);
                if(userIds.isEmpty() && itemString.contains("@")) {
                    userIds.add(UserId.getUserId(itemString.trim()));
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.library.itemarea.UserIdSuggestOracle

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.