gwt.material.design.client.ui.MaterialCollapsibleItem Java Examples
The following examples show how to use
gwt.material.design.client.ui.MaterialCollapsibleItem.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProgressMixin.java From gwt-material with Apache License 2.0 | 5 votes |
@Override public void showProgress(ProgressType type) { if (uiObject instanceof MaterialCollapsibleItem) { applyCollapsibleProgress(true); } else if (uiObject instanceof MaterialNavBar) { ((MaterialNavBar) uiObject).add(progress); } }
Example #2
Source File: ProgressMixin.java From gwt-material with Apache License 2.0 | 5 votes |
@Override public void hideProgress() { if (uiObject instanceof MaterialCollapsibleItem) { applyCollapsibleProgress(false); } else { progress.removeFromParent(); } }
Example #3
Source File: ProgressMixin.java From gwt-material with Apache License 2.0 | 5 votes |
protected void applyCollapsibleProgress(boolean isShow) { MaterialCollapsibleItem item = (MaterialCollapsibleItem) uiObject; MaterialCollapsibleBody body = (MaterialCollapsibleBody) item.getWidget(1); if (uiObject.getElement().getClassName().contains(CssName.ACTIVE)) { if (isShow) { body.setDisplay(Display.NONE); item.add(progress); } else { body.setDisplay(Display.BLOCK); progress.removeFromParent(); } } }
Example #4
Source File: QueryOptionsView.java From lumongo with Apache License 2.0 | 5 votes |
private void createFieldNameCollapsible(IndexInfo indexInfo) { MaterialCollapsibleItem item = new MaterialCollapsibleItem(); item.setVisible(false); fieldItems.put(indexInfo.getName(), item); MaterialCollapsibleHeader header = new MaterialCollapsibleHeader(); header.setBackgroundColor(Color.GREY_LIGHTEN_1); MaterialLink link = new MaterialLink("'" + indexInfo.getName() + "' fields"); link.setTextColor(Color.WHITE); header.add(link); MaterialCollapsibleBody body = new MaterialCollapsibleBody(); body.setPaddingTop(0); body.setBackgroundColor(Color.WHITE); CustomTabPanel tabPanel = new CustomTabPanel(TabType.DEFAULT); tabPanel.setMarginLeft(-40); tabPanel.setMarginRight(-40); String qfTabId = UIUtil.getRandomId(); MaterialTabItem qfTabItem = tabPanel.createAndAddTabListItem("QF", "#" + qfTabId); tabPanel.createAndAddTabPane(qfTabId, new FieldsDiv(indexInfo.getQfList(), uiQueryObject.getQueryFields())); header.addClickHandler(clickEvent -> qfTabItem.selectTab()); String flTabId = UIUtil.getRandomId(); tabPanel.createAndAddTabListItem("FL", "#" + flTabId); tabPanel.createAndAddTabPane(flTabId, new FieldsDiv(indexInfo.getFlList(), uiQueryObject.getDisplayFields())); String facetsTabId = UIUtil.getRandomId(); tabPanel.createAndAddTabListItem("Facets", "#" + facetsTabId); tabPanel.createAndAddTabPane(facetsTabId, new FieldsDiv(indexInfo.getFacetList(), uiQueryObject.getFacets())); body.add(tabPanel); item.add(header); item.add(body); fieldNameCollapsible.add(item); }
Example #5
Source File: CustomerCollapsible.java From gwt-material-patterns with Apache License 2.0 | 4 votes |
public MaterialCollapsibleItem getColapsItem() { return colapsItem; }
Example #6
Source File: DefaultCollapsibleItemLoader.java From gwt-material with Apache License 2.0 | 4 votes |
public DefaultCollapsibleItemLoader(MaterialCollapsibleItem item) { this.item = item; setupLoader(); }