edu.umd.cfar.lamp.apploader
Class HOTKEYS

java.lang.Object
  extended byedu.umd.cfar.lamp.apploader.HOTKEYS

public class HOTKEYS
extends java.lang.Object

Adds hotkeys to components in an apploader interface. For information, see the namespace document.

Author:
davidm

Field Summary
static com.hp.hpl.jena.rdf.model.Property ancestorInputAction
          The action occurs when any of the swing ancestors of bean this is bound to see the hotkey stroke.
static com.hp.hpl.jena.rdf.model.Resource DuringDispatch
          A marker for the when property, indicating that the event should be processed before the focused bean has its go.
static com.hp.hpl.jena.rdf.model.Resource DuringPost
          A marker for the when property, indicating that the event should be processed after the focused bean has its go.
static com.hp.hpl.jena.rdf.model.Property hasAction
          An action that will be invoked when the binding takes effect.
static com.hp.hpl.jena.rdf.model.Property hotkey
          A hot key for the action.
static com.hp.hpl.jena.rdf.model.Resource HotkeyBinding
          A class of OWL objects that describe a binding from a keypress or stroke to some kind of action.
static com.hp.hpl.jena.rdf.model.Property[] INPUT_TYPES
          The three input types; this list corresponds to the three input map conditions for a JComponent.
static com.hp.hpl.jena.rdf.model.Property inputAction
          Has an input action.
static com.hp.hpl.jena.rdf.model.Property localInputAction
          Has a local input action.
protected static java.lang.String uri
           
static com.hp.hpl.jena.rdf.model.Property when
          When, either before or after dispatch, the binding should be tried.
static com.hp.hpl.jena.rdf.model.Property windowInputAction
          The action will happen when the window containing the bound bean has seen the stroke.
 
Constructor Summary
HOTKEYS()
           
 
Method Summary
static int getTypeIDForInputActionPredicate(com.hp.hpl.jena.rdf.model.Property p)
          Gets the int version of the type id, e.g.
static java.lang.String getURI()
          Returns the URI for this schema, http://viper-toolkit.sourceforge.net/owl/apploader/hotkeys#.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

protected static final java.lang.String uri
See Also:
Constant Field Values

HotkeyBinding

public static final com.hp.hpl.jena.rdf.model.Resource HotkeyBinding
A class of OWL objects that describe a binding from a keypress or stroke to some kind of action.


inputAction

public static final com.hp.hpl.jena.rdf.model.Property inputAction
Has an input action. This property isn't used directly; instead, its children are used. The key binding architecture mirror's java's; for more detail, see How to Use Java's Key Bindings.


localInputAction

public static final com.hp.hpl.jena.rdf.model.Property localInputAction
Has a local input action. This is analogous to JComponent.WHEN_FOCUSED. This means that the hot key will only be used when the bean has focus, and the event hasn't been swallowed by another binding.


ancestorInputAction

public static final com.hp.hpl.jena.rdf.model.Property ancestorInputAction
The action occurs when any of the swing ancestors of bean this is bound to see the hotkey stroke.


windowInputAction

public static final com.hp.hpl.jena.rdf.model.Property windowInputAction
The action will happen when the window containing the bound bean has seen the stroke.


hasAction

public static final com.hp.hpl.jena.rdf.model.Property hasAction
An action that will be invoked when the binding takes effect.


hotkey

public static final com.hp.hpl.jena.rdf.model.Property hotkey
A hot key for the action.


when

public static final com.hp.hpl.jena.rdf.model.Property when
When, either before or after dispatch, the binding should be tried. This is very important on things like tables or text input beans, which usually suck up all key events.


DuringDispatch

public static final com.hp.hpl.jena.rdf.model.Resource DuringDispatch
A marker for the when property, indicating that the event should be processed before the focused bean has its go.


DuringPost

public static final com.hp.hpl.jena.rdf.model.Resource DuringPost
A marker for the when property, indicating that the event should be processed after the focused bean has its go.


INPUT_TYPES

public static final com.hp.hpl.jena.rdf.model.Property[] INPUT_TYPES
The three input types; this list corresponds to the three input map conditions for a JComponent.

Constructor Detail

HOTKEYS

public HOTKEYS()
Method Detail

getURI

public static java.lang.String getURI()
Returns the URI for this schema, http://viper-toolkit.sourceforge.net/owl/apploader/hotkeys#.

Returns:
the URI for this schema

getTypeIDForInputActionPredicate

public static int getTypeIDForInputActionPredicate(com.hp.hpl.jena.rdf.model.Property p)
Gets the int version of the type id, e.g. localInputAction of windowInputAction.

Parameters:
p - the action to check
Returns:
the index of the type into the INPUT_TYPES array. -1 iff not a known type of input action binding.