jaugment2.helpers
Class CommandMap

java.lang.Object
  |
  +--javax.activation.CommandMap
        |
        +--jaugment2.helpers.CommandMap

public class CommandMap
extends javax.activation.CommandMap
implements java.io.Serializable

a CommandMap using CommandInfos based on MimeDataHandlerEntrys first and then the system-default-CommandMap

See Also:
Serialized Form

Field Summary
private static boolean added
           
private static java.util.LinkedList commands
          A LinkedList of CommandInfo-objects
protected  javax.activation.CommandMap parent
           
 
Fields inherited from class javax.activation.CommandMap
defaultCommandMap
 
Constructor Summary
CommandMap()
           
CommandMap(Directory.ActionsEntry[] entries)
           
CommandMap(TextEditorProxyIF.ActionsEntry[] entries)
           
 
Method Summary
static void addCommand(MimeDataHandlerEntry es, java.lang.Object proxy)
           
private static boolean containsCommand(MimeDataHandlerEntry mdhe)
           
 javax.activation.DataContentHandler createDataContentHandler(java.lang.String mimetype)
           
 javax.activation.CommandInfo[] getAllCommands(java.lang.String mimetype)
           
 javax.activation.CommandInfo getCommand(java.lang.String mimetype, java.lang.String cmdname)
           
static javax.activation.CommandMap getDefaultCommandMap()
           
 javax.activation.CommandInfo[] getPreferredCommands(java.lang.String mimetype)
           
static void setDefaultCommandMap(CommandMap mimetype)
           
 
Methods inherited from class javax.activation.CommandMap
, setDefaultCommandMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

added

private static boolean added

commands

private static java.util.LinkedList commands
A LinkedList of CommandInfo-objects

parent

protected javax.activation.CommandMap parent
Constructor Detail

CommandMap

public CommandMap()

CommandMap

public CommandMap(TextEditorProxyIF.ActionsEntry[] entries)

CommandMap

public CommandMap(Directory.ActionsEntry[] entries)
Method Detail

addCommand

public static void addCommand(MimeDataHandlerEntry es,
                              java.lang.Object proxy)

containsCommand

private static boolean containsCommand(MimeDataHandlerEntry mdhe)

getDefaultCommandMap

public static javax.activation.CommandMap getDefaultCommandMap()

setDefaultCommandMap

public static void setDefaultCommandMap(CommandMap mimetype)

getPreferredCommands

public javax.activation.CommandInfo[] getPreferredCommands(java.lang.String mimetype)
Overrides:
getPreferredCommands in class javax.activation.CommandMap

getAllCommands

public javax.activation.CommandInfo[] getAllCommands(java.lang.String mimetype)
Overrides:
getAllCommands in class javax.activation.CommandMap

getCommand

public javax.activation.CommandInfo getCommand(java.lang.String mimetype,
                                               java.lang.String cmdname)
Overrides:
getCommand in class javax.activation.CommandMap

createDataContentHandler

public javax.activation.DataContentHandler createDataContentHandler(java.lang.String mimetype)
Overrides:
createDataContentHandler in class javax.activation.CommandMap