Package com.eclipsesource.tabris.ui.action

Examples of com.eclipsesource.tabris.ui.action.SearchAction


  }

  @Override
  public void handleNotify( String event, JsonObject properties ) {
    super.handleNotify( event, properties );
    SearchAction action = ( SearchAction )getDescriptor().getAction();
    if( event.equals( EVENT_SEARCH ) ) {
      handleSearch( properties, action );
    } else if( event.equals( EVENT_MODIFY ) ) {
      handleModify( properties, action );
    }
View Full Code Here


    proposalsMenu.setVisible( true );
  }

  private void doSearch( String query ) {
    ActionDescriptor descriptor = getDescriptor();
    SearchAction action = ( SearchAction )descriptor.getAction();
    action.search( query );
    activateText( false );
    text.setText( "" );
    clearMenuItems();
  }
View Full Code Here

    }

    @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 );
    }
View Full Code Here

  }

  @Override
  public void handleNotify( String event, JsonObject properties ) {
    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() ) );
    }
  }
View Full Code Here

    proposalsMenu.setVisible( true );
  }

  private void doSearch( String query ) {
    ActionDescriptor descriptor = getDescriptor();
    SearchAction action = ( SearchAction )descriptor.getAction();
    action.search( query );
    activateText( false );
    text.setText( "" );
    clearMenuItems();
  }
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 );
    }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.ui.action.SearchAction

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.