Package net.xoetrope.html

Examples of net.xoetrope.html.XTable


   
    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 changeCellColor() {
        XCheckbox check3 = (XCheckbox)findComponent( obj, "check3" );
        XTable table = (XTable)findComponent( "table" );
        if ( check3.isSelected() ) {
            table.setBackgroundColorAt( 1, 3, "#FF3333" );
            table.setBackgroundColorAt( 2, 2, "#FFCCAA" );
            table.setBackgroundColorAt( 2, 5, "#ABCDEF" );
            table.setBackgroundColorAt( 3, 1, "#FEDCBA" );
        } else {
            table.setBackgroundColorAt( 1, 3, "" );
            table.setBackgroundColorAt( 2, 2, "" );
            table.setBackgroundColorAt( 2, 5, "" );
            table.setBackgroundColorAt( 3, 1, "" );
        }
    }
View Full Code Here

   
    public void changeFontColorOther() {
        XCheckbox check2 = (XCheckbox)findComponent( obj, "check2" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        if ( check2.isSelected() ) {
            lab1.setFontColor( "#FF3333" );
            lab2.setFontColor( "#FF3333" );
            table.setFontColor( "#CCEEEE" );
        } else {
            lab1.setFontColor( "" );
            lab2.setFontColor( "" );
            table.setFontColor( "" );
        }
    }
View Full Code Here

   
    public void font10Other() {
        XRadioButton radio1 = (XRadioButton)findComponent( obj, "radio1" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        if ( radio1.isSelected() ) {
            lab1.setFontSize( 10 );
            lab2.setFontSize( 10 );
            table.setFontSize( 10 );
        }
    }
View Full Code Here

   
    public void font16Other() {
        XRadioButton radio2 = (XRadioButton)findComponent( obj, "radio2" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        if ( radio2.isSelected() ) {
            lab1.setFontSize( 16 );
            lab2.setFontSize( 16 );
            table.setFontSize( 16 );
        }
    }
View Full Code Here

   
     public void font22Other() {
        XRadioButton radio3 = (XRadioButton)findComponent( obj, "radio3" );
        XLabel lab1 = (XLabel)findComponent( "lab1" );
        XLabel lab2 = (XLabel)findComponent( "lab2" );
        XTable table = (XTable)findComponent( "table" );
        if ( radio3.isSelected() ) {
            lab1.setFontSize( 22 );
            lab2.setFontSize( 22 );
            table.setFontSize( 22 );
        }
    }
View Full Code Here

            unordered.uRemoveElement( Integer.parseInt( edit6.getText() ) );           
        }
    }    
   
    public void addCell() {
        XTable table = (XTable)findComponent( obj, "table" );
        XEdit edit = (XEdit)findComponent( "edit" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XEdit edit3 = (XEdit)findComponent( "edit3" );
        if ( edit2.getText().equals( "" ) || edit2.getText().equals( "Row Index" ) || edit3.getText().equals( "" ) || edit3.getText().equals( "Column Index" ) ) {
            XMessageBox alert = new XMessageBox( "You must enter a row number and a column number.");
        } else {
            if ( table.getCell( Integer.parseInt( edit2.getText() ), Integer.parseInt( edit3.getText() ) ) == null ) {
                table.insertCell( Integer.parseInt( edit2.getText() ), Integer.parseInt( edit3.getText() ) );
                table.setValue( Integer.parseInt( edit2.getText() ), Integer.parseInt( edit3.getText() ), edit.getText() );
            } else {
                table.setValue( Integer.parseInt( edit2.getText() ), Integer.parseInt( edit3.getText() ), edit.getText() );
            }
        }
    }
View Full Code Here

        panel.add( image.getHTMLElement() );
    }
   
    public void addTable() {
        XPanel panel = (XPanel)findComponent( obj, "panel" );
        XTable table = new XTable();
        table.setValue( 1, 1, "Cell 1-1" );
        table.setValue( 1, 2, "Cell 1-2" );
        table.setValue( 1, 3, "Cell 1-3" );
        table.setValue( 1, 4, "Cell 1-4" );
        table.setValue( 2, 1, "Cell 2-1" );
        table.setValue( 2, 2, "Cell 2-2" );
        table.setValue( 2, 3, "Cell 2-3" );
        table.setValue( 2, 4, "Cell 2-4" );
        table.setValue( 3, 1, "Cell 3-1" );
        table.setValue( 3, 2, "Cell 3-2" );
        table.setValue( 3, 3, "Cell 3-3" );
        table.setValue( 3, 4, "Cell 3-4" );
        table.setBorder( 1 );
        panel.add( table.getHTMLElement() );
    }
View Full Code Here

TOP

Related Classes of net.xoetrope.html.XTable

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.