Package net.xoetrope.html

Examples of net.xoetrope.html.XEdit


        }
    }
   
    public void enableEdit() {
        XCheckbox check1 = (XCheckbox)findComponent( obj, "check1" );
        XEdit edit1 = (XEdit)findComponent( "edit1" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XPassword pass = (XPassword)findComponent( "pass" );
        XTextArea text1 = (XTextArea)findComponent( "text1" );
        XTextArea text2 = (XTextArea)findComponent( "text2" );
        if ( check1.isSelected() ) {
            edit1.setEnabled( false );
            edit2.setEnabled( false );
            pass.setEnabled( false );
            text1.setEnabled( false );
            text2.setEnabled( false );
        } else {
            edit1.setEnabled( true );
            edit2.setEnabled( true );
            pass.setEnabled( true );
            text1.setEnabled( true );
            text2.setEnabled( true );
        }
    }
View Full Code Here


        }
    }
   
    public void visibleEdit() {
        XCheckbox check2 = (XCheckbox)findComponent( obj, "check2" );
        XEdit edit1 = (XEdit)findComponent( "edit1" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XPassword pass = (XPassword)findComponent( "pass" );
        XTextArea text1 = (XTextArea)findComponent( "text1" );
        XTextArea text2 = (XTextArea)findComponent( "text2" );
        if ( check2.isSelected() ) {
            edit1.setVisible( false );
            edit2.setVisible( false );
            pass.setVisible( false );
            text1.setVisible( false );
            text2.setVisible( false );
        } else {
            edit1.setVisible( true );
            edit2.setVisible( true );
            pass.setVisible( true );
            text1.setVisible( true );
            text2.setVisible( true );
        }
    }
View Full Code Here

        }
    }
   
    public void changeColorEdit() {
        XCheckbox check3 = (XCheckbox)findComponent( obj, "check3" );
        XEdit edit1 = (XEdit)findComponent( "edit1" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XPassword pass = (XPassword)findComponent( "pass" );
        XTextArea text1 = (XTextArea)findComponent( "text1" );
        XTextArea text2 = (XTextArea)findComponent( "text2" );
        if ( check3.isSelected() ) {
            edit1.setBackgroundColor( "#FF3333" );
            edit2.setBackgroundColor( "#FF3333" );
            pass.setBackgroundColor( "#FF3333" );
            text1.setBackgroundColor( "#FF3333" );
            text2.setBackgroundColor( "#FF3333" );
        } else {
            edit1.setBackgroundColor( "" );
            edit2.setBackgroundColor( "" );
            pass.setBackgroundColor( "" );
            text1.setBackgroundColor( "" );
            text2.setBackgroundColor( "" );
        }
    }
View Full Code Here

        }
    }
   
    public void changeFontColorEdit() {
        XCheckbox check4 = (XCheckbox)findComponent( obj, "check4" );
        XEdit edit1 = (XEdit)findComponent( "edit1" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XPassword pass = (XPassword)findComponent( "pass" );
        XTextArea text1 = (XTextArea)findComponent( "text1" );
        XTextArea text2 = (XTextArea)findComponent( "text2" );
        if ( check4.isSelected() ) {
            edit1.setFontColor( "#CCEEEE" );
            edit2.setFontColor( "#CCEEEE" );
            pass.setFontColor( "#CCEEEE" );
            text1.setFontColor( "#CCEEEE" );
            text2.setFontColor( "#CCEEEE" );
        } else {
            edit1.setFontColor( "" );
            edit2.setFontColor( "" );
            pass.setFontColor( "" );
            text1.setFontColor( "" );
            text2.setFontColor( "" );
        }
    }
View Full Code Here

        }
    }
   
    public void font10Edit() {
        XRadioButton radio1 = (XRadioButton)findComponent( obj, "radio1" );
        XEdit edit1 = (XEdit)findComponent( "edit1" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XPassword pass = (XPassword)findComponent( "pass" );
        XTextArea text1 = (XTextArea)findComponent( "text1" );
        XTextArea text2 = (XTextArea)findComponent( "text2" );
        if ( radio1.isSelected() ) {
            edit1.setFontSize( 10 );
            edit2.setFontSize( 10 );
            pass.setFontSize( 10 );
            text1.setFontSize( 10 );
            text2.setFontSize( 10 );
        }
    }
View Full Code Here

        }
    }
   
    public void font16Edit() {
        XRadioButton radio2 = (XRadioButton)findComponent( obj, "radio2" );
        XEdit edit1 = (XEdit)findComponent( "edit1" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XPassword pass = (XPassword)findComponent( "pass" );
        XTextArea text1 = (XTextArea)findComponent( "text1" );
        XTextArea text2 = (XTextArea)findComponent( "text2" );
        if ( radio2.isSelected() ) {
            edit1.setFontSize( 16 );
            edit2.setFontSize( 16 );
            pass.setFontSize( 16 );
            text1.setFontSize( 16 );
            text2.setFontSize( 16 );
        }
    }
View Full Code Here

        }
    }
   
    public void font22Edit() {
        XRadioButton radio3 = (XRadioButton)findComponent( obj, "radio3" );
        XEdit edit1 = (XEdit)findComponent( "edit1" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XPassword pass = (XPassword)findComponent( "pass" );
        XTextArea text1 = (XTextArea)findComponent( "text1" );
        XTextArea text2 = (XTextArea)findComponent( "text2" );
        if ( radio3.isSelected() ) {
            edit1.setFontSize( 22 );
            edit2.setFontSize( 22 );
            pass.setFontSize( 22 );
            text1.setFontSize( 22 );
            text2.setFontSize( 22 );
        }
    }
View Full Code Here

            table.setFontSize( 22 );
        }
    }
   
    public void transmitEdit() {
        XEdit edit1 = (XEdit)findComponent( obj, "edit1" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        edit2.setText( edit1.getText() );
    }
View Full Code Here

        XLabel lab2 = (XLabel)findComponent( "lab2" );
        lab2.setText( lab1.getText() );
    }
   
    public void addItemCombo() {
        XEdit edit = (XEdit)findComponent( obj, "edit" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        combo.addElement( edit.getText() );
    }
View Full Code Here

        XComboBox combo = (XComboBox)findComponent( obj, "combo" );
        combo.deleteElement( combo.getSelectedIndex() + 1 );
    }
   
    public void addItemOList() {      
        XEdit edit = (XEdit)findComponent( obj, "edit" );
        XEdit edit2 = (XEdit)findComponent( "edit2" );
        XList ordered = (XList)findComponent( "ordered" );
        if ( edit2.getText().equals( "" ) || edit2.getText().equals( "Item Index" ) ) {
            ordered.oAddElement( edit.getText() );
        } else {
            ordered.oInsertElement( edit.getText(), Integer.parseInt( edit2.getText() ) );
        }
    }
View Full Code Here

TOP

Related Classes of net.xoetrope.html.XEdit

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.