@PostConstruct private void init() { this.elementSelector.setSearchEnabled(false); this.elementSelector.setClearSelectionEnabled(false); this.elementSelector.setWidth(275); this.elementSelector.setOnChange(this::onElementSelected); this.elementSelector.init(searchService, selectionHandler); }
@PostConstruct private void init() { priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityVeryHigh()); priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityHigh()); priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityNormal()); priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityLow()); priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityVeryLow()); liveSearchDropDown.setSelectorHint(UsersManagementWidgetsConstants.INSTANCE.selectPriorityHint()); liveSearchDropDown.setSearchEnabled(false); liveSearchDropDown.setClearSelectionEnabled(false); liveSearchDropDown.init(searchService, selectionHandler); }
@PostConstruct private void init() { this.elementSelector.setSearchEnabled(false); this.elementSelector.setClearSelectionEnabled(false); this.elementSelector.setWidth(275); this.elementSelector.setOnChange(this::onElementSelected); this.elementSelector.init(searchService, selectionHandler); }
public void init(LiveSearchService<TYPE> searchService, MultipleLiveSearchSelectionHandler<TYPE> searchSelectionHandler) { this.searchService = searchService; this.selectionHandler = searchSelectionHandler; selector.init(searchService, selectionHandler); selector.setOnChange(() -> setValue(selectionHandler.getSelectedValues(), true)); }
@PostConstruct private void init() { priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityVeryHigh()); priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityHigh()); priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityNormal()); priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityLow()); priorityItemList.add(UsersManagementWidgetsConstants.INSTANCE.priorityVeryLow()); liveSearchDropDown.setSelectorHint(UsersManagementWidgetsConstants.INSTANCE.selectPriorityHint()); liveSearchDropDown.setSearchEnabled(false); liveSearchDropDown.setClearSelectionEnabled(false); liveSearchDropDown.init(searchService, selectionHandler); }
@PostConstruct public void init() { view.init(this); view.setDropDown(dropDown); dropDown.setClearSelectionEnabled(false); dropDown.setSearchEnabled(false); dropDown.init(searchService, selectionHandler); dropDown.setOnChange(this::onEntrySelected); }
@PostConstruct public void init() { view.init(this); view.setDropDown(dropDown); dropDown.setClearSelectionEnabled(false); dropDown.setSearchEnabled(false); dropDown.init(searchService, selectionHandler); dropDown.setOnChange(this::onEntrySelected); }
public void init(AssigneeType type, Assignee assignee, Command notifyChangeCommand, ParameterizedCommand<AssigneeListItem> removeCommand) { this.assignee = assignee; this.notifyChangeCommand = notifyChangeCommand; this.removeCommand = removeCommand; liveSearchService.init(type); liveSearchDropDown.init(liveSearchService, searchSelectionHandler); liveSearchDropDown.setSelectedItem(assignee.getName()); liveSearchDropDown.setOnChange(this::notifyChange); }
@Test public void testInit() { verify(liveSearchDropDown).setSearchEnabled(false); verify(liveSearchDropDown).init(any(), any()); assertNull(presenter.getValue()); }
@PostConstruct public void init() { view.init(this); view.getVariableSelectorDropDown().init(variableSearchService, variableSearchSelectionHandler); view.getVariableSelectorDropDown().setOnChange(this::onVariableChange); view.getConditionSelectorDropDown().init(functionSearchService, functionSearchSelectionHandler); view.getConditionSelectorDropDown().setSearchCacheEnabled(false); view.getConditionSelectorDropDown().setOnChange(this::onConditionChange); }
@Test public void testInit() { verify(liveSearchDropDown).setSearchEnabled(false); verify(liveSearchDropDown).init(any(), any()); assertNull(presenter.getValue()); }
protected void startTest() { dropDown.init(searchService, searchSelectionHandler); verify(view).setNewInstanceEnabled(true); ArgumentCaptor<ParameterizedCommand> onAddCommandCaptor = ArgumentCaptor.forClass(ParameterizedCommand.class); ArgumentCaptor<Command> onCancelCommandCaptor = ArgumentCaptor.forClass(Command.class); verify(editor).init(onAddCommandCaptor.capture(), onCancelCommandCaptor.capture()); onAddCommand = onAddCommandCaptor.getValue(); onCancelCommand = onCancelCommandCaptor.getValue(); assertNotNull(onAddCommand); assertNotNull(onCancelCommand); dropDown.showNewItem(); }
@PostConstruct private void init() { liveSearchDropDown.setSelectorHint(CommonConstants.INSTANCE.PerspectiveSelectHint()); liveSearchDropDown.setSearchHint(CommonConstants.INSTANCE.PerspectiveSearchHint()); liveSearchDropDown.setNotFoundMessage(CommonConstants.INSTANCE.PerspectiveNotFound()); liveSearchDropDown.setClearSelectionEnabled(false); liveSearchDropDown.init(searchService, selectionHandler); }
@PostConstruct private void init() { liveSearchDropDown.setSelectorHint(CommonConstants.INSTANCE.PerspectiveSelectHint()); liveSearchDropDown.setSearchHint(CommonConstants.INSTANCE.PerspectiveSearchHint()); liveSearchDropDown.setNotFoundMessage(CommonConstants.INSTANCE.PerspectiveNotFound()); liveSearchDropDown.setClearSelectionEnabled(false); liveSearchDropDown.init(searchService, selectionHandler); }
@Before public void setUp() { when(selectorItems.get()).thenAnswer((Answer<LiveSearchSelectorItem<String>>) invocationOnMock -> { final LiveSearchSelectorItem<String> result = mock(LiveSearchSelectorItem.class); doAnswer((Answer<Void>) invocationOnMock1 -> { String key = (String) invocationOnMock1.getArguments()[0]; String value = (String) invocationOnMock1.getArguments()[1]; when(result.getKey()).thenReturn(key); when(result.getValue()).thenReturn(value); return null; }).when(result).init(any(), any()); return result; }); presenter = spy(new LiveSearchDropDown(view, selectorItems)); presenter.setOnChange(onChangeCommand); presenter.init(searchService, selectionHandler); doAnswer(invocationOnMock -> { ClickEvent event = (ClickEvent) invocationOnMock.getArguments()[0]; event.stopPropagation(); return null; }).when(view).onSearchClick(any()); }
@Test public void testInit() { this.elementSelector.setSearchEnabled(false); this.elementSelector.setClearSelectionEnabled(false); this.elementSelector.setWidth(275); this.elementSelector.init(eq(presenter.getSearchService()), any()); }
liveSearchDropDown.setWidth(220); liveSearchDropDown.setClearSelectionEnabled(false); liveSearchDropDown.init(childrenSearchService, selectionHandler); liveSearchDropDown.setOnChange(() -> onChildSelected(selectionHandler.getSelectedKey()));
liveSearchDropDown.setWidth(220); liveSearchDropDown.setClearSelectionEnabled(false); liveSearchDropDown.init(childrenSearchService, selectionHandler); liveSearchDropDown.setOnChange(() -> onChildSelected(selectionHandler.getSelectedKey()));