Package com.alee.extended.progress

Examples of com.alee.extended.progress.WebStepProgress


    }

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        final WebStepProgress wsp1 = new WebStepProgress ( 6 );

        final WebStepProgress wsp2 = new WebStepProgress ( "Step 1", "Step 2", "Step 3" );
        wsp2.setSelectedStepIndex ( 0 );
        wsp2.setLabelsPosition ( WebStepProgress.LEADING );

        final WebStepProgress wsp3 = new WebStepProgress ( 3 );
        wsp3.setSelectedStepIndex ( 1 );
        wsp3.setSelectionMode ( StepSelectionMode.progress );

        final WebStepProgress wsp4 = new WebStepProgress ( "Step 1", "Step 2", "Step 3" );
        wsp4.setSelectedStepIndex ( 2 );
        wsp4.setLabelsPosition ( WebStepProgress.TRAILING );

        final WebStepProgress wsp5 = new WebStepProgress ( "Step 1", "Long step 2", "Step 3" );
        wsp5.setSelectedStepIndex ( 0 );
        wsp5.setLabelsPosition ( WebStepProgress.LEADING );
        wsp5.setOrientation ( WebStepProgress.VERTICAL );
        wsp5.setStepControlRound ( 2 );
        wsp5.setStepControlFillRound ( 0 );

        final WebStepProgress wsp6 = new WebStepProgress ( "Step 1", "Long step 2", "Step 3" );
        wsp6.setSelectedStepIndex ( 1 );
        wsp6.setLabelsPosition ( WebStepProgress.TRAILING );
        wsp6.setOrientation ( WebStepProgress.VERTICAL );
        wsp6.setStepControlRound ( 2 );
        wsp6.setStepControlFillRound ( 0 );
        wsp6.setSelectionMode ( StepSelectionMode.progress );

        final WebStepProgress wsp7 = new WebStepProgress ( createProgressIcon ( "ava1.jpg" ), createProgressIcon ( "ava2.jpg" ),
                createProgressIcon ( "ava3.png" ), createProgressIcon ( "ava4.jpg" ) );
        wsp7.setLabelsPosition ( WebStepProgress.TRAILING );
        wsp7.setSelectionMode ( StepSelectionMode.progress );

        final WebPanel container = new WebPanel ( new TableLayout ( new double[][]{ { TableLayout.PREFERRED, 150, TableLayout.PREFERRED },
                { TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED } } ) );
        container.add ( wsp1, "0,0,2,0" );
        container.add ( wsp5, "0,1,0,3" );
View Full Code Here

TOP

Related Classes of com.alee.extended.progress.WebStepProgress

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.