Package net.xoetrope.html

Examples of net.xoetrope.html.XComboBox


        }
    }
   
    public void enableCombo() {
        XCheckbox check1 = (XCheckbox)findComponent( obj, "check1" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( check1.isSelected() ) {
            combo.setEnabled( false );
        } else {
            combo.setEnabled( true );
        }
    }
View Full Code Here


        }
    }
   
    public void visibleCombo() {
        XCheckbox check2 = (XCheckbox)findComponent( obj, "check2" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( check2.isSelected() ) {
            combo.setVisible( false );
        } else {
            combo.setVisible( true );
        }
    }
View Full Code Here

        }
    }
   
    public void changeColorCombo() {
        XCheckbox check3 = (XCheckbox)findComponent( obj, "check3" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( check3.isSelected() ) {
            combo.setBackgroundColor( "#FF3333" );
        } else {
            combo.setBackgroundColor( "" );
        }
    }
View Full Code Here

        }
    }
   
    public void changeFontColorCombo() {
        XCheckbox check4 = (XCheckbox)findComponent( obj, "check4" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( check4.isSelected() ) {
            combo.setFontColor( "#CCEEEE" );
        } else {
            combo.setFontColor( "" );
        }
    }
View Full Code Here

        }
    }
   
    public void font10Combo() {
        XRadioButton radio1 = (XRadioButton)findComponent( obj, "radio1" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( radio1.isSelected() ) {
            combo.setFontSize( 10 );
        }
    }
View Full Code Here

        }
    }
   
    public void font16Combo() {
        XRadioButton radio2 = (XRadioButton)findComponent( obj, "radio2" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( radio2.isSelected() ) {
            combo.setFontSize( 16 );
        }
    }
View Full Code Here

        }
    }
   
    public void font22Combo() {
        XRadioButton radio3 = (XRadioButton)findComponent( obj, "radio3" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( radio3.isSelected() ) {
            combo.setFontSize( 22 );
        }
    }
View Full Code Here

        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( "combo" );
        combo.addElement( edit.getText() );
    }
   
    public void removeItemCombo() {
        XComboBox combo = (XComboBox)findComponent( obj, "combo" );
        combo.deleteElement( combo.getSelectedIndex() + 1 );
    }
View Full Code Here

        panel.add( text.getHTMLElement() );
    }
   
    public void addCombo() {
        XPanel panel = (XPanel)findComponent( obj, "panel" );
        XComboBox combo = new XComboBox();
        combo.addElement( "Element 1" );
        combo.addElement( "Element 2" );
        combo.addElement( "Element 3" );
        panel.add( combo.getHTMLElement() );
    }
View Full Code Here

TOP

Related Classes of net.xoetrope.html.XComboBox

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.