public void setInSlot(Object slot, Widget content) {
   if (slot == SidebarPresenter.TYPE_Widgets) {
     addWidget(content);
   } else {
     super.setInSlot(slot, content);
   }
 }
 @Override
 public void removeFromSlot(Object slot, Widget content) {
   if (slot == PublishEventPresenter.SLOT_Actividad) {
     removeActividadContent(content);
   } else {
     super.removeFromSlot(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);
   }
 }
 @Override
 public void setInSlot(Object slot, IsWidget content) {
   if (slot == MainMenuPresenter.SLOT_MainMenu) {
     // main.setWidget(content);
   } else {
     super.setInSlot(slot, content);
   }
 }
Пример #5
0
 @Override
 public void addToSlot(Object slot, IsWidget content) {
   if (slot == DataSourcePresenter.TABLE_SLOT) {
     if (content != null) {
       tblRow.add(content);
     }
   } else {
     super.setInSlot(slot, content);
   }
 }
Пример #6
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);
   }
 }
  @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);
    }
  }
Пример #8
0
  @Override
  protected void onAttach() {
    super.onAttach();
    Element label = chkMineOnly.getElement().getElementsByTagName("label").getItem(0);
    label.getStyle().setTop(14, Unit.PX);

    canCreateStory = hasPermission(PermissionName.STORIES_CAN_CREATE_CONTENT.name());
    panelLoadStories.clear();
    if (!canCreateStory) {
      panelCreateStory.addStyleName("hide");
    }
  }
 // 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);
   }
 }
Пример #10
0
 @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);
   }
 }