Examples of SearchAction


Examples of biz.pressler.myfade.actions.SearchAction

       
    this.add(new MoveBackAction());
    this.add(new MoveForwardAction());
    this.addSeparator();
    this.add(new RefreshAction());
    this.add(new SearchAction());
    this.add(new FTPAction());
  }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.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 ) ) {
      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

Examples of com.eclipsesource.tabris.tracking.internal.piwik.model.action.SearchAction

    return new Action( createHost( event ) + "/action/" + actionId );
  }

  private Action createSearchAction( TrackingEvent event ) {
    String actionId = ( String )event.getDetail();
    return new SearchAction( createHost( event ) + "/action/search/" + actionId, event.getInfo().getSearchQuery() );
  }
View Full Code Here

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

    when( actionDescriptor.getAction() ).thenReturn( action );
  }

  @Test
  public void testRegistersItselfAsChangeListener() {
    SearchAction action = spy( new TestSearchAction() );
    when( actionDescriptor.getAction() ).thenReturn( action );

    RemoteSearchAction renderer = new RemoteSearchAction( ui, uiRenderer, actionDescriptor );

    PropertyChangeNotifier adapter = action.getAdapter( PropertyChangeNotifier.class );
    assertSame( adapter.getPropertyChangeHandler(), renderer );
  }
View Full Code Here

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

    assertSame( adapter.getPropertyChangeHandler(), renderer );
  }

  @Test
  public void testCallsExecuteOnSelectionEvent() {
    SearchAction action = spy( new TestSearchAction() );
    when( actionDescriptor.getAction() ).thenReturn( action );
    new RemoteSearchAction( ui, uiRenderer, actionDescriptor );

    environment.dispatchNotify( "Selection", new JsonObject() );
View Full Code Here

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

    verify( action ).execute( ui );
  }

  @Test
  public void testCallsSearchOnSearchEvent() {
    SearchAction action = spy( new TestSearchAction() );
    when( actionDescriptor.getAction() ).thenReturn( action );
    new RemoteSearchAction( ui, uiRenderer, actionDescriptor );
    JsonObject properties = new JsonObject();
    properties.add( "query", "bar" );
View Full Code Here

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

  @Test
  public void testNotifiesListenerOnSearchEvent() {
    SearchActionListener listener = mock( SearchActionListener.class );
    mockUI( listener );
    SearchAction action = spy( new TestSearchAction() );
    when( actionDescriptor.getAction() ).thenReturn( action );
    new RemoteSearchAction( ui, uiRenderer, actionDescriptor );
    JsonObject properties = new JsonObject();
    properties.add( "query", "bar" );
View Full Code Here

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

    verify( listener ).searched( ui, action, "bar" );
  }

  @Test
  public void testCallsGetProposalsOnModifyEvent() {
    SearchAction action = spy( new TestSearchAction() );
    when( actionDescriptor.getAction() ).thenReturn( action );
    new RemoteSearchAction( ui, uiRenderer, actionDescriptor );
    JsonObject properties = new JsonObject();
    properties.add( "query", "bar" );
View Full Code Here

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

  @Test
  public void testNotifiesListenerOnModifyEvent() {
    SearchActionListener listener = mock( SearchActionListener.class );
    mockUI( listener );
    SearchAction action = spy( new TestSearchAction() );
    when( actionDescriptor.getAction() ).thenReturn( action );
    new RemoteSearchAction( ui, uiRenderer, actionDescriptor );
    JsonObject properties = new JsonObject();
    properties.add( "query", "bar" );
View Full Code Here

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

    verify( listener ).modified( ui, action, "bar" );
  }

  @Test
  public void testSendsProposals() {
    SearchAction action = spy( new TestSearchAction() );
    when( actionDescriptor.getAction() ).thenReturn( action );
    new RemoteSearchAction( ui, uiRenderer, actionDescriptor );
    List<Proposal> proposals = new ArrayList<Proposal>();
    proposals.add( new Proposal( "foo" ) );
    proposals.add( new Proposal( "bar" ) );
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.