Foxit PDF SDK
com.foxit.sdk.DialogDescriptionElement类 参考

Public 成员函数

 DialogDescriptionElement ()
 构造函数。
 
 DialogDescriptionElement (String name, String item_id, String type, String next_tab, int width, int height, int char_width, int char_height, String font, boolean bold, boolean italic, String alignment, String align_children, DialogDescriptionElementArray element_array)
 构造函数,带参数。 更多...
 
 DialogDescriptionElement (DialogDescriptionElement dlg_des_element)
 构造函数,使用另一个对话框描述元素对象。 更多...
 
synchronized void delete ()
 直接清除C++相关资源。 更多...
 
String getAlign_children ()
 Get 所有子元素的对齐方式。 更多...
 
String getAlignment ()
 Get 此元素的对齐方式。 更多...
 
boolean getBold ()
 Get 指定字体是否为粗体。 更多...
 
int getChar_height ()
 Get 指定元素的高度(以字符为单位)。 更多...
 
int getChar_width ()
 Get 指定元素的宽度(以字符为单位)。 更多...
 
DialogDescriptionElementArray getElement_array ()
 Get 描述此对话框元素子元素的对象字面量数组。 更多...
 
String getFont ()
 Get 此元素使用的字体。 更多...
 
int getHeight ()
 Get 指定元素的高度(以像素为单位)。 更多...
 
boolean getItalic ()
 Get 指定字体是否为斜体。 更多...
 
String getItem_id ()
 Get 此对话框的项目ID。 更多...
 
String getName ()
 Get 对话框元素的显示名称。 更多...
 
String getNext_tab ()
 Get tab顺序中下一个对话框项目的项目ID。 更多...
 
String getType ()
 Get 此对话框元素的类型。 更多...
 
int getWidth ()
 Get 指定元素的宽度(以像素为单位)。 更多...
 
void set (String name, String item_id, String type, String next_tab, int width, int height, int char_width, int char_height, String font, boolean bold, boolean italic, String alignment, String align_children, DialogDescriptionElementArray element_array)
 设置值。 更多...
 
void setAlign_children (String value)
 Set 所有子元素的对齐方式。 更多...
 
void setAlignment (String value)
 Set 此元素的对齐方式。 更多...
 
void setBold (boolean value)
 Set 指定字体是否为粗体。 更多...
 
void setChar_height (int value)
 Set 指定元素的高度(以字符为单位)。 更多...
 
void setChar_width (int value)
 Set 指定元素的宽度(以字符为单位)。 更多...
 
void setElement_array (DialogDescriptionElementArray value)
 Set 描述此对话框元素子元素的对象字面量数组。 更多...
 
void setFont (String value)
 Set 此元素使用的字体。 更多...
 
void setHeight (int value)
 Set 指定元素的高度(以像素为单位)。 更多...
 
void setItalic (boolean value)
 Set 指定字体是否为斜体。 更多...
 
void setItem_id (String value)
 Set 此对话框的项目ID。 更多...
 
void setName (String value)
 Set 对话框元素的显示名称。 更多...
 
void setNext_tab (String value)
 Set tab顺序中下一个对话框项目的项目ID。 更多...
 
void setType (String value)
 Set 此对话框元素的类型。 更多...
 
void setWidth (int value)
 Set 指定元素的宽度(以像素为单位)。 更多...
 

详细描述

此类表示对话框元素属性,指定具有以下属性集的对象字面量。

构造及析构函数说明

◆ DialogDescriptionElement() [1/2]

com.foxit.sdk.DialogDescriptionElement.DialogDescriptionElement ( String  name,
String  item_id,
String  type,
String  next_tab,
int  width,
int  height,
int  char_width,
int  char_height,
String  font,
boolean  bold,
boolean  italic,
String  alignment,
String  align_children,
DialogDescriptionElementArray  element_array 
)

构造函数,带参数。

