public class IconSettings extends Object
PDFViewerBean
.
It includes size settings for the toolbars for both standard and touch modes for
PDFViewerBean
, as well as control for enabling navigation buttons that
show up on the pages when in touch mode.
Modifier and Type | Field and Description |
---|---|
static String |
LARGE |
static String |
MEDIUM |
static String |
SMALL |
static String |
XLARGE |
Constructor and Description |
---|
IconSettings() |
Modifier and Type | Method and Description |
---|---|
static void |
enableTouchPageIcons(boolean enable)
Enable/disable the navigation buttons on the page that are used in Touch Mode.
|
static String |
getStandardIconSize()
Returns a String representing the icon size for
PDFViewerBean when in standard mode. |
static String |
getTouchIconSize()
Returns a String representing the icon size for
PDFViewerBean when in Touch Mode. |
static void |
setFromXML(String xmlString)
This method sets the default IconSettings properties with a
properly formatted
String xml element. |
static void |
setStandardIconSize(String size)
Sets the default icon size to use on toolbars in
PDFViewerBean when in standard mode.The options are: IconSettings.SMALL: 16x16 icons except where noted in the icons readme.txt IconSettings.MEDIUM: 24x24 icons except where noted in the icons readme.txt (the default value) IconSettings.LARGE: 32x32 icons except where noted in the icons readme.txt IconSettings.XLARGE: 48x48 icons except where noted in the icons readme.txt |
static void |
setTouchIconSize(String size)
Sets the default icon size to use on toolbars in
PDFViewerBean when in Touch Mode.The options are: IconSettings.SMALL: 16x16 icons except where noted in the icons readme.txt IconSettings.MEDIUM: 24x24 icons except where noted in the icons readme.txt IconSettings.LARGE: 32x32 icons except where noted in the icons readme.txt IconSettings.XLARGE: 48x48 icons except where noted in the icons readme.txt (the default value) |
static String |
toXMLString()
This method creates a
String that contains an xml element of
the default IconSettings properties. |
static boolean |
useTouchPageIcons()
Returns true if the navigation buttons on the page that are used in Touch Mode are enabled.
|
public static final String SMALL
public static final String MEDIUM
public static final String LARGE
public static final String XLARGE
public static void setStandardIconSize(String size)
PDFViewerBean
when in standard mode.size
- one of the values listed abovepublic static String getStandardIconSize()
PDFViewerBean
when in standard mode.public static void setTouchIconSize(String size)
PDFViewerBean
when in Touch Mode.size
- one of the values listed abovepublic static String getTouchIconSize()
PDFViewerBean
when in Touch Mode.public static void enableTouchPageIcons(boolean enable)
enable
- public static boolean useTouchPageIcons()
public static String toXMLString()
String
that contains an xml element of
the default IconSettings properties. This String
can
be stored and used to set the default IconSettings.String
containing an xml element of the
IconSettings properties.setFromXML(String)
public static void setFromXML(String xmlString)
String
xml element.toXMLString()