public void setInSlot(Object slot, Widget content) { if (slot == SidebarPresenter.TYPE_Widgets) { addWidget(content); } else { super.setInSlot(slot, content); } }
@Override public void setInSlot(Object slot, IsWidget content) { if (slot == MainMenuPresenter.SLOT_MainMenu) { // main.setWidget(content); } else { super.setInSlot(slot, content); } }
@Override public void setInSlot(Object slot, Widget content) { if (slot == DialogSamplePresenter.TYPE_SetTabContent) { tabPanel.setPanelContent(content); } else { super.setInSlot(slot, content); } }
@Override public void addToSlot(Object slot, IsWidget content) { if (slot == DataSourcePresenter.TABLE_SLOT) { if (content != null) { tblRow.add(content); } } else { super.setInSlot(slot, content); } }
@Override public void setInSlot(final Object slot, final IsWidget content) { if (slot == PerunPresenter.SET_MAIN_CONTENT) { pageContent.clear(); if (content != null) { pageContent.add(content); } } else { super.setInSlot(slot, content); } }
@Override public void setInSlot(Object slot, Widget content) { if (content == null) filterPanel.clear(); if (slot == InvoiceListPresenter.SLOT_filters) { filterPanel.clear(); filterPanel.add(content); } else { super.setInSlot(slot, content); } }
// GWTP will call setInSlot when a child presenter asks to be added under // this view. @Override public void setInSlot(Object slot, Widget content) { if (slot == StyledLayerDescriptorLayoutPresenter.TYPE_GENERAL_CONTENT) { replaceContent(generalContentPanel, (Canvas) content); } else if (slot == StyledLayerDescriptorLayoutPresenter.TYPE_RULES_CONTENT) { replaceContent(rulesContentPanel, (Canvas) content); } else if (slot == StyledLayerDescriptorLayoutPresenter.TYPE_RULE_CONTENT) { replaceContent(ruleContentPanel, (Canvas) content); } else if (slot == StyledLayerDescriptorLayoutPresenter.TYPE_ACTION_CONTENT) { replaceContent(actionContentPanel, (Canvas) content); } else { super.setInSlot(slot, content); } }
@Override public void setInSlot(Object slot, Widget content) { if (slot == HomePresenter.MENU_CONTENT_SLOT) { menuPanel.clear(); if (content != null) { menuPanel.add(content); } } else if (slot == HomePresenter.MAIN_CONTENT_SLOT) { contentPanel.clear(); if (content != null) { contentPanel.add(content); } } else { super.setInSlot(slot, content); } }