public class OptionsParamView extends AbstractParam
Constructor and Description |
---|
OptionsParamView() |
Modifier and Type | Method and Description |
---|---|
int |
getAdvancedViewOption() |
int |
getAskOnExitOption() |
int |
getBrkPanelViewOption() |
String |
getConfigLocale() |
int |
getDisplayOption() |
String |
getFontName()
Deprecated.
(2.8.0) Replaced by
getFontName(org.zaproxy.zap.utils.FontUtils.FontType) . |
String |
getFontName(FontUtils.FontType fontType) |
int |
getFontSize()
Deprecated.
(2.8.0) Replaced by
getFontSize(org.zaproxy.zap.utils.FontUtils.FontType) . |
int |
getFontSize(FontUtils.FontType fontType) |
int |
getLargeRequestSize() |
int |
getLargeResponseSize() |
String |
getLocale() |
String |
getLookAndFeel()
Gets the the name of the selected look and feel.
|
UIManager.LookAndFeelInfo |
getLookAndFeelInfo()
Gets the info of the selected look and feel.
|
String |
getMode() |
String |
getOutputTabTimeStampsFormat() |
int |
getProcessImages() |
String |
getResponsePanelPosition()
Gets the name of the current response panel position.
|
int |
getShowMainToolbar()
Deprecated.
(2.5.0) Use
isShowMainToolbar() instead. It will be removed in a future
release. |
boolean |
getShowTabNames() |
boolean |
getWarnOnTabDoubleClick() |
int |
getWmUiHandlingOption() |
boolean |
isAllowAppIntegrationInContainers() |
boolean |
isConfirmRemoveProxyExcludeRegex() |
boolean |
isConfirmRemoveScannerExcludeRegex() |
boolean |
isConfirmRemoveSpiderExcludeRegex() |
boolean |
isOutputTabTimeStampingEnabled() |
boolean |
isProcessImages() |
boolean |
isScaleImages() |
boolean |
isShowDevWarning() |
boolean |
isShowLocalConnectRequests()
Tells whether or not the HTTP CONNECT requests received by the local proxy should be
(persisted and) shown in the UI.
|
boolean |
isShowMainToolbar()
Tells whether or not the main tool bar should be shown.
|
boolean |
isShowSplashScreen() |
boolean |
isUseSystemsLocaleForFormat()
Tells whether or not the system's locale should be used for formatting.
|
protected void |
parse()
Parses the configurations.
|
void |
setAdvancedViewOption(int isEnabled) |
void |
setAllowAppIntegrationInContainers(boolean allowAppIntegrationInContainers) |
void |
setAskOnExitOption(int isEnabled) |
void |
setBrkPanelViewOption(int brkPanelViewIdx) |
void |
setConfirmRemoveProxyExcludeRegex(boolean confirmRemove) |
void |
setConfirmRemoveScannerExcludeRegex(boolean confirmRemove) |
void |
setConfirmRemoveSpiderExcludeRegex(boolean confirmRemove) |
void |
setDisplayOption(int displayOption) |
void |
setFontName(FontUtils.FontType fontType,
String fontName) |
void |
setFontName(String fontName)
Deprecated.
(2.8.0) Replaced by
setFontName(org.zaproxy.zap.utils.FontUtils.FontType,
String) . |
void |
setFontSize(FontUtils.FontType fontType,
int fontSize) |
void |
setFontSize(int fontSize)
Deprecated.
(2.8.0) Replaced by
setFontSize(org.zaproxy.zap.utils.FontUtils.FontType,
int) . |
void |
setLargeRequestSize(int largeRequestSize) |
void |
setLargeResponseSize(int largeResponseSize) |
void |
setLocale(Locale locale) |
void |
setLocale(String locale) |
void |
setLookAndFeel(String lookAndFeel)
Deprecated.
(2.10.0) Use
#setLookAndFeelInfo(LookAndFeelInfo) instead, which
preserves the class of the look and feel. |
void |
setLookAndFeelInfo(UIManager.LookAndFeelInfo lookAndFeelInfo)
Sets the info of the selected look and feel.
|
void |
setMode(String mode) |
void |
setOutputTabTimeStampingEnabled(boolean enabled) |
void |
setOutputTabTimeStampsFormat(String format) |
void |
setProcessImages(int processImages) |
void |
setResponsePanelPosition(String position)
Sets the name of the current response panel position.
|
void |
setScaleImages(boolean scaleImages) |
void |
setShowDevWarning(boolean showDevWarning) |
void |
setShowLocalConnectRequests(boolean showConnectRequests)
Sets whether or not the HTTP CONNECT requests received by the local proxy should be
(persisted and) shown in the UI.
|
void |
setShowMainToolbar(boolean show)
Sets whether or not the main tool bar should be shown.
|
void |
setShowMainToolbar(int showMainToolbar)
Deprecated.
(2.5.0) Use
setShowMainToolbar(boolean) instead. It will be removed in a
future release. |
void |
setShowSplashScreen(boolean showSplashScreen) |
void |
setShowTabNames(boolean showTabNames) |
void |
setUseSystemsLocaleForFormat(boolean useSystemsLocale)
Sets whether or not the system's locale should be used for formatting.
|
void |
setWarnOnTabDoubleClick(boolean warnOnTabDoubleClick) |
void |
setWmUiHandlingOption(int isEnabled) |
clone, getBoolean, getConfig, getInt, getInteger, getString, load, load, load, logConversionException, reset
public static final String BASE_VIEW_KEY
public static final String LOCALE
public static final String DISPLAY_OPTION
public static final String BRK_PANEL_VIEW_OPTION
public static final String SHOW_MAIN_TOOLBAR_OPTION
public static final String DEFAULT_LOCALE
public static final String ADVANCEDUI_OPTION
public static final String WMUIHANDLING_OPTION
public static final String ASKONEXIT_OPTION
public static final String WARN_ON_TAB_DOUBLE_CLICK_OPTION
public static final String MODE_OPTION
public static final String TAB_PIN_OPTION
public static final String OUTPUT_TAB_TIMESTAMPING_OPTION
public static final String OUTPUT_TAB_TIMESTAMP_FORMAT
public static final String SPLASHSCREEN_OPTION
public static final String LARGE_REQUEST_SIZE
public static final String LARGE_RESPONSE_SIZE
public static final String FONT_NAME
public static final String FONT_SIZE
public static final String SCALE_IMAGES
public static final String SHOW_DEV_WARNING
public static final String LOOK_AND_FEEL
public static final String LOOK_AND_FEEL_CLASS
public static final String ALLOW_APP_INTEGRATION_IN_CONTAINERS
public static final String DEFAULT_LOOK_AND_FEEL_NAME
public static final String DEFAULT_LOOK_AND_FEEL_CLASS
public static final UIManager.LookAndFeelInfo DEFAULT_LOOK_AND_FEEL
protected void parse()
AbstractParam
Called each time the configurations are loaded.
parse
in class AbstractParam
AbstractParam.getConfig()
public int getProcessImages()
public void setProcessImages(int processImages)
processImages
- 0 = not to process. Other = process imagespublic boolean isProcessImages()
@Deprecated public int getShowMainToolbar()
isShowMainToolbar()
instead. It will be removed in a future
release.public boolean isShowMainToolbar()
true
if the main tool bar should be shown, false
otherwise.@Deprecated public void setShowMainToolbar(int showMainToolbar)
setShowMainToolbar(boolean)
instead. It will be removed in a
future release.public void setShowMainToolbar(boolean show)
show
- true
if the main tool bar should be shown, false
otherwise.public String getLocale()
getConfigLocale()
public void setLocale(String locale)
public void setLocale(Locale locale)
public String getConfigLocale()
getLocale()
public boolean getShowTabNames()
public void setShowTabNames(boolean showTabNames)
public int getBrkPanelViewOption()
public void setBrkPanelViewOption(int brkPanelViewIdx)
public int getDisplayOption()
public void setDisplayOption(int displayOption)
public String getResponsePanelPosition()
WorkbenchPanel.ResponsePanelPosition
public void setResponsePanelPosition(String position)
position
- the name of the positionpublic int getAdvancedViewOption()
public void setAdvancedViewOption(int isEnabled)
public void setAskOnExitOption(int isEnabled)
public int getAskOnExitOption()
public void setWmUiHandlingOption(int isEnabled)
public int getWmUiHandlingOption()
public boolean getWarnOnTabDoubleClick()
public void setWarnOnTabDoubleClick(boolean warnOnTabDoubleClick)
public String getMode()
public void setMode(String mode)
public void setOutputTabTimeStampingEnabled(boolean enabled)
public boolean isOutputTabTimeStampingEnabled()
public void setOutputTabTimeStampsFormat(String format)
public String getOutputTabTimeStampsFormat()
public void setShowLocalConnectRequests(boolean showConnectRequests)
showConnectRequests
- true
if the HTTP CONNECT requests should be shown, false
otherwiseisShowLocalConnectRequests()
public boolean isShowLocalConnectRequests()
The default is to not show the HTTP CONNECT requests.
true
if the HTTP CONNECT requests should be shown, false
otherwisesetShowLocalConnectRequests(boolean)
public boolean isShowSplashScreen()
public void setShowSplashScreen(boolean showSplashScreen)
public int getLargeRequestSize()
public void setLargeRequestSize(int largeRequestSize)
public int getLargeResponseSize()
public void setLargeResponseSize(int largeResponseSize)
public boolean isAllowAppIntegrationInContainers()
public void setAllowAppIntegrationInContainers(boolean allowAppIntegrationInContainers)
@Deprecated public int getFontSize()
getFontSize(org.zaproxy.zap.utils.FontUtils.FontType)
.public int getFontSize(FontUtils.FontType fontType)
@Deprecated public void setFontSize(int fontSize)
setFontSize(org.zaproxy.zap.utils.FontUtils.FontType,
int)
.public void setFontSize(FontUtils.FontType fontType, int fontSize)
@Deprecated public String getFontName()
getFontName(org.zaproxy.zap.utils.FontUtils.FontType)
.public String getFontName(FontUtils.FontType fontType)
@Deprecated public void setFontName(String fontName)
setFontName(org.zaproxy.zap.utils.FontUtils.FontType,
String)
.public void setFontName(FontUtils.FontType fontType, String fontName)
public String getLookAndFeel()
null
or empty if none selected (i.e. using default).getLookAndFeelInfo()
@Deprecated public void setLookAndFeel(String lookAndFeel)
#setLookAndFeelInfo(LookAndFeelInfo)
instead, which
preserves the class of the look and feel.lookAndFeel
- the name.public UIManager.LookAndFeelInfo getLookAndFeelInfo()
getLookAndFeel()
public void setLookAndFeelInfo(UIManager.LookAndFeelInfo lookAndFeelInfo)
lookAndFeelInfo
- the info of the look and feel.NullPointerException
- if the given parameter is null.public boolean isScaleImages()
public void setScaleImages(boolean scaleImages)
public boolean isShowDevWarning()
public void setShowDevWarning(boolean showDevWarning)
public boolean isConfirmRemoveProxyExcludeRegex()
public void setConfirmRemoveProxyExcludeRegex(boolean confirmRemove)
public boolean isConfirmRemoveScannerExcludeRegex()
public void setConfirmRemoveScannerExcludeRegex(boolean confirmRemove)
public boolean isConfirmRemoveSpiderExcludeRegex()
public void setConfirmRemoveSpiderExcludeRegex(boolean confirmRemove)
public void setUseSystemsLocaleForFormat(boolean useSystemsLocale)
useSystemsLocale
- true
if the system's locale should be used for formatting,
false
otherwise.isUseSystemsLocaleForFormat()
,
Locale.Category.FORMAT
public boolean isUseSystemsLocaleForFormat()
true
if the system's locale should be used for formatting, false
otherwise.setUseSystemsLocaleForFormat(boolean)
,
Locale.Category.FORMAT