Example usage for javax.swing.plaf ActionMapUIResource ActionMapUIResource

List of usage examples for javax.swing.plaf ActionMapUIResource ActionMapUIResource

Introduction

In this page you can find the example usage for javax.swing.plaf ActionMapUIResource ActionMapUIResource.

Prototype

public ActionMapUIResource() 

Source Link

Document

Constructs an ActionMapUIResource .

Usage

From source file:com.googlecode.vfsjfilechooser2.plaf.basic.BasicVFSFileChooserUI.java

protected ActionMap createActionMap() {
    ActionMap map = new ActionMapUIResource();

    Action refreshAction = new AbstractVFSUIAction(VFSFilePane.ACTION_REFRESH) {
        public void actionPerformed(ActionEvent evt) {
            getFileChooser().rescanCurrentDirectory();
        }/*from  w  w w  .j a  v  a  2 s  .  co  m*/
    };

    map.put(VFSFilePane.ACTION_APPROVE_SELECTION, getApproveSelectionAction());
    map.put(VFSFilePane.ACTION_CANCEL, getCancelSelectionAction());
    map.put(VFSFilePane.ACTION_REFRESH, refreshAction);
    map.put(VFSFilePane.ACTION_CHANGE_TO_PARENT_DIRECTORY, getChangeToParentDirectoryAction());

    return map;
}

From source file:com.googlecode.vfsjfilechooser2.plaf.metal.MetalVFSFileChooserUI.java

@Override
protected ActionMap createActionMap() {
    ActionMap map = new ActionMapUIResource();
    VFSFilePane.addActionsToMap(map, filePane.getActions());

    return map;// w w  w. ja  v  a2  s .  c  o  m
}