to top
Datalogic APIs
public static class

CompositionMapping.Builder

extends Object
java.lang.Object
   ↳ com.datalogic.device.input.CompositionMapping.Builder

Class Overview

Builder class of CompositionMapping

Summary

Public Constructors
Builder()
Public Methods
CompositionMapping.Builder addDelay(long delay)
Adds a delay to the sequence
CompositionMapping.Builder addEvent(MappingObject action)
Adds a generic event representing by an MappingObject.
CompositionMapping.Builder addKey(KeyCodeEntry key)
Adds an action that will press and release a key.
CompositionMapping.Builder addKeyAction(KeyCodeEntry key, int action)
Adds a key action.
CompositionMapping build()
Builds the configured CompositionMapping object
CompositionMapping.Builder disableAlt()
Disables Alt meta key.
CompositionMapping.Builder disableCtrl()
Disables Ctrl meta key.
CompositionMapping.Builder disableShift()
Disables Shift meta key.
CompositionMapping.Builder enableAlt()
Enables Alt meta key.
CompositionMapping.Builder enableCtrl()
Enables Ctrl meta key.
CompositionMapping.Builder enableShift()
Enables Shift meta key.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Added in revision 35

Public Methods

public CompositionMapping.Builder addDelay (long delay)

Added in revision 35

Adds a delay to the sequence

Parameters
delay delay time in millisecond
Returns

public CompositionMapping.Builder addEvent (MappingObject action)

Added in revision 35

Adds a generic event representing by an MappingObject.

Parameters
action see MappingObject
Returns

public CompositionMapping.Builder addKey (KeyCodeEntry key)

Added in revision 35

Adds an action that will press and release a key.

Parameters
key a KeyCodeEntry object containing a keycode and its meta states
Returns

public CompositionMapping.Builder addKeyAction (KeyCodeEntry key, int action)

Added in revision 35

Adds a key action. You can specify press or release action.

Parameters
key key a KeyCodeEntry object containing a keycode and its meta states
action either ACTION_PRESS_DOWN or ACTION_RELEASE
Returns

public CompositionMapping build ()

Added in revision 35

Builds the configured CompositionMapping object

Returns

public CompositionMapping.Builder disableAlt ()

Added in revision 35

Disables Alt meta key.

Returns

public CompositionMapping.Builder disableCtrl ()

Added in revision 35

Disables Ctrl meta key.

Returns

public CompositionMapping.Builder disableShift ()

Added in revision 35

Disables Shift meta key.

Returns

public CompositionMapping.Builder enableAlt ()

Added in revision 35

Enables Alt meta key.

Returns

public CompositionMapping.Builder enableCtrl ()

Added in revision 35

Enables Ctrl meta key.

Returns

public CompositionMapping.Builder enableShift ()

Added in revision 35

Enables Shift meta key.

Returns