Package org.drools.guvnor.client.common

Examples of org.drools.guvnor.client.common.StackItemHeaderViewImpl


    public CategoryServiceAsync getCategoryService() {
        return RepositoryServiceFactory.getCategoryService();
    }

    public IsWidget getKnowledgeModulesHeaderView() {
        StackItemHeaderViewImpl view = new StackItemHeaderViewImpl();
        StackItemHeader header = new StackItemHeader( view );
        header.setName( constants.KnowledgeBases() );
        header.setImageResource( images.packages() );
        return view;
    }
View Full Code Here


            //Default
            title = constants.KnowledgeBases();
            image = images.packages();
        }

        StackItemHeaderViewImpl view = new StackItemHeaderViewImpl();
        StackItemHeader header = new StackItemHeader( view );
        header.setName( title );
        header.setImageResource( image );
        return view;
    }
View Full Code Here

        return UserCapabilities.INSTANCE.hasCapability( Capability.SHOW_ADMIN );
    }

    @Override
    public IsWidget getHeader() {
        StackItemHeaderViewImpl view = new StackItemHeaderViewImpl();
        StackItemHeader header = new StackItemHeader( view );
        header.setName( administrationTree.getName() );
        header.setImageResource( administrationTree.getImage() );
        return view;
    }
View Full Code Here

     * @return the header as a string
     */
    public static StackItemHeaderViewImpl getHeaderHTML(ImageResource image,
                                                        String text) {

        StackItemHeaderViewImpl stackItemHeaderViewImpl = new StackItemHeaderViewImpl();

        stackItemHeaderViewImpl.setText(text);
        stackItemHeaderViewImpl.setImageResource(image);

        return stackItemHeaderViewImpl;
    }
View Full Code Here

                Capability.SHOW_DEPLOYMENT_NEW );
    }

    @Override
    public IsWidget getHeader() {
        StackItemHeaderViewImpl view = new StackItemHeaderViewImpl();
        StackItemHeader header = new StackItemHeader( view );
        header.setName( deploymentTree.getName() );
        header.setImageResource( deploymentTree.getImage() );
        return view;
    }
View Full Code Here

        return UserCapabilities.INSTANCE.hasCapability( Capability.SHOW_QA );
    }

    @Override
    public IsWidget getHeader() {
        StackItemHeaderViewImpl view = new StackItemHeaderViewImpl();
        StackItemHeader header = new StackItemHeader( view );
        header.setName( qaTree.getName() );
        header.setImageResource( qaTree.getImage() );
        return view;
    }
View Full Code Here

        return UserCapabilities.INSTANCE.hasCapability( Capability.SHOW_QA );
    }

    @Override
    public IsWidget getHeader() {
        StackItemHeaderViewImpl view = new StackItemHeaderViewImpl();
        StackItemHeader header = new StackItemHeader( view );
        header.setName( qaTree.getName() );
        header.setImageResource( qaTree.getImage() );
        return view;
    }
View Full Code Here

                Capability.SHOW_DEPLOYMENT_NEW );
    }

    @Override
    public IsWidget getHeader() {
        StackItemHeaderViewImpl view = new StackItemHeaderViewImpl();
        StackItemHeader header = new StackItemHeader( view );
        header.setName( deploymentTree.getName() );
        header.setImageResource( deploymentTree.getImage() );
        return view;
    }
View Full Code Here

     * @return the header as a string
     */
    public static StackItemHeaderViewImpl getHeaderHTML(ImageResource image,
                                                        String text) {

        StackItemHeaderViewImpl stackItemHeaderViewImpl = new StackItemHeaderViewImpl();

        stackItemHeaderViewImpl.setText(text);
        stackItemHeaderViewImpl.setImageResource(image);

        return stackItemHeaderViewImpl;
    }
View Full Code Here

            //Default
            title = constants.KnowledgeBases();
            image = images.packages();
        }

        StackItemHeaderViewImpl view = new StackItemHeaderViewImpl();
        StackItemHeader header = new StackItemHeader( view );
        header.setName( title );
        header.setImageResource( image );
        return view;
    }
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.common.StackItemHeaderViewImpl

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.