Package com.eclipsesource.tabris.internal.ui

Examples of com.eclipsesource.tabris.internal.ui.ActionDescriptor


    return null;
  }

  private ActionDescriptor createDescriptor() {
    Action action = InstanceCreator.createInstance( actionType );
    return new ActionDescriptor( actionId, action, title, image, visible, enabled );
  }
View Full Code Here


   * @since 1.0
   */
  public UIConfiguration addActionConfiguration( ActionConfiguration configuration ) {
    whenNull( configuration ).throwIllegalArgument( "Action Configuration must not be null" );
    actionConfigurations.add( configuration );
    ActionDescriptor descriptor = configuration.getAdapter( ActionDescriptor.class );
    uiDescriptor.add( descriptor );
    UpdateUtil.fireUiUpdate( this );
    return this;
  }
View Full Code Here

    return null;
  }

  private ActionDescriptor createDescriptor() {
    Action action = InstanceCreator.createInstance( actionType );
    return new ActionDescriptor( actionId, action )
               .setTitle( title )
               .setImage( image )
               .setVisible( visible )
               .setEnabled( enabled )
               .setPlacementPrority( placementPriority );
View Full Code Here

    proposalsMenu.setLocation( point );
    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

TOP

Related Classes of com.eclipsesource.tabris.internal.ui.ActionDescriptor

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.