Package org.openxava.util
Class XavaPreferences
java.lang.Object
org.openxava.util.XavaPreferences
- Author:
- Javier Paniza
-
Method Summary
Modifier and TypeMethodDescriptionintLanguages available for the UI, ignoring country/region.Class to create an org.openxava.util.IConnectionRefiner to refine the JDBC connections just after get them from the data source and before use them.String[]intstatic XavaPreferencesintintintintintintbooleanbooleanIftruewhen an action has no image it uses a button for display it, else it uses a link.booleanbooleanbooleanbooleanbooleanDeprecated.Since 4.0, because collections now use a dialog to edit/view the detailbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanIftruefilter is show by default for list on init.booleanbooleanbooleanbooleanbooleanbooleanIftruea upper case conversions will applied to string arguments for conditions in list and collections.booleanbooleanbooleanvoidsetDuplicateComponentWarnings(boolean duplicateComponentWarnings)
-
Method Details
-
getInstance
-
isReadOnlyAsLabel
public boolean isReadOnlyAsLabel() -
isShowDefaultActionInBottom
public boolean isShowDefaultActionInBottom()- Since:
- 5.8
-
isShowCountInList
public boolean isShowCountInList() -
getSMTPHost
-
getSMTPPort
public int getSMTPPort() -
getSMTPUserID
-
getSMTPUserPassword
-
getMapsTileProvider
- Since:
- 6.6
-
getMapsAttribution
- Since:
- 6.6
-
getMapsTileSize
public int getMapsTileSize()- Since:
- 6.6
-
getMapsZoomOffset
public int getMapsZoomOffset()- Since:
- 6.6
-
getSMTPFromEmail
- Since:
- 6.2
-
isSMTPHostTrusted
public boolean isSMTPHostTrusted()- Since:
- 4.7
-
isSMTPStartTLSEnable
public boolean isSMTPStartTLSEnable()- Since:
- 5.6
-
getCSVSeparator
-
getCSVEncoding
- Since:
- 4.2.1
-
getReportParametersProviderClass
-
getConnectionRefinerClass
Class to create an org.openxava.util.IConnectionRefiner to refine the JDBC connections just after get them from the data source and before use them.- Since:
- 5.6
-
getComponentParsersClasses
- Since:
- 5.6
-
getAccessTrackerProvidersClasses
- Since:
- 5.9
-
getStyleClass
-
getStyleCSS
-
getThemes
- Since:
- 6.3
-
isEnterMovesToNextField
public boolean isEnterMovesToNextField()- Since:
- 6.4
-
isMapFacadeAutoCommit
public boolean isMapFacadeAutoCommit()- Returns:
- true if
isMapFacadeAsEJB() == true, otherwise the value ofmapFacadeAutoCommitproperty.
-
isDetailOnBottomInCollections
Deprecated.Since 4.0, because collections now use a dialog to edit/view the detail -
isI18nWarnings
public boolean isI18nWarnings() -
getAvailableLanguages
Languages available for the UI, ignoring country/region.Reads the comma-separated value from
availableLanguagesin xava.properties, for example:availableLanguages=es, ca. Empty or missing means: all languages allowed (backward compatible). Parsing/normalization is responsibility of caller classes.- Since:
- 7.6
-
isDuplicateComponentWarnings
public boolean isDuplicateComponentWarnings() -
isFailOnAnnotationMisuse
public boolean isFailOnAnnotationMisuse() -
getMaxSizeForTextEditor
public int getMaxSizeForTextEditor() -
getPageRowCount
public int getPageRowCount() -
getRowActionsPopupThreshold
public int getRowActionsPopupThreshold()- Since:
- 7.5
-
getCurrencySymbol
- Since:
- 7.4
-
getApplicationPort
public int getApplicationPort()- Since:
- 6.4.2
-
setDuplicateComponentWarnings
public void setDuplicateComponentWarnings(boolean duplicateComponentWarnings) -
getJavaLoggingLevel
-
getHibernateJavaLoggingLevel
-
isButtonsForNoImageActions
public boolean isButtonsForNoImageActions()Iftruewhen an action has no image it uses a button for display it, else it uses a link.The default value is
false, that is, by default links for displaying no image actions. -
isToUpperForStringArgumentsInConditions
public boolean isToUpperForStringArgumentsInConditions()Iftruea upper case conversions will applied to string arguments for conditions in list and collections.If
truethe searching using list or collections are more flexible (the user can use indistinctly upper or lower case) but can be slower in some databases (because they cannot use index). The default value istrue. -
isShowFilterByDefaultInList
public boolean isShowFilterByDefaultInList()Iftruefilter is show by default for list on init.The user always have the option to show or hide the filter.
The default value istrue. -
getDefaultPersistenceUnit
-
isGenerateDefaultModules
public boolean isGenerateDefaultModules() -
getDefaultLabelFormat
public int getDefaultLabelFormat() -
getDefaultLabelStyle
-
getHelpPrefix
- Since:
- 4m5
-
getHelpSuffix
- Since:
- 4m5
-
getDefaultModeController
- Since:
- 4m5
-
isTurnOffWebSecurity
public boolean isTurnOffWebSecurity()- Since:
- 7.2
-
isUnsafeEvalInScripts
public boolean isUnsafeEvalInScripts()- Since:
- 7.2
-
isUseIconsInsteadOfImages
public boolean isUseIconsInsteadOfImages()- Since:
- 5.4
-
isHelpInNewWindow
public boolean isHelpInNewWindow()- Since:
- 4m5
-
isHelpAvailable
public boolean isHelpAvailable()- Since:
- 5.6
-
isFlowLayout
public boolean isFlowLayout()- Since:
- 5.7
-
isCustomizeList
public boolean isCustomizeList()- Since:
- 4m5
-
isResizeColumns
public boolean isResizeColumns()- Since:
- 4m5
-
isSaveAndStayForCollections
public boolean isSaveAndStayForCollections()- Since:
- 4m6
-
isShowLabelsForToolBarActions
public boolean isShowLabelsForToolBarActions()- Since:
- 4m6
-
isIgnoreAccentsForStringArgumentsInConditions
public boolean isIgnoreAccentsForStringArgumentsInConditions()- Since:
- 4m6
If
trueit ignore accents to string arguments for conditions in list and collections.The default value is
false.
-
isSummationInList
public boolean isSummationInList()- Since:
- 4.3
-
isShowIconForViewReadOnly
public boolean isShowIconForViewReadOnly()- Since:
- 4.6
-
isAlignedByColumns
public boolean isAlignedByColumns()- Since:
- 4.7.1
-
isFilterOnChange
public boolean isFilterOnChange()- Since:
- 4.8
-
getFilePersistorClass
- Since:
- 5.0
-
getFilesPath
- Since:
- 5.0
-
getDefaultDescriptionPropertiesValueForDescriptionsList
- Since:
- 7.1
-
getTrustedHostsForImages
- Since:
- 7.1.2
-
getTrustedHostsForScripts
- Since:
- 7.1.2
-
getTrustedHostsForStyles
- Since:
- 7.1.2
-
getTrustedHostsForFrames
- Since:
- 7.1.2
-
getEntityManagerFactoryProviderClass
- Since:
- 7.5
-
getChatModelName
- Since:
- 7.7
-
isChatPriorityServiceTier
public boolean isChatPriorityServiceTier()- Since:
- 7.7
-
isChatAvailable
public boolean isChatAvailable()- Since:
- 7.7
-
isChatModifyDataAvailable
public boolean isChatModifyDataAvailable()- Since:
- 7.7
-