API Overview
API Index
Package Overview
Direct link to this page
JDK 1.6
javax.swing.plaf.
InputMapUIResource
View Source
Author(s)
Scott Violet
Since
1.3
Version
1.8 04/07/06
Serial
Hierarchy
Object
InputMap
InputMapUIResource
Implements
UIResource
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
class InputMapUIResource
A subclass of javax.swing.InputMap that implements UIResource.
A subclass of javax.swing.InputMap that implements UIResource.
UI classes which provide a InputMap should use this class.
See also:
Constructors
public
InputMapUIResource
()
Methods
Hide/Show inherited methods
public
KeyStroke
allKeys
()
[Inherited From
InputMap
]
Returns an array of the
KeyStroke
s defined in this
InputMap
and its parent.
Returns an array of the
KeyStroke
s defined in this
InputMap
and its parent. This differs from
keys()
in that
this method includes the keys defined in the parent.
public
void
clear
()
[Inherited From
InputMap
]
Removes all the mappings from this
InputMap
.
public
Object
get
(
KeyStroke
keyStroke)
[Inherited From
InputMap
]
Returns the binding for
keyStroke
, messaging the parent
InputMap
if the binding is not locally defined.
public
InputMap
getParent
()
[Inherited From
InputMap
]
Gets this
InputMap
's parent.
Gets this
InputMap
's parent.
Returns:
map the
InputMap
that is the parent of this one, or null if this
InputMap
has no parent
public
KeyStroke
keys
()
[Inherited From
InputMap
]
Returns the
KeyStroke
s that are bound in this
InputMap
.
public
void
put
(
KeyStroke
keyStroke,
Object
actionMapKey)
[Inherited From
InputMap
]
Adds a binding for
keyStroke
to
actionMapKey
.
Adds a binding for
keyStroke
to
actionMapKey
.
If
actionMapKey
is null, this removes the current binding
for
keyStroke
.
public
void
remove
(
KeyStroke
key)
[Inherited From
InputMap
]
Removes the binding for
key
from this
InputMap
.
public
void
setParent
(
InputMap
map)
[Inherited From
InputMap
]
Sets this
InputMap
's parent.
Sets this
InputMap
's parent.
Parameters:
-
map
- the
InputMap
that is the parent of this one
public
int
size
()
[Inherited From
InputMap
]
Returns the number of
KeyStroke
bindings.
Fields
Hide/Show inherited fields
Nested Classes
Generated By:
JavaOnTracks Doclet
0.1.4 ©Thibaut Colar