Examples of Tab


Examples of net.datacrow.core.objects.Tab

        df.addEntry(new DataFilterEntry(DataFilterEntry._AND, DcModules._TAB, Tab._A_NAME, Operator.EQUAL_TO, name));
       
        Collection<String> tabs = getKeyList(df);
        if (tabs.size() == 0) {
            try {
                Tab tab = (Tab) DcModules.get(DcModules._TAB).getItem();
                tab.setIDs();
                tab.setValue(Tab._A_NAME, name);
                tab.setValue(Tab._D_MODULE, Long.valueOf(module));
               
                int order = name.equals(DcResources.getText("lblInformation")) ? 1 :
                            name.equals(DcResources.getText("lblSummary")) ? 0 :
                            2;
               
                tab.setValue(Tab._C_ORDER, Long.valueOf(order));
               
                if (name.equalsIgnoreCase(DcResources.getText("lblInformation")) || name.equals(DcResources.getText("lblSummary")))
                    tab.setValue(Tab._B_ICON, new DcImageIcon(DataCrow.installationDir + "icons" + File.separator + "information.png"));
                else if (name.equalsIgnoreCase(DcResources.getText("lblTechnicalInfo")))
                    tab.setValue(Tab._B_ICON, new DcImageIcon(DataCrow.installationDir + "icons" + File.separator + "informationtechnical.png"));
               
                tab.saveNew(false);
            } catch (Exception e) {
                logger.error(e, e);
                exists = false;
            }
        }
View Full Code Here

Examples of net.datacrow.core.objects.Tab

        super(DcModules._TAB, "Tab", "Tab", "Tab", "Tab", "Tabs");
    }

    @Override
    public DcObject createItem() {
        return new Tab();
    }
View Full Code Here

Examples of org.apache.lenya.cms.usecase.gui.Tab

            Usecase usecase = null;
            try {
                usecaseResolver = (UsecaseResolver) this.manager.lookup(UsecaseResolver.ROLE);
                usecase = usecaseResolver.resolve(webappUri, usecaseName);
                if (usecase.getView() != null) {
                    Tab tab = usecase.getView().getTab();
                    if (tab != null) {
                        tabGroup = tab.getGroup();
                    }
                }
            } catch (ServiceException e) {
                throw new ProcessingException(e);
            } finally {
View Full Code Here

Examples of org.apache.struts2.jquery.components.Tab

    public TabModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new Tab(stack, req, res);
    }
View Full Code Here

Examples of org.broadleafcommerce.openadmin.web.form.entity.Tab

            Map<String, Map<String, List<String>>> result = new HashMap<String, Map<String, List<String>>>();
            for (FieldError err : bindStatus.getErrors().getFieldErrors()) {
                //attempt to look up which tab the field error is on. If it can't be found, just use
                //the default tab for the group
                String tabName = EntityForm.DEFAULT_TAB_NAME;
                Tab tab = form.findTabForField(err.getField());
                if (tab != null) {
                    tabName = tab.getTitle();
                }
               
                Map<String, List<String>> tabErrors = result.get(tabName);
                if (tabErrors == null) {
                    tabErrors = new HashMap<String, List<String>>();
View Full Code Here

Examples of org.eurekastreams.server.domain.Tab

    @Test
    public void performActionsWithGoodParams() throws Exception
    {
        final long targetGadgetId = GADGET3_ID;
        final List<Gadget> gadgets = buildGadgets(targetGadgetId);
        final Tab tab = context.mock(Tab.class);

        context.checking(new Expectations()
        {
            {
                oneOf(tabMapper).findTabByGadgetId(GADGET3_ID);
View Full Code Here

Examples of org.jeecgframework.tag.vo.easyui.Tab

    }
    return sb;
  }

  public void setTab(String id, String title,String iframe, String href, String iconCls, boolean cache, String content, String width, String heigth, boolean closable) {
    Tab tab = new Tab();
    tab.setId(id);
    tab.setTitle(title);
    tab.setHref(href);
    tab.setCache(cache);
    tab.setIframe(iframe);
    tab.setContent(content);
    tab.setHeigth(heigth);
    tab.setIcon(iconCls);
    tab.setWidth(width);
    tab.setClosable(closable);
    tabList.add(tab);
  }
View Full Code Here

Examples of org.primefaces.component.tabview.Tab

   
    for(Iterator<UIComponent> kids = accordionPanel.getChildren().iterator(); kids.hasNext();) {
      UIComponent kid = (UIComponent) kids.next();
     
      if(kid.isRendered() && kid instanceof Tab) {
        Tab tab = (Tab) kid;
       
        //title
        writer.startElement("h3", null);
        writer.startElement("a", null);
        writer.writeAttribute("href", "#", null);
        if(tab.getTitle() != null) {
          writer.write(tab.getTitle());
        }
        writer.endElement("a");
        writer.endElement("h3");
       
        //content
View Full Code Here

Examples of org.primefaces.component.tabview.Tab

    writer.write(",navHeaders:new Array(");
   
    for(Iterator<UIComponent> kids = slider.getChildren().iterator(); kids.hasNext();) {
      UIComponent kid = kids.next();
      if(kid.isRendered() && kid instanceof Tab) {
        Tab tab = (Tab) kid;
       
        writer.write("'" + tab.getTitle() + "'");
       
        if(kids.hasNext())
          writer.write(",");
      }
    }
View Full Code Here

Examples of org.primefaces.component.tabview.Tab

   
    writer.startElement("ul", slider);
   
    for(UIComponent kid : slider.getChildren()) {
      if(kid.isRendered() && kid instanceof Tab) {
        Tab tab = (Tab) kid;
       
        writer.startElement("li", null);
        renderChild(facesContext, tab);
        writer.endElement("li");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.