voyent
How to disable Icepdf Properties local storage dialog  XML
Forum Index -> ICEpdf General
Author Message
avm9

Joined: 23/Jan/2017 01:51:31
Messages: 13
Offline


I am hiding certain icons from toolbar using code:-

PropertiesManager properties = new PropertiesManager(System.getProperties(), ResourceBundle.getBundle(PropertiesManager.DEFAULT_MESSAGE_BUNDLE));
properties.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ROTATE, Boolean.FALSE);

But it popups Icepdf properties dialog for local storage of content which I want to disable.

I tried adding code:-

properties.setBoolean("application.showLocalStorageDialogs",
Boolean.FALSE);

to hide dialog but it didn't work;

So how can I disbale local storage dialog and even hide rotate icon from toolbar?

Why end-user is receiving that dialog when I hide icon from toolbar?
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1982
Offline


The "application.showLocalStorageDialog" property needs to be set before the PropertiesManager is created either by setting it as a system property or passing it in as a default property set. The following code should help you out.

Code:
 Properties myProperties = new Properties();
 myProperties.setProperty("application.showLocalStorageDialogs", "false");
 
 PropertiesManager properties = new PropertiesManager(
         System.getProperties(), myProperties,
         ResourceBundle.getBundle(PropertiesManager.DEFAULT_MESSAGE_BUNDLE));
[Email]
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team