Package com.cedarsoft.utils.springrcp.selection

Examples of com.cedarsoft.utils.springrcp.selection.SelectionManager


  /**
   * Initializes the selection change listeners
   */
  protected void initSelectionChanges() {
    //Update the selection
    SelectionManager selectionManager = SelectionManager.getInstance();

    /*
    * Update the selection model, when the selection state for this window changed
    */
    selectionManager.getWindowSelectionManager( getContext().getWindow() ).addSelectionListener( getBeanType(), new SelectionManager.SelectionListener<T>() {
      public void notifySelectionChanged( @NotNull Selection<T> selection ) {
        if ( changing ) {
          return;
        }
        changing = true;
View Full Code Here


   * update the selection manager
   *
   * @param selectedBean the newly selected bean for the manager
   */
  public void updateSelectionManager( @Nullable T selectedBean ) {
    SelectionManager selectionManager = SelectionManager.getInstance();
    selectionManager.getWindowSelectionManager( getContext().getWindow() ).setSelection( new DefaultSelection<T>( getBeanType(), selectedBean ) );
  }
View Full Code Here

TOP

Related Classes of com.cedarsoft.utils.springrcp.selection.SelectionManager

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.