Class FileStoreCustomizations
java.lang.Object
org.eclipse.nebula.widgets.xviewer.customize.FileStoreCustomizations
- All Implemented Interfaces:
IXViewerCustomizations
public class FileStoreCustomizations extends java.lang.Object implements IXViewerCustomizations
-
Constructor Summary
Constructors Constructor Description FileStoreCustomizations(java.io.File pathToCustomizations, java.lang.String fileNamePrefix, java.lang.String fileNamePostfix, java.lang.String defaultCustomizationFileName, java.lang.String defaultCustomDataXml)
-
Method Summary
Modifier and Type Method Description void
deleteCustomization(CustomizeData custData)
Delete customizationjava.util.List<CustomizeData>
getSavedCustDatas()
Load and return saved customizationsCustomizeData
getUserDefaultCustData()
Return customization saved as defaultboolean
isCustomizationPersistAvailable()
Return true if this XViewer is allowed to save local/shared customizationsboolean
isCustomizationUserDefault(CustomizeData custData)
Return true if given customization is the defaultvoid
saveCustomization(CustomizeData custData)
Called to have customization savedvoid
setUserDefaultCustData(CustomizeData newCustData, boolean set)
Set given customization as the user default
-
Constructor Details
-
FileStoreCustomizations
public FileStoreCustomizations(java.io.File pathToCustomizations, java.lang.String fileNamePrefix, java.lang.String fileNamePostfix, java.lang.String defaultCustomizationFileName, java.lang.String defaultCustomDataXml)
-
-
Method Details
-
deleteCustomization
Description copied from interface:IXViewerCustomizations
Delete customization- Specified by:
deleteCustomization
in interfaceIXViewerCustomizations
- Throws:
java.lang.Exception
-
getSavedCustDatas
Description copied from interface:IXViewerCustomizations
Load and return saved customizations- Specified by:
getSavedCustDatas
in interfaceIXViewerCustomizations
- Throws:
XViewerException
-
getUserDefaultCustData
Description copied from interface:IXViewerCustomizations
Return customization saved as default- Specified by:
getUserDefaultCustData
in interfaceIXViewerCustomizations
- Throws:
XViewerException
-
isCustomizationPersistAvailable
public boolean isCustomizationPersistAvailable()Description copied from interface:IXViewerCustomizations
Return true if this XViewer is allowed to save local/shared customizations- Specified by:
isCustomizationPersistAvailable
in interfaceIXViewerCustomizations
-
isCustomizationUserDefault
Description copied from interface:IXViewerCustomizations
Return true if given customization is the default- Specified by:
isCustomizationUserDefault
in interfaceIXViewerCustomizations
- Returns:
- true if default
- Throws:
XViewerException
-
saveCustomization
Description copied from interface:IXViewerCustomizations
Called to have customization saved- Specified by:
saveCustomization
in interfaceIXViewerCustomizations
- Throws:
java.lang.Exception
-
setUserDefaultCustData
Description copied from interface:IXViewerCustomizations
Set given customization as the user default- Specified by:
setUserDefaultCustData
in interfaceIXViewerCustomizations
- Throws:
XViewerException
-