Foxit PDF SDK
|
Public Member Functions | |
MenuItemEx () | |
Constructor. | |
MenuItemEx (String item_name, String return_name, boolean is_checked, boolean is_enabled, MenuItemExArray sub_menu_item_array) | |
Constructor, with parameters. More... | |
MenuItemEx (MenuItemEx menu_item) | |
Constructor, with another menu item object. More... | |
synchronized void | delete () |
Clean up related resources immediately. More... | |
boolean | getIs_checked () |
Get a boolean value which indicates whether the menu item is to be marked as checked. More... | |
boolean | getIs_enabled () |
Get a boolean value which indicates whether the menu item is to appear enabled or grayed out. More... | |
String | getItem_name () |
Get the menu item name, which is the string to appear on the menu item. More... | |
String | getReturn_name () |
Get a string to be returned when the menu item is selected. More... | |
MenuItemExArray | getSub_menu_item_array () |
Get the sub menu item array. More... | |
void | set (String item_name, String return_name, boolean is_checked, boolean is_enabled, MenuItemExArray sub_menu_item_array) |
Set values. More... | |
void | setIs_checked (boolean value) |
Set a boolean value which indicates whether the menu item is to be marked as checked. More... | |
void | setIs_enabled (boolean value) |
Set a boolean value which indicates whether the menu item is to appear enabled or grayed out. More... | |
void | setItem_name (String value) |
Set the menu item name, which is the string to appear on the menu item. More... | |
void | setReturn_name (String value) |
Set a string to be returned when the menu item is selected. More... | |
void | setSub_menu_item_array (MenuItemExArray value) |
Set the sub menu item array. More... | |
This class represents menu item.
com.foxit.sdk.MenuItemEx.MenuItemEx | ( | String | item_name, |
String | return_name, | ||
boolean | is_checked, | ||
boolean | is_enabled, | ||
MenuItemExArray | sub_menu_item_array | ||
) |
Constructor, with parameters.
[in] | item_name | The menu item name, which is the string to appear on the menu item. |
[in] | return_name | A string to be returned when the menu item is selected. |
[in] | is_checked | A boolean value which indicates whether the menu item is to be marked as checked. |
[in] | is_enabled | A boolean value which indicates whether the menu item is to appear enabled or grayed out. |
[in] | sub_menu_item_array | The sub menu item array. |
com.foxit.sdk.MenuItemEx.MenuItemEx | ( | MenuItemEx | menu_item | ) |
Constructor, with another menu item object.
[in] | menu_item | Another menu item object. |
synchronized void com.foxit.sdk.MenuItemEx.delete | ( | ) |
Clean up related resources immediately.
com.foxit.sdk.MenuItemEx.getIs_checked | ( | ) |
Get a boolean value which indicates whether the menu item is to be marked as checked.
true means that the menu item is to be marked as checked, while false means that the menu item is not to be marked as checked.
com.foxit.sdk.MenuItemEx.getIs_enabled | ( | ) |
Get a boolean value which indicates whether the menu item is to appear enabled or grayed out.
true means that the menu item is to appear enabled, while false means that the menu item is to appear grayed out.
com.foxit.sdk.MenuItemEx.getItem_name | ( | ) |
Get the menu item name, which is the string to appear on the menu item.
com.foxit.sdk.MenuItemEx.getReturn_name | ( | ) |
Get a string to be returned when the menu item is selected.
com.foxit.sdk.MenuItemEx.getSub_menu_item_array | ( | ) |
Get the sub menu item array.
void com.foxit.sdk.MenuItemEx.set | ( | String | item_name, |
String | return_name, | ||
boolean | is_checked, | ||
boolean | is_enabled, | ||
MenuItemExArray | sub_menu_item_array | ||
) |
Set values.
[in] | item_name | The menu item name, which is the string to appear on the menu item. |
[in] | return_name | A string to be returned when the menu item is selected. |
[in] | is_checked | A boolean value which indicates whether the menu item is to be marked as checked. |
[in] | is_enabled | A boolean value which indicates whether the menu item is to appear enabled or grayed out. |
[in] | sub_menu_item_array | The sub menu item array. |
com.foxit.sdk.MenuItemEx.setIs_checked | ( | boolean | value | ) |
Set a boolean value which indicates whether the menu item is to be marked as checked.
true means that the menu item is to be marked as checked, while false means that the menu item is not to be marked as checked.
[in] | value | A boolean value which indicates whether the menu item is to be marked as checked. |
com.foxit.sdk.MenuItemEx.setIs_enabled | ( | boolean | value | ) |
Set a boolean value which indicates whether the menu item is to appear enabled or grayed out.
true means that the menu item is to appear enabled, while false means that the menu item is to appear grayed out.
[in] | value | A boolean value which indicates whether the menu item is to appear enabled or grayed out. |
com.foxit.sdk.MenuItemEx.setItem_name | ( | String | value | ) |
Set the menu item name, which is the string to appear on the menu item.
[in] | value | The menu item name, which is the string to appear on the menu item. The value of "-" is reserved to draw a separator line in the menu. |
com.foxit.sdk.MenuItemEx.setReturn_name | ( | String | value | ) |
Set a string to be returned when the menu item is selected.
[in] | value | A string to be returned when the menu item is selected. The default is the value of item name. |
com.foxit.sdk.MenuItemEx.setSub_menu_item_array | ( | MenuItemExArray | value | ) |
Set the sub menu item array.
[in] | value | The sub menu item array. |