public class HelloWidgetWorld extends Composite { interface MyUiBinder extends UiBinder<Widget, HelloWidgetWorld> {} private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class); @UiField TextBox textBox; public HelloWidgetWorld() { // sets listBox initWidget(uiBinder.createAndBindUi(this)); } public void restoreVisible() { textBox.setVisible(true); } }
@Override public void setTextBoxVisible(final boolean visible) { textBox.setVisible(visible); }
@Override public void setReadOnly( boolean readOnly ) { newTags.setVisible( !readOnly ); addTags.setVisible( !readOnly ); }
@Override public void showGAVInputs() { hiddenArtifactIdField.setVisible(true); hiddenGroupIdField.setVisible(true); hiddenVersionIdField.setVisible(true); toggleFormStyleItem(groupIdItem, true); toggleFormStyleItem(artifactIdItem, true); toggleFormStyleItem(versionIdItem, true); }
private void toggleCommentTextBox() { commentTextBox.setVisible(!commentTextBox.isVisible()); }
private void hideTextBox(final TextBox textBox) { textBox.setText(null); textBox.setVisible(false); }
private void toggleCommentTextBox() { commentTextBox.setVisible(!commentTextBox.isVisible()); }
@PostConstruct public void setup() { commentTextBox.setText(""); commentTextBox.setVisible(false); commentTextBox.setPlaceholder(translationService.format(Constants.ToggleCommentView_EnterComment)); }
private void displayParameters() { if (parameterSets.size() == 0) { //All boxes are hidden if there are no parameter sets for (int i = 0; i < parameters.length; i++) { parameters[i].setVisible(false); } } else { //Display text boxes indexed less that the value of the current //parameter set, initialising the parameter value if necessary //and removing any excess parameter values for (int i = 0; i < parameters.length; i++) { String key = Integer.toString(i); boolean isVisible = i < parameterSets.get(visibleParameterSet); if (isVisible) { String value = hop.getParameter(key); if (value == null) { value = ""; hop.setParameter(key, value); } parameters[i].setText(value); parameters[i].setVisible(true); } else { hop.deleteParameter(key); parameters[i].setVisible(false); } } } }
private void displayParameters() { if (parameterSets.size() == 0) { //All boxes are hidden if there are no parameter sets for (int i = 0; i < parameters.length; i++) { parameters[i].setVisible(false); } } else { //Display text boxes indexed less that the value of the current //parameter set, initialising the parameter value if necessary //and removing any excess parameter values for (int i = 0; i < parameters.length; i++) { String key = Integer.toString(i); boolean isVisible = i < parameterSets.get(visibleParameterSet); if (isVisible) { String value = hop.getParameter(key); if (value == null) { value = ""; hop.setParameter(key, value); } parameters[i].setText(value); parameters[i].setVisible(true); } else { hop.deleteParameter(key); parameters[i].setVisible(false); } } } }
@PostConstruct public void setup() { commentTextBox.setText(""); commentTextBox.setVisible(false); commentTextBox.setPlaceholder(translationService.format(Constants.ToggleCommentView_EnterComment)); }
public void onChange( ChangeEvent event ) { String s = b.getValue( b.getSelectedIndex() ); if ( s.equals( "y" ) || s.equals( "n" ) ) { num.setVisible( false ); v.setExpectedFire( ( s.equals( "y" ) ) ? Boolean.TRUE : Boolean.FALSE ); v.setExpectedCount( null ); } else { num.setVisible( true ); v.setExpectedFire( null ); num.setText( "1" ); v.setExpectedCount( Integer.valueOf( 1 ) ); } } } );
private TextBox getHiddenField(String name, String value) { TextBox t = new TextBox(); t.setName(name); t.setText(value); t.setVisible(false); return t; } }
this.textBox = textBox; this.textBox.setPlaceholder(placeholder); textBox.setVisible(false); listBox.addValueChangeHandler(new ValueChangeHandler<String>() { @Override
/** * Updates the display of this row according to the state of the * corresponding {@link AssignmentRow}. */ private void initAssignmentControls() { deleteButton.setIcon(IconType.TRASH); if (getVariableType() == VariableType.OUTPUT) { constant.setVisible(false); } String cdt = getCustomDataType(); if (cdt != null && !cdt.isEmpty()) { customDataType.setValue(cdt); dataType.setValue(cdt); } else if (getDataType() != null) { dataType.setValue(getDataType()); } String con = getConstant(); if (con != null && !con.isEmpty()) { // processVar ListBox is set in setProcessVariables because its ListBoxValues are required constant.setValue(con); } else if (getProcessVar() != null) { processVar.setValue(getProcessVar()); } }
num.setVisible( false ); } else { b.setSelectedIndex( 2 );