参数
[in]name对话框元素的显示名称。
[in]item_id此对话框的项目ID。
[in]type此对话框元素的类型。
[in]next_tabTab顺序中应该是第一个的对话框项目的项目ID。
[in]width指定元素的宽度(以像素为单位)。
[in]height指定元素的高度(以像素为单位)。
[in]char_width指定元素的宽度(以字符为单位)。
[in]char_height指定元素的高度(以字符为单位)。
[in]font此元素使用的字体。
[in]bold指定字体是否为粗体。
[in]italic指定字体是否为斜体。
[in]alignment此元素的对齐方式。
[in]align_children所有子元素的对齐方式。
[in]element_array描述此对话框元素子元素的对象字面量数组。

◆ DialogDescriptionElement() [2/2]

com.foxit.sdk.DialogDescriptionElement.DialogDescriptionElement ( DialogDescriptionElement  dlg_des_element)

构造函数,使用另一个对话框描述元素对象。

参数
[in]dlg_des_element另一个对话框描述元素对象。

成员函数说明

◆ delete()

synchronized void com.foxit.sdk.DialogDescriptionElement.delete ( )

直接清除C++相关资源。

返回
无。
注解
一旦这个接口被调用,这个对象将不能再被使用。

◆ getAlign_children()

com.foxit.sdk.DialogDescriptionElement.getAlign_children ( )

Get 所有子元素的对齐方式。

返回
所有子元素的对齐方式。

◆ getAlignment()

com.foxit.sdk.DialogDescriptionElement.getAlignment ( )

Get 此元素的对齐方式。

返回
此元素的对齐方式。

◆ getBold()

com.foxit.sdk.DialogDescriptionElement.getBold ( )

Get 指定字体是否为粗体。

返回
指定字体是否为粗体。

◆ getChar_height()

com.foxit.sdk.DialogDescriptionElement.getChar_height ( )

Get 指定元素的高度(以字符为单位)。

如果未指定高度,则使用内容的组合高度。

返回
指定元素的高度(以字符为单位)。

◆ getChar_width()

com.foxit.sdk.DialogDescriptionElement.getChar_width ( )

Get 指定元素的宽度(以字符为单位)。

如果未指定宽度,则使用内容的组合宽度。

返回
指定元素的宽度(以字符为单位)。

◆ getElement_array()

com.foxit.sdk.DialogDescriptionElement.getElement_array ( )

Get 描述此对话框元素子元素的对象字面量数组。

返回
描述此对话框元素子元素的对象字面量数组。

◆ getFont()

com.foxit.sdk.DialogDescriptionElement.getFont ( )

Get 此元素使用的字体。

它将是以下字符串之一:

  • "default" - 默认字体

  • "dialog" - 对话框字体

  • "palette" - 调色板(小)字体

返回
此元素使用的字体。

◆ getHeight()

com.foxit.sdk.DialogDescriptionElement.getHeight ( )

Get 指定元素的高度(以像素为单位)。

如果未指定高度,则使用内容的组合高度。

返回
指定元素的高度(以像素为单位)。

◆ getItalic()

com.foxit.sdk.DialogDescriptionElement.getItalic ( )

Get 指定字体是否为斜体。

返回
指定字体是否为斜体。

◆ getItem_id()

com.foxit.sdk.DialogDescriptionElement.getItem_id ( )

Get 此对话框的项目ID。

返回
此对话框的项目ID。

◆ getName()

com.foxit.sdk.DialogDescriptionElement.getName ( )

Get 对话框元素的显示名称。

返回
对话框元素的显示名称。

◆ getNext_tab()

com.foxit.sdk.DialogDescriptionElement.getNext_tab ( )

Get tab顺序中下一个对话框项目的项目ID。

返回
Tab顺序中下一个对话框项目的项目ID。

◆ getType()

com.foxit.sdk.DialogDescriptionElement.getType ( )

Get 此对话框元素的类型。

返回
此对话框元素的类型。

◆ getWidth()

com.foxit.sdk.DialogDescriptionElement.getWidth ( )

Get 指定元素的宽度(以像素为单位)。

如果未指定宽度,则使用内容的组合宽度。

返回
指定元素的宽度(以像素为单位)。

◆ set()

void com.foxit.sdk.DialogDescriptionElement.set ( String  name,
String  item_id,
String  type,
String  next_tab,
int  width,
int  height,
int  char_width,
int  char_height,
String  font,
boolean  bold,
boolean  italic,
String  alignment,
String  align_children,
DialogDescriptionElementArray  element_array 
)

