Examples of NamedItem


Examples of org.apache.cocoon.portal.layout.NamedItem

            CopletInstanceData newCoplet = cfac.newInstance(copletData);

            copletLayout.setCopletInstanceData(newCoplet);
            profileManager.register(copletLayout);

            NamedItem newItem = new NamedItem();
            newItem.setLayout(copletLayout);

            CompositeLayout tabLayout =
                (CompositeLayout) profileManager.getPortalLayout(
                    "portalApplications", null);

            newItem.setName(getNewInstanceTabName(tabLayout));
            tabLayout.addItem(newItem);
        } catch (ServiceException ce) {
            throw new ProcessingException(
                "Unable to lookup profile manager.",
                ce);
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem

            return true;
          }
        }
      } else if(lay.getParent() instanceof NamedItem) {
        // FIXME: Causes that only the contents inside a tab are deleted instead of the tab
          NamedItem par = (NamedItem) lay.getParent();
          par.setLayout(null);
      } else {
        lf.remove(lay);
      }
     
    } catch (ProcessingException e) {
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem

     
      if (lay != null)
        ((CompositeLayout) lay).addItem(e);
      else
      {
        NamedItem ni = (NamedItem)layoutObj;
        nObj.setParent(ni);
        ni.setLayout(nObj);
      }
     
    } catch (ProcessingException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem

      lay = (Layout) layoutObj;
   
    // add tab:
    if(lay != null && lay.getName().equals("tab")) {
     
      NamedItem tab = new NamedItem();
      tab.setName(name);
      ((CompositeLayout) lay).addItem(tab);
     
    } else {
     
      try {
       
        Layout tab = lf.newInstance("tab");
        pm.register(tab);
       
        NamedItem e = new NamedItem();
        e.setName(name);
       
        ((CompositeLayout) tab).addItem(e);
       
        if (lay == null) {
         
          ((NamedItem)layoutObj).setLayout(tab);
        }
        else {
          Item m = new Item();
          m.setParent((CompositeLayout) lay);
          ((CompositeLayout) lay).addItem(m);
          m.setLayout(tab);
        }
       
      } catch (ProcessingException e) {
        e.printStackTrace();
      }
    }
    }
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem

            CopletInstanceData newCoplet = cfac.newInstance(copletData);

            copletLayout.setCopletInstanceData(newCoplet);
            profileManager.register(copletLayout);

            NamedItem newItem = new NamedItem();
            newItem.setLayout(copletLayout);

            CompositeLayout tabLayout =
                (CompositeLayout) profileManager.getPortalLayout(
                    "portalApplications", null);

            newItem.setName(getNewInstanceTabName(tabLayout));
            tabLayout.addItem(newItem);
        } catch (ServiceException ce) {
            throw new ProcessingException(
                "Unable to lookup profile manager.",
                ce);
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem

            CopletInstanceData newCoplet = cfac.newInstance(copletData);

            copletLayout.setCopletInstanceData(newCoplet);
            profileManager.register(copletLayout);

            NamedItem newItem = new NamedItem();
            newItem.setLayout(copletLayout);

            CompositeLayout tabLayout =
                (CompositeLayout) profileManager.getPortalLayout(
                    "portalApplications", null);

            newItem.setName(getNewInstanceTabName(tabLayout));
            tabLayout.addItem(newItem);
        } catch (ServiceException ce) {
            throw new ProcessingException(
                "Unable to lookup profile manager.",
                ce);
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem

            return true;
          }
        }
      } else if(lay.getParent() instanceof NamedItem) {
        // FIXME: Causes that only the contents inside a tab are deleted instead of the tab
          NamedItem par = (NamedItem) lay.getParent();
          par.setLayout(null);
      } else {
        lf.remove(lay);
      }
     
    } catch (ProcessingException e) {
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem

     
      if (lay != null)
        ((CompositeLayout) lay).addItem(e);
      else
      {
        NamedItem ni = (NamedItem)layoutObj;
        nObj.setParent(ni);
        ni.setLayout(nObj);
      }
     
    } catch (ProcessingException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem

      lay = (Layout) layoutObj;
   
    // add tab:
    if(lay != null && lay.getName().equals("tab")) {
     
      NamedItem tab = new NamedItem();
      tab.setName(name);
      ((CompositeLayout) lay).addItem(tab);
     
    } else {
     
      try {
       
        Layout tab = lf.newInstance("tab");
        pm.register(tab);
       
        NamedItem e = new NamedItem();
        e.setName(name);
       
        ((CompositeLayout) tab).addItem(e);
       
        if (lay == null) {
         
          ((NamedItem)layoutObj).setLayout(tab);
        }
        else {
          Item m = new Item();
          m.setParent((CompositeLayout) lay);
          ((CompositeLayout) lay).addItem(m);
          m.setLayout(tab);
        }
       
      } catch (ProcessingException e) {
        e.printStackTrace();
      }
    }
    }
View Full Code Here

Examples of org.apache.cocoon.portal.layout.NamedItem

            CopletInstanceData newCoplet = cfac.newInstance(copletData);

            copletLayout.setCopletInstanceData(newCoplet);
            profileManager.register(copletLayout);

            NamedItem newItem = new NamedItem();
            newItem.setLayout(copletLayout);

            CompositeLayout tabLayout =
                (CompositeLayout) profileManager.getPortalLayout(
                    "portalApplications", null);

            newItem.setName(getNewInstanceTabName(tabLayout));
            tabLayout.addItem(newItem);
        }
        catch (ComponentException ce) {
            throw new ProcessingException(
                "Unable to lookup profile manager.",
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.