本文整理了Java中com.vaadin.ui.Layout.removeComponent()
方法的一些代码示例,展示了Layout.removeComponent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Layout.removeComponent()
方法的具体详情如下:
包路径:com.vaadin.ui.Layout
类名称:Layout
方法名:removeComponent
暂无
代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin
public void refresh() {
try {
panel.removeComponent(m_attachmentsTable);
} catch (NullPointerException e) {
// ignore NPEs
}
m_attachmentsTable = getAttachmentsTable(getFilter(getPermissionManager(),m_currentPid));
panel.addComponent(m_attachmentsTable);
}
代码示例来源:origin: org.aperteworkflow/editor
@Override
public boolean removePermissionWrapper(PermissionWrapper permissionWrapper) {
PermissionWrapperBox box = getPermissionWrapperBoxByRoleName(permissionWrapper.getRoleName());
if (box == null) {
// Nothing to remove
return false;
}
roleNameLayout.removeComponent(box);
roleNameLayout.requestRepaint();
roleNameComboBox.addItem(permissionWrapper.getRoleName());
Permission permission = new Permission();
permission.setPrivilegeName(permissionWrapper.getPrivilegeName());
permission.setRoleName(permissionWrapper.getRoleName());
provider.removePermission(permission);
return true;
}
代码示例来源:origin: com.haulmont.cuba/cuba-web
protected void removeNewTabWindow(Screen screen) {
WebTabWindow window = (WebTabWindow) screen.getWindow();
com.vaadin.ui.Component windowComposition = window.unwrapComposition(com.vaadin.ui.Component.class);
TabWindowContainer windowContainer = (TabWindowContainer) windowComposition.getParent();
windowContainer.removeComponent(windowComposition);
WebAppWorkArea workArea = getConfiguredWorkArea();
boolean allWindowsRemoved;
if (workArea.getMode() == Mode.TABBED) {
TabSheetBehaviour tabSheet = workArea.getTabbedWindowContainer().getTabSheetBehaviour();
tabSheet.silentCloseTabAndSelectPrevious(windowContainer);
tabSheet.removeComponent(windowContainer);
allWindowsRemoved = tabSheet.getComponentCount() == 0;
} else {
Layout singleLayout = workArea.getSingleWindowContainer();
singleLayout.removeComponent(windowContainer);
allWindowsRemoved = true;
}
WindowBreadCrumbs windowBreadCrumbs = windowContainer.getBreadCrumbs();
if (windowBreadCrumbs != null) {
windowBreadCrumbs.setWindowNavigateHandler(null);
windowBreadCrumbs.removeWindow();
}
if (allWindowsRemoved) {
workArea.switchTo(AppWorkArea.State.INITIAL_LAYOUT);
}
}
内容来源于网络,如有侵权,请联系作者删除!