Package com.zaranux.os.client.filesystem.ui.action

Examples of com.zaranux.os.client.filesystem.ui.action.OpenFileSystemNode


import com.allen_sauer.gwt.log.client.Log;

public class FileNodeDoubleClickHandler implements DoubleClickHandler {

  public void onDoubleClick(DoubleClickEvent event) {
    new OpenFileSystemNode((FilesystemTreeGrid)event.getSource()).execute();
    /*ListGridRecord lgr = ((FilesystemTreeGrid)event.getSource()).getSelectedRecord();
    if(lgr == null){Log.error("Unexpected state; No node is selected!"); return;}
    if(! (lgr instanceof FileNode) ) return; // this handles only File node
   
    FileNode fn = (FileNode) lgr;
View Full Code Here


  public void onKeyDown(KeyDownEvent event) {
    String keyName = com.smartgwt.client.util.EventHandler.getKey();
    if(keyName.equals("Enter")){
     
      final FilesystemTreeGrid filesystemTreeGrid = (FilesystemTreeGrid)event.getSource();
      new OpenFileSystemNode(filesystemTreeGrid).execute();
    }

  }
View Full Code Here

    super("Open", "process.png");
  }
  @Override
  public void execute() {
    final FilesystemTreeGrid filesystemTreeGrid = menu.getFilesystemTreeGrid();
    new OpenFileSystemNode(filesystemTreeGrid).execute();
/*
    ListGridRecord[] nodes = filesystemTreeGrid.getSelection();
    Log.debug("Number of selected = " + nodes.length);
    // we do not need to delete one after another
    // we can just go through the list and call delete for selected nodes ..
View Full Code Here

TOP

Related Classes of com.zaranux.os.client.filesystem.ui.action.OpenFileSystemNode

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.