To access the DOM of your page you can call Document.get() , which has a convenience method for finding an element by it's id Document.get().getElementById("test"); Of course, you should keep a reference to this element so as not to have to search through the DOM everytime you want to access it, because this is brutal. private Element testDiv = Document.get().getElementById("test"); ... testDiv.setInnerHTML("Some html"); ... testDiv.setInnerHTML("Some other html"); But once you have a reference to this element, calling setInnerHTML is the most efficient way to do what you want. I'm not sure why you think this is brutal. This is probably even more efficient than when you call a method on a widget to change it's content, like setText(" ...") on a TextBox for example, because these methods usually check the value passed as parameter for security. Security could also be a concern for you, depending on what the
smart gwt allow only numbers in textfield Aceptar solo numeros en un textfield en gwt smartclient very simple MASK PROPERTY TextItem phoneNumberField = new TextItem( "phoneNo" , "Phone No." ); phoneNumberField.setMask( "(###) ###-####" ); phoneNumberField.setHint( "<nobr>(###) ###-####</nobr>" ); final TextItem check4 = new TextItem(); check4.setName("4"); check4.setTitle(" Grupo"); check4.setTitleOrientation(TitleOrientation.TOP); check4.setWidth(100); check4.setValue(false); check4.setMask("###"); smart gwt allow only numbers in textfield Aceptar solo numeros en un textfield en gwt smartclient void com.smartgwt.client.widgets.form.fields.TextItem.setMask(String mask) Input mask used to filter text entry. Sample masks: Phone number: (###) ###-#### Social Security number: ###-##
layout - RECORRER CHILDRENS.txt. layout : get childrens for (int i = 0; i < e.getChildren().length; i++) { if (e.getChildren()[i].getID().contains("toolbar")) e.getChildren()[i].hide(); } recorrer childrens
Comments
Post a Comment