Foxit PDF SDK
com.foxit.sdk.pdf.interform.ChoiceOption类 参考

Public 成员函数

 ChoiceOption ()
 构造函数
 
 ChoiceOption (String option_value, String option_label, boolean selected, boolean default_selected)
 带参数的构造函数。 更多...
 
 ChoiceOption (ChoiceOption option)
 复制构造函数。 更多...
 
synchronized void delete ()
 直接清除C++相关资源。 更多...
 
boolean getDefault_selected ()
 Get 用于指示选项是否默认被选择。 更多...
 
String getOption_label ()
 Get 选项的显示字符串值。 更多...
 
String getOption_value ()
 Get 选项字符串值。 更多...
 
boolean getSelected ()
 Get 用于指示选项是否被选择。 更多...
 
void set (String option_value, String option_label, boolean selected, boolean default_selected)
 设置值。 更多...
 
void setDefault_selected (boolean value)
 Set 用于指示选项是否默认被选择。 更多...
 
void setOption_label (String value)
 Set 选项的显示字符串值。 更多...
 
void setOption_value (String value)
 Set 选项字符串值。 更多...
 
void setSelected (boolean value)
 Set 用于指示选项是否被选择。 更多...
 

详细描述

此类表示列表框或组合框中选项的数据。

构造及析构函数说明

◆ ChoiceOption() [1/2]

com.foxit.sdk.pdf.interform.ChoiceOption.ChoiceOption ( String  option_value,
String  option_label,
boolean  selected,
boolean  default_selected 
)

带参数的构造函数。

参数
[in]option_value选项字符串值。
[in]option_label选项的显示字符串值。
[in]selectedtrue 表示选项被选择,false 表示 选项未被选择。
[in]default_selectedtrue 表示选项默认被选择,false 表示 选项默认不被选择。

◆ ChoiceOption() [2/2]

com.foxit.sdk.pdf.interform.ChoiceOption.ChoiceOption ( ChoiceOption  option)

复制构造函数。

参数
[in]option另一个选择选项对象。

成员函数说明

◆ delete()

synchronized void com.foxit.sdk.pdf.interform.ChoiceOption.delete ( )

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

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

◆ getDefault_selected()

com.foxit.sdk.pdf.interform.ChoiceOption.getDefault_selected ( )

Get 用于指示选项是否默认被选择。

返回
用于指示选项是否默认被选择。

◆ getOption_label()

com.foxit.sdk.pdf.interform.ChoiceOption.getOption_label ( )

Get 选项的显示字符串值。

返回
选项的显示字符串值。

◆ getOption_value()

com.foxit.sdk.pdf.interform.ChoiceOption.getOption_value ( )

Get 选项字符串值。

返回
选项字符串值。

◆ getSelected()

com.foxit.sdk.pdf.interform.ChoiceOption.getSelected ( )

Get 用于指示选项是否被选择。

返回
用于指示选项是否被选择。

◆ set()

void com.foxit.sdk.pdf.interform.ChoiceOption.set ( String  option_value,
String  option_label,
boolean  selected,
boolean  default_selected 
)

设置值。

参数
[in]option_value选项字符串值。
[in]option_label选项的显示字符串值。
[in]selectedtrue 表示选项被选择,false 表示 选项未被选择。
[in]default_selectedtrue 表示选项默认被选择,false 表示 选项默认不被选择。
返回
无。

◆ setDefault_selected()

com.foxit.sdk.pdf.interform.ChoiceOption.setDefault_selected ( boolean  value)

Set 用于指示选项是否默认被选择。

参数
[in]value用于指示选项是否默认被选择。
返回
None.

◆ setOption_label()

com.foxit.sdk.pdf.interform.ChoiceOption.setOption_label ( String  value)

Set 选项的显示字符串值。

参数
[in]value选项的显示字符串值。
返回
None.

◆ setOption_value()

com.foxit.sdk.pdf.interform.ChoiceOption.setOption_value ( String  value)

Set 选项字符串值。

参数
[in]value选项字符串值。
返回
None.

◆ setSelected()

com.foxit.sdk.pdf.interform.ChoiceOption.setSelected ( boolean  value)

Set 用于指示选项是否被选择。

参数
[in]value用于指示选项是否被选择。
返回
None.