getValue 返回选中的日期 ; 方法撷取可扩充字串值
getValue target 获取编辑框的值 ; 从编辑器的文本获取值
getValue none 获取组件的值 ; 返回当前的搜索值 ; 返回当前查询值
getValue value 获取单选框值 ; 获取复选框值
If we had added a getValue method to class Leaf, we would either have to return some sort of flag value indicating that the method application is non-sensical or actually throw an exception.
如果我们已经向 Leaf 类添加了 getValue 方法,我们要么是不得不返回一些类型的标志值表明此方法应用是无意义的,要么是实际抛出一个异常。
The getValue(s) methods are simple utilities similar to the getSelection() method in Listing 7.
getValue(s)方法是类似于 清单 7中的 getSelection()方法的简单实用程序。
Note that you need to cast the return type -- getValue returns an object of type Object.
注意:您需要强制转换返回类型 ― getValue 返回一个 Object 类型的对象。
应用推荐