Package net.xoetrope.html

Examples of net.xoetrope.html.XEdit


        }
    }
   
    public void removeItemOList() {               
        XList ordered = (XList)findComponent( obj, "ordered" )
        XEdit edit3 = (XEdit)findComponent( "edit3" );
        if ( edit3.getText().equals( "" ) || edit3.getText().equals( "Item Index" ) ) {
            ordered.oRemoveElement();
        } else {
            ordered.oRemoveElement( Integer.parseInt( edit3.getText() ) );           
        }
    }
View Full Code Here


            ordered.oRemoveElement( Integer.parseInt( edit3.getText() ) );           
        }
    }
   
    public void addItemUList() {       
        XEdit edit4 = (XEdit)findComponent( obj, "edit4" );
        XEdit edit5 = (XEdit)findComponent( "edit5" );
        XList unordered = (XList)findComponent( "unordered" );
        if ( edit5.getText().equals( "" ) || edit5.getText().equals( "Item Index" ) ) {
            unordered.uAddElement( edit4.getText() );
        } else {
            unordered.uInsertElement( edit4.getText(), Integer.parseInt( edit5.getText() ) );
        }
    }
View Full Code Here

        }
    }
   
    public void removeItemUList() {               
        XList unordered = (XList)findComponent( obj, "unordered" )
        XEdit edit6 = (XEdit)findComponent( "edit6" );
        if ( edit6.getText().equals( "" ) || edit6.getText().equals( "Item Index" ) ) {
            unordered.uRemoveElement();
        } else {
            unordered.uRemoveElement( Integer.parseInt( edit6.getText() ) );           
        }
    }    
View Full Code Here

        }
    }    
   
    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( check_txt.getHTMLElement() );
    }
   
    public void addEdit() {
        XPanel panel = (XPanel)findComponent( obj, "panel" );
        XEdit edit = new XEdit( "New Edit", "edit" );
        panel.add( edit.getHTMLElement() );
    }
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.