Package com.eclipsesource.tabris.widgets.enhancement

Examples of com.eclipsesource.tabris.widgets.enhancement.TextReplacementData


  private void createLabelTextReplacement( Composite parent, String title ) {
    Label titleLabel = new Label( parent, SWT.NONE );
    titleLabel.setText( title );
    Text text = new Text( parent, SWT.BORDER | SWT.MULTI );
    text.setLayoutData( GridDataFactory.fillDefaults().align( SWT.FILL, SWT.TOP ).hint( SWT.DEFAULT, 200 ).grab( true, false ).create() );
    TextReplacementData data = new TextReplacementData();
    data.put( "yolo", "You only live once" );
    data.put( "hodor", "hodor hodor hodor hodor" );
    data.put( "rap", "Remote Application Platform" );
    data.put( "tabris", "Tabris Rocks!" );
    Widgets.onText( text ).setTextReplacement( data );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.widgets.enhancement.TextReplacementData

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.