Class XViewerCustomizations
- java.lang.Object
-
- org.eclipse.nebula.widgets.xviewer.customize.XViewerCustomizations
-
- All Implemented Interfaces:
IXViewerCustomizations
public class XViewerCustomizations extends java.lang.Object implements IXViewerCustomizations
Default implementation of IViewerCustomizations interface
-
-
Constructor Summary
Constructors Constructor Description XViewerCustomizations()
-
Method Summary
All Methods Instance Methods Concrete Methods 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
-
-
-
Method Detail
-
deleteCustomization
public void deleteCustomization(CustomizeData custData) throws java.lang.Exception
Description copied from interface:IXViewerCustomizations
Delete customization- Specified by:
deleteCustomization
in interfaceIXViewerCustomizations
- Throws:
java.lang.Exception
-
getSavedCustDatas
public java.util.List<CustomizeData> getSavedCustDatas() throws java.lang.Exception
Description copied from interface:IXViewerCustomizations
Load and return saved customizations- Specified by:
getSavedCustDatas
in interfaceIXViewerCustomizations
- Throws:
java.lang.Exception
-
getUserDefaultCustData
public CustomizeData getUserDefaultCustData() throws XViewerException
Description copied from interface:IXViewerCustomizations
Return customization saved as default- Specified by:
getUserDefaultCustData
in interfaceIXViewerCustomizations
- Throws:
XViewerException
-
isCustomizationUserDefault
public boolean isCustomizationUserDefault(CustomizeData custData) throws XViewerException
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
public void saveCustomization(CustomizeData custData) throws java.lang.Exception
Description copied from interface:IXViewerCustomizations
Called to have customization saved- Specified by:
saveCustomization
in interfaceIXViewerCustomizations
- Throws:
java.lang.Exception
-
setUserDefaultCustData
public void setUserDefaultCustData(CustomizeData newCustData, boolean set) throws XViewerException
Description copied from interface:IXViewerCustomizations
Set given customization as the user default- Specified by:
setUserDefaultCustData
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
-
-