Search in sources :

Example 1 with AddMemberBox

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

the class AccountGroupMembersScreen method initIncludeList.

private void initIncludeList() {
    accountGroupSuggestOracle = new AccountGroupSuggestOracle();
    addIncludeBox = new AddMemberBox(AdminConstants.I.buttonAddIncludedGroup(), AdminConstants.I.defaultAccountGroupName(), accountGroupSuggestOracle);
    addIncludeBox.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(final ClickEvent event) {
            doAddNewInclude();
        }
    });
    includes = new IncludeTable();
    includes.addStyleName(Gerrit.RESOURCES.css().groupIncludesTable());
    delInclude = new Button(AdminConstants.I.buttonDeleteIncludedGroup());
    delInclude.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(final ClickEvent event) {
            includes.deleteChecked();
        }
    });
    includePanel = new FlowPanel();
    includePanel.add(new SmallHeading(AdminConstants.I.headingIncludedGroups()));
    includePanel.add(addIncludeBox);
    includePanel.add(includes);
    includePanel.add(delInclude);
    add(includePanel);
}
Also used : AccountGroupSuggestOracle(com.google.gerrit.client.ui.AccountGroupSuggestOracle) SmallHeading(com.google.gerrit.client.ui.SmallHeading) 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)

Example 2 with AddMemberBox

use of com.google.gerrit.client.ui.AddMemberBox 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

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