Package net.xoetrope.html

Examples of net.xoetrope.html.XImage


    public void visibleOther() {
        XCheckbox check1 = (XCheckbox)findComponent( obj, "check1" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        XImage img = (XImage)findComponent( "img" );
        if ( check1.isSelected() ) {
            lab1.setVisible( false );
            lab2.setVisible( false );
            table.setVisible( false );
            img.setVisible( false );
        } else {
            lab1.setVisible( true );
            lab2.setVisible( true );
            table.setVisible( true );
            img.setVisible( true );
        }
    }
View Full Code Here


        }
    }
   
    public void changeImage() {
        XCheckbox check4 = (XCheckbox)findComponent( obj, "check4" );       
        XImage img = (XImage)findComponent( "img" );
        if ( check4.isSelected() ) {
            img.setImageSrc( "../images/win.jpg" );
        } else {
            img.setImageSrc( "../images/tux.jpg" );
        }
    }
View Full Code Here

        panel.add( list.oGetHTMLElement() );
    }
   
    public void addImage() {
        XPanel panel = (XPanel)findComponent( obj, "panel" );
        XImage image = new XImage( "../images/tux.jpg", "image" );
        panel.add( image.getHTMLElement() );
    }
View Full Code Here

TOP

Related Classes of net.xoetrope.html.XImage

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.