/*************************************** * {@inheritDoc} */ @Override public void setVisibleLength(int nColumns) { if (rValueBox instanceof TextBox) { ((TextBox) rValueBox).setVisibleLength(nColumns); } } }
public void setVisibleLength(int length) { textBox.setVisibleLength(length); }
@Override public ValueUI factory( boolean fReadOnly ) { UIValueText ui = new UIValueText( fReadOnly ); ui.tb.setVisibleLength( 40 ); return ui; } };
public void onKeyUp( KeyUpEvent event ) { int length = box.getText().length(); box.setVisibleLength( length > 0 ? length : 1 ); } } );
public void onKeyUp( KeyUpEvent event ) { int length = box.getText().length(); box.setVisibleLength( length > 0 ? length : 1 ); } } );
public void onKeyUp( KeyUpEvent event ) { int length = box.getText().length(); box.setVisibleLength( length > 0 ? length : 1 ); } } );
@Override public ValueUI factory( boolean fReadOnly ) { UIValueText ui = new UIValueText( fReadOnly ); ui.tb.setVisibleLength( 40 ); return ui; } };
protected static TextBox createTextBox(int visibleLength) { TextBox textbox = new TextBox(); textbox.setVisibleLength(visibleLength); return textbox; }
public void onKeyUp( KeyUpEvent event ) { box.setVisibleLength( box.getText().length() ); } } );
private void attachDisplayLengthHandler( final TextBox box ) { int length = box.getText().length(); box.setVisibleLength( length > 0 ? length : 1 ); box.addKeyUpHandler( new KeyUpHandler() { public void onKeyUp( KeyUpEvent event ) { int length = box.getText().length(); box.setVisibleLength( length > 0 ? length : 1 ); } } ); }
private void attachDisplayLengthHandler( final TextBox box ) { int length = box.getText().length(); box.setVisibleLength( length > 0 ? length : 1 ); box.addKeyUpHandler( new KeyUpHandler() { public void onKeyUp( KeyUpEvent event ) { int length = box.getText().length(); box.setVisibleLength( length > 0 ? length : 1 ); } } ); }
/*************************************** * @see TextControl#setColumns(int) */ @Override public void setColumns(int nColumns) { getDateWidget().getTextBox().setVisibleLength(nColumns); }
public TimeSelector() { hour.setVisibleLength( 2 ); minute.setVisibleLength( 2 ); // for text init clear(); HTMLStream stream = new HTMLStream(); stream.addInline( hour ).text( " : " ).addInline( minute ); initWidget( stream ); }
public TimeSelector() { hour.setVisibleLength( 2 ); minute.setVisibleLength( 2 ); // for text init clear(); HTMLStream stream = new HTMLStream(); stream.addInline( hour ).text( " : " ).addInline( minute ); initWidget( stream ); }
public EditorNumberPropertyWidget(String name, int value) { propertyName.setText(name); propertyValueBox = new TextBox(); propertyValueBox.setVisibleLength(3); propertyValueBox.setValue(String.valueOf(value)); propertyValueBox.addKeyUpHandler(this); valuePanel.add(propertyValueBox); }
public EditorStringPropertyWidget(String name, String value) { propertyName.setText(name); propertyValueBox = new TextBox(); propertyValueBox.setVisibleLength(5); propertyValueBox.setValue(value); propertyValueBox.addKeyUpHandler(this); valuePanel.add(propertyValueBox); }
public DateTimeBox() { super(new DateTimePicker(), null, DATE_FORMAT); ((DateTimePicker) getDatePicker()).setDateTimeBox(this); final TextBox textbox = getTextBox(); // Chrome 7.0.5xx versions, Safari 5.0.x and similar render a text box // that's too small for 19 characters (WTF?). So we ask for space for // an extra 2 characters. On Firefox the text box's width is computed // properly, so it simply appears slightly wider than necessary. textbox.setVisibleLength(19 + 2); textbox.setMaxLength(19); }
private void setTextBox( final RuleModel model, final Command refresh ) { box.setVisibleLength( 15 ); DirtyableHorizontalPane horiz = new DirtyableHorizontalPane(); horiz.add( box ); horiz.add( getAddButton( model, refresh, box ) ); addAttribute( Constants.INSTANCE.Metadata3(), horiz ); }
@Override protected void initWidgets() { factNameTextBox = new TextBox(); factNameTextBox.setVisibleLength(5); add(valueWidget); add(new SmallLabel(TestScenarioConstants.INSTANCE.FactName())); add(factNameTextBox); add(add); }
private void initializeTextFields() { emailText = new TextBox(); emailText.setStyleName( ELEMENT_STYLE ); emailText.setVisibleLength(50); emailText.setMaxLength(70); messageText = new TextArea(); messageText.setStyleName( ELEMENT_STYLE ); messageText.setVisibleLines(4); clearTextFields(); }