コード例 #1
0
 public void setInSlot(Object slot, Widget content) {
   if (slot == SidebarPresenter.TYPE_Widgets) {
     addWidget(content);
   } else {
     super.setInSlot(slot, content);
   }
 }
コード例 #2
0
 @Override
 public void setInSlot(Object slot, IsWidget content) {
   if (slot == MainMenuPresenter.SLOT_MainMenu) {
     // main.setWidget(content);
   } else {
     super.setInSlot(slot, content);
   }
 }
コード例 #3
0
 @Override
 public void setInSlot(Object slot, Widget content) {
   if (slot == DialogSamplePresenter.TYPE_SetTabContent) {
     tabPanel.setPanelContent(content);
   } else {
     super.setInSlot(slot, content);
   }
 }
コード例 #4
0
ファイル: DataSourceView.java プロジェクト: dastko/WIRA
 @Override
 public void addToSlot(Object slot, IsWidget content) {
   if (slot == DataSourcePresenter.TABLE_SLOT) {
     if (content != null) {
       tblRow.add(content);
     }
   } else {
     super.setInSlot(slot, content);
   }
 }
コード例 #5
0
 @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);
   }
 }
コード例 #6
0
  @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);
   }
 }
コード例 #8
0
ファイル: HomeView.java プロジェクト: bennettjosephb/GWT
 @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);
   }
 }