Tabnine Logo
TextBoxFactory.getTextBox
Code IndexAdd Tabnine to your IDE (free)

How to use
getTextBox
method
in
org.kie.guvnor.commons.ui.client.widget.TextBoxFactory

Best Java code snippets using org.kie.guvnor.commons.ui.client.widget.TextBoxFactory.getTextBox (Showing top 6 results out of 315)

origin: org.kie.guvnor/guvnor-test-scenario-editor-client

private TextBox textBoxEditor(final ValueChangeHandler<String> valueChangeHandler,
               final String dataType,
               String fieldName,
               String initialValue) {
  final TextBox tb = TextBoxFactory.getTextBox(dataType);
  tb.setText(initialValue);
  tb.setTitle(TestScenarioConstants.INSTANCE.ValueFor0(fieldName));
  tb.addValueChangeHandler(valueChangeHandler);
  return tb;
}
origin: org.kie.guvnor/guvnor-test-scenario-editor-client

private static TextBox editableTextBox(final ValueChanged changed,
                    final String dataType,
                    String fieldName,
                    String initialValue) {
  final TextBox tb = TextBoxFactory.getTextBox(dataType);
  tb.setText( initialValue );
  String m = TestScenarioConstants.INSTANCE.ValueFor0( fieldName );
  tb.setTitle( m );
  tb.addChangeHandler( new ChangeHandler() {
    public void onChange(ChangeEvent event) {
      changed.valueChanged( tb.getText() );
    }
  } );
  return tb;
}
origin: org.kie.guvnor/guvnor-test-scenario-editor-client

private TextBox boundTextBox(final CallFieldValue c) {
  final TextBox box = TextBoxFactory.getTextBox(methodParameter.type);
  box.setStyleName( "constraint-value-Editor" );
  if ( c.value == null ) {
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

private TextBox boundTextBox( final ActionFieldValue c ) {
  final TextBox box = TextBoxFactory.getTextBox( methodParameter.getType() );
  box.setStyleName( "constraint-value-Editor" );
  if ( c.getValue() == null ) {
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

private Widget literalEditor() {
  if ( this.readOnly ) {
    return new SmallLabel( assertValue() );
  }
  //Date picker
  if ( DataType.TYPE_DATE.equals( value.getType() ) ) {
    final PopupDatePicker dp = new PopupDatePicker( false );
    // Wire up update handler
    dp.addValueChangeHandler( new ValueChangeHandler<Date>() {
      public void onValueChange( ValueChangeEvent<Date> event ) {
        value.setValue( PopupDatePicker.convertToString( event ) );
      }
    } );
    dp.setValue( assertValue() );
    return dp;
  }
  //Default editor for all other literals
  final TextBox box = TextBoxFactory.getTextBox( value.getType() );
  box.setStyleName( "constraint-value-Editor" );
  box.addChangeHandler( new ChangeHandler() {
    public void onChange( ChangeEvent event ) {
      value.setValue( box.getText() );
      executeOnChangeCommand();
      makeDirty();
    }
  } );
  box.setText( assertValue() );
  attachDisplayLengthHandler( box );
  return box;
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  final TextBox box = TextBoxFactory.getTextBox( DataType.TYPE_STRING );
  box.setStyleName( "constraint-value-Editor" );
  box.addChangeHandler( new ChangeHandler() {
final TextBox box = TextBoxFactory.getTextBox( fieldType );
box.setStyleName( "constraint-value-Editor" );
box.addChangeHandler( new ChangeHandler() {
org.kie.guvnor.commons.ui.client.widgetTextBoxFactorygetTextBox

Javadoc

Get a TextBox relevant to the specified data-type

Popular methods of TextBoxFactory

    Popular in Java

    • Reading from database using SQL prepared statement
    • addToBackStack (FragmentTransaction)
    • setScale (BigDecimal)
    • onCreateOptionsMenu (Activity)
    • SocketTimeoutException (java.net)
      This exception is thrown when a timeout expired on a socket read or accept operation.
    • MessageDigest (java.security)
      Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
    • Hashtable (java.util)
      A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • Get (org.apache.hadoop.hbase.client)
      Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
    • Loader (org.hibernate.loader)
      Abstract superclass of object loading (and querying) strategies. This class implements useful common
    • From CI to AI: The AI layer in your organization
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now