Package com.openfin.desktop
Class AcceleratorOptions
java.lang.Object
com.openfin.desktop.JsonBean
com.openfin.desktop.AcceleratorOptions
public class AcceleratorOptions extends JsonBean
Window creation options that enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
- Author:
- Anthony
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AcceleratorOptions()
AcceleratorOptions(org.json.JSONObject json)
-
Method Summary
Modifier and Type Method Description boolean
isDevtools()
Get devtools keyboard shortcut setting.boolean
isReload()
Get reload keyboard shortcut settingboolean
isReloadIgnoringCache()
Get reload-from-source keyboard shortcut settingboolean
isZoom()
Get zoom keyboard shortcut settingvoid
setDevtools(boolean devTools)
Enables/Disables devtools keyboard shortcut: Ctrl + Shift + I (Toggles Devtools)void
setReload(boolean reload)
Enables/Disables reload keyboard shortcuts: Ctrl + R (Windows) F5 (Windows) Command + R (Mac)void
setReloadIgnoringCache(boolean reloadIgnoringCache)
Enables/Disables reload-from-source keyboard shortcut: Ctrl + Shift + R (Windows) Shift + F5 (Windows) Command + Shift + R (Mac)void
setZoom(boolean zoom)
Enables/Disables zoom keyboard shortcut: Ctrl + + (Zoom In) Ctrl + Shift + + (Zoom In) Ctrl + - (Zoom Out) Ctrl + Shift + - (Zoom Out) Ctrl + Scroll (Zoom In & Out) Ctrl + 0 (Restore to 100%)Methods inherited from class com.openfin.desktop.JsonBean
get, getArray, getBoolean, getBooleanValue, getBooleanValue, getDoubleValue, getDoubleValue, getInteger, getIntegerValue, getJson, getJsonBean, getJsonBean, getJsonBeanList, getJsonCopy, getJsonValue, getList, getRectangle, getString, put, setArray, setBoolean, setInteger, setJsonArray, setJsonBean, setLong, setRectangle, setString, toString
-
Constructor Details
-
AcceleratorOptions
public AcceleratorOptions() -
AcceleratorOptions
public AcceleratorOptions(org.json.JSONObject json)
-
-
Method Details
-
isDevtools
public boolean isDevtools()Get devtools keyboard shortcut setting.- Returns:
- true if shortcut is enabled.
-
setDevtools
public void setDevtools(boolean devTools)Enables/Disables devtools keyboard shortcut: Ctrl + Shift + I (Toggles Devtools)- Parameters:
devTools
- If true, enables the devtools keyboard shortcut.
-
isReload
public boolean isReload()Get reload keyboard shortcut setting- Returns:
- true if shortcut is enabled.
-
setReload
public void setReload(boolean reload)Enables/Disables reload keyboard shortcuts: Ctrl + R (Windows) F5 (Windows) Command + R (Mac)- Parameters:
reload
- If true, enables the reload keyboard shortcuts.
-
isReloadIgnoringCache
public boolean isReloadIgnoringCache()Get reload-from-source keyboard shortcut setting- Returns:
- true if shortcut is enabled.
-
setReloadIgnoringCache
public void setReloadIgnoringCache(boolean reloadIgnoringCache)Enables/Disables reload-from-source keyboard shortcut: Ctrl + Shift + R (Windows) Shift + F5 (Windows) Command + Shift + R (Mac)- Parameters:
reloadIgnoringCache
- If true, enables the reload-from-source keyboard shortcuts.
-
isZoom
public boolean isZoom()Get zoom keyboard shortcut setting- Returns:
- true if shortcut is enabled.
-
setZoom
public void setZoom(boolean zoom)Enables/Disables zoom keyboard shortcut: Ctrl + + (Zoom In) Ctrl + Shift + + (Zoom In) Ctrl + - (Zoom Out) Ctrl + Shift + - (Zoom Out) Ctrl + Scroll (Zoom In & Out) Ctrl + 0 (Restore to 100%)- Parameters:
zoom
- If true, enables the zoom keyboard shortcuts.
-