Package org.itsnat.comp.inc

Examples of org.itsnat.comp.inc.ItsNatFreeInclude


        return "freeInclude";
    }

    public ItsNatFreeInclude createItsNatFreeInclude(Element element,NameValue[] artifacts,boolean execCreateFilters,ItsNatDocComponentManagerImpl compMgr)
    {
        ItsNatFreeInclude comp = null;
        boolean doFilters = hasBeforeAfterCreateItsNatComponentListener(execCreateFilters,compMgr);
        if (doFilters) comp = (ItsNatFreeInclude)processBeforeCreateItsNatComponentListener(element,getCompType(),null,artifacts,compMgr);
        if (comp == null)
            comp = new ItsNatFreeIncludeImpl(element,artifacts,compMgr);
        if (doFilters) comp = (ItsNatFreeInclude)processAfterCreateItsNatComponentListener(comp,compMgr);
View Full Code Here


        ((DefaultTreeModel)freeTreeTable.getTreeModel()).setRoot(new DefaultMutableTreeNode("Free Tree Table"));

        ItsNatHTMLForm form = (ItsNatHTMLForm)compMgr.findItsNatComponentById("formId");
        check(form);

        ItsNatFreeInclude freeInclude = (ItsNatFreeInclude)compMgr.findItsNatComponentById("freeIncludeId");
        check(freeInclude);

        LoginComponent customComp = (LoginComponent)compMgr.findItsNatComponentById("customCompId");
        check(customComp);
View Full Code Here

    public static void INCLUDES()
    {
        ItsNatDocument itsNatDoc = null;
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();

        final ItsNatFreeInclude includeComp = (ItsNatFreeInclude)componentMgr.createItsNatComponentById("includeId","freeInclude",null);

        final ItsNatHTMLInput buttonComp = (ItsNatHTMLInput)componentMgr.createItsNatComponentById("buttonId");

        EventListener evtListener = new EventListener()
        {
            public void handleEvent(Event evt)
            {
                if (includeComp.isIncluded())
                    uninclude();
                else
                    include();
            }

            public void include()
            {
                includeComp.includeFragment("feashow.fragmentExample",true);
                buttonComp.getHTMLInputElement().setValue("Remove");
            }

            public void uninclude()
            {
                includeComp.removeFragment();
                buttonComp.getHTMLInputElement().setValue("Include");
            }
        };
        buttonComp.addEventListener("click",evtListener);
    }
View Full Code Here

TOP

Related Classes of org.itsnat.comp.inc.ItsNatFreeInclude

Copyright © 2018 www.massapicom. 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.