设置值。

参数
[in]name对话框元素的显示名称。
[in]item_id此对话框的项目ID。
[in]type此对话框元素的类型。
[in]next_tabTab顺序中第一个对话框项目的项目ID。
[in]width指定元素的宽度(以像素为单位)。
[in]height指定元素的高度(以像素为单位)。
[in]char_width指定元素的宽度(以字符为单位)。
[in]char_height指定元素的高度(以字符为单位)。
[in]font此元素使用的字体。
[in]bold指定字体是否为粗体。
[in]italic指定字体是否为斜体。
[in]alignment此元素的对齐方式。
[in]align_children所有子元素的对齐方式。
[in]element_array描述此对话框元素子元素的对象数组。
返回
无返回值。

◆ setAlign_children()

com.foxit.sdk.DialogDescriptionElement.setAlign_children ( String  value)

Set 所有子元素的对齐方式。

参数
[in]value所有子元素的对齐方式。
返回
None.

◆ setAlignment()

com.foxit.sdk.DialogDescriptionElement.setAlignment ( String  value)

Set 此元素的对齐方式。

参数
[in]value此元素的对齐方式。
返回
None.

◆ setBold()

com.foxit.sdk.DialogDescriptionElement.setBold ( boolean  value)

Set 指定字体是否为粗体。

参数
[in]value指定字体是否为粗体。
返回
None.

◆ setChar_height()

com.foxit.sdk.DialogDescriptionElement.setChar_height ( int  value)

Set 指定元素的高度(以字符为单位)。

如果未指定高度,则使用内容的组合高度。

参数
[in]value指定元素的高度(以字符为单位)。
返回
None.

◆ setChar_width()

com.foxit.sdk.DialogDescriptionElement.setChar_width ( int  value)

Set 指定元素的宽度(以字符为单位)。

如果未指定宽度,则使用内容的组合宽度。

参数
[in]value指定元素的宽度(以字符为单位)。
返回
None.

◆ setElement_array()

com.foxit.sdk.DialogDescriptionElement.setElement_array ( DialogDescriptionElementArray  value)

Set 描述此对话框元素子元素的对象字面量数组。

参数
[in]value描述此对话框元素子元素的对象字面量数组。
返回
None.

◆ setFont()

com.foxit.sdk.DialogDescriptionElement.setFont ( String  value)

Set 此元素使用的字体。

它将是以下字符串之一:

  • "default" - 默认字体

  • "dialog" - 对话框字体

  • "palette" - 调色板(小)字体

参数
[in]value此元素使用的字体。
返回
None.

◆ setHeight()

com.foxit.sdk.DialogDescriptionElement.setHeight ( int  value)

Set 指定元素的高度(以像素为单位)。

如果未指定高度,则使用内容的组合高度。

参数
[in]value指定元素的高度(以像素为单位)。
返回
None.

◆ setItalic()

com.foxit.sdk.DialogDescriptionElement.setItalic ( boolean  value)

Set 指定字体是否为斜体。

参数
[in]value指定字体是否为斜体。
返回
None.

◆ setItem_id()

com.foxit.sdk.DialogDescriptionElement.setItem_id ( String  value)

Set 此对话框的项目ID。

参数
[in]value此对话框的项目ID。
返回
None.

◆ setName()

com.foxit.sdk.DialogDescriptionElement.setName ( String  value)

Set 对话框元素的显示名称。

参数
[in]value对话框元素的显示名称。
返回
None.

◆ setNext_tab()

com.foxit.sdk.DialogDescriptionElement.setNext_tab ( String  value)

Set tab顺序中下一个对话框项目的项目ID。

参数
[in]valueTab顺序中下一个对话框项目的项目ID。
返回
None.

◆ setType()

com.foxit.sdk.DialogDescriptionElement.setType ( String  value)

Set 此对话框元素的类型。

参数
[in]value此对话框元素的类型。
返回
None.

◆ setWidth()

com.foxit.sdk.DialogDescriptionElement.setWidth ( int  value)

Set 指定元素的宽度(以像素为单位)。

如果未指定宽度,则使用内容的组合宽度。

参数
[in]value指定元素的宽度(以像素为单位)。
返回
None.