Package com.eclipsesource.tabris.ui.action

Examples of com.eclipsesource.tabris.ui.action.SearchAction.modified()


    @Override
    public void handleEvent( Event event ) {
      Text text = ( Text )event.widget;
      SearchAction action = ( SearchAction )getDescriptor().getAction();
      String query = text.getText();
      action.modified( query, proposalHandler );
      notifyListenersAboutModify( action, query );
    }

    private void notifyListenersAboutModify( Action action, String query ) {
      UIDescriptor uiDescriptor = getUI().getConfiguration().getAdapter( UIDescriptor.class );
View Full Code Here


    super.handleNotify( event, properties );
    SearchAction action = ( SearchAction )getDescriptor().getAction();
    if( event.equals( EVENT_SEARCH ) ) {
      action.search( properties.get( PROPERTY_QUERY ).asString() );
    } else if( event.equals( EVENT_MODIFY ) ) {
      action.modified( properties.get( PROPERTY_QUERY ).asString(), new ProposalHandlerImpl( getRemoteObject() ) );
    }
  }

  @Override
  public void handleCall( String method, JsonObject parameters ) {
View Full Code Here

    @Override
    public void handleEvent( Event event ) {
      Text text = ( Text )event.widget;
      SearchAction action = ( SearchAction )getDescriptor().getAction();
      action.modified( text.getText(), proposalHandler );
    }

  }

  private final class TextFocusListener implements FocusListener {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.