本文整理汇总了Java中gwt.material.design.client.ui.MaterialSearch类的典型用法代码示例。如果您正苦于以下问题:Java MaterialSearch类的具体用法?Java MaterialSearch怎么用?Java MaterialSearch使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MaterialSearch类属于gwt.material.design.client.ui包,在下文中一共展示了MaterialSearch类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SearchBar
import gwt.material.design.client.ui.MaterialSearch; //导入依赖的package包/类
@Inject
public SearchBar(TransitionTo<MapTabViewModel> toMap, MaterialLink searchButton, MaterialSearch search) {
this.toMap = toMap;
this.searchButton = searchButton;
this.search = search;
}
示例2: getSearchBox
import gwt.material.design.client.ui.MaterialSearch; //导入依赖的package包/类
MaterialSearch getSearchBox() {
return search;
}
示例3: setUp
import gwt.material.design.client.ui.MaterialSearch; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
SearchBar testedInstance = new SearchBar(toMap, searchButton, mock(MaterialSearch.class));
when(searchButton.getElement()).thenReturn(mock(Element.class));
testedInstance.init();
}