Package com.teamdev.jxbrowser.ui
Class KeyModifiers.Builder
java.lang.Object
com.teamdev.jxbrowser.ui.KeyModifiers.Builder
- Enclosing interface:
- KeyModifiers
A builder of
KeyModifiers.
Builders are created by invoking KeyModifiers.newBuilder(). Each of the setter methods
modifies the state of the builder and returns the same instance. Builders are not thread-safe
and should not be used concurrently from multiple threads without external synchronization.
-
Method Summary
Modifier and TypeMethodDescriptionaltDown(boolean flag) Sets the flag indicating whether the Alt is pressed.altGraphDown(boolean flag) Sets the flag indicating whether the AltGraph is pressed.build()Returns a newKeyModifiersinstance built from the current state of this builder.controlDown(boolean flag) Sets the flag indicating whether the Control is pressed.metaDown(boolean flag) Sets the flag indicating whether the Meta is pressed.shiftDown(boolean flag) Sets the flag indicating whether the Shift is pressed.
-
Method Details
-
altDown
Sets the flag indicating whether the Alt is pressed.- Parameters:
flag- a new value- Returns:
- this builder
-
altGraphDown
Sets the flag indicating whether the AltGraph is pressed.- Parameters:
flag- a new value- Returns:
- this builder
-
shiftDown
Sets the flag indicating whether the Shift is pressed.- Parameters:
flag- a new value- Returns:
- this builder
-
controlDown
Sets the flag indicating whether the Control is pressed.- Parameters:
flag- a new value- Returns:
- this builder
-
metaDown
Sets the flag indicating whether the Meta is pressed.- Parameters:
flag- a new value- Returns:
- this builder
-
build
Returns a newKeyModifiersinstance built from the current state of this builder.- Returns:
- a new
KeyModifiersinstance
-