Search in sources :

Example 1 with AccountSuggestOracle

use of com.google.gerrit.client.ui.AccountSuggestOracle in project gerrit by GerritCodeReview.

the class AccountGroupMembersScreen method initMemberList.

private void initMemberList() {
    addMemberBox = new AddMemberBox(AdminConstants.I.buttonAddGroupMember(), AdminConstants.I.defaultAccountName(), new AccountSuggestOracle());
    addMemberBox.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(final ClickEvent event) {
            doAddNewMember();
        }
    });
    members = new MemberTable();
    members.addStyleName(Gerrit.RESOURCES.css().groupMembersTable());
    delMember = new Button(AdminConstants.I.buttonDeleteGroupMembers());
    delMember.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(final ClickEvent event) {
            members.deleteChecked();
        }
    });
    memberPanel = new FlowPanel();
    memberPanel.add(new SmallHeading(AdminConstants.I.headingMembers()));
    memberPanel.add(addMemberBox);
    memberPanel.add(members);
    memberPanel.add(delMember);
    add(memberPanel);
}
Also used : SmallHeading(com.google.gerrit.client.ui.SmallHeading) AccountSuggestOracle(com.google.gerrit.client.ui.AccountSuggestOracle) AddMemberBox(com.google.gerrit.client.ui.AddMemberBox) ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Button(com.google.gwt.user.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent) FlowPanel(com.google.gwt.user.client.ui.FlowPanel)

Aggregations

AccountSuggestOracle (com.google.gerrit.client.ui.AccountSuggestOracle)1 AddMemberBox (com.google.gerrit.client.ui.AddMemberBox)1 SmallHeading (com.google.gerrit.client.ui.SmallHeading)1 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)1 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)1 Button (com.google.gwt.user.client.ui.Button)1 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)1