Package jsynoptic.base

Examples of jsynoptic.base.Template


   
    protected void updateTemplatePanels(){
        templatesPanels.removeAll()
        templatesPanels.add(new JPanel() , "emptyPanel");
        for (Iterator it = Template.getTemplates().iterator(); it.hasNext();) {
            Template t = (Template)(it.next());
            if t.getOptionPanelForTemplate() != null) {
                templatesPanels.add( t.getOptionPanelForTemplate(), t.getName());
            }
        }
    }
View Full Code Here


            // Get Templates configuration from user properties
            String currentTemplateName = userProperties.getProperty("jsynoptic.ui.JSynoptic.currentTemplate", null);
            if (currentTemplateName != null){
                // Get current template from current template name
                Template t = null;
                for (int i = 0; (i < Template.getTemplates().size()) && (t == null); i++) {
                    Template temp =  (Template)Template.getTemplates().get(i);
                    if ( temp.getName().equals(currentTemplateName)){
                        t = temp;
                    }
                }
                if (t != null){
                    Template.setCurrentTemplate(t);
View Full Code Here

       
        // Create JMenu contents
        menu.removeAll();

        for(int i=0; i < Template.getTemplates().size(); i++){
            Template t = (Template)Template.getTemplates().get(i);
            JMenuItem mi = new JMenuItem( new TemplateAction(t));
            menu.add(mi);
           
            if (i <Template.getTemplates().size()-1){
                menu.addSeparator();
View Full Code Here

TOP

Related Classes of jsynoptic.base.Template

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.