getproperty

getpropertygetproperty
  1. By using the invoke and getProperty methods , you can give them what they need .

    使用invoke和getProperty方法,您可以为他们提供其所需信息。

  2. But the invoke method , such as getProperty , returns an object of class Object .

    但是invoke方法(例如getProperty)返回一个Object类的对象。

  3. The getProperty and invoke methods are usually sufficient to tackle any problem that Java custom controls present .

    getProperty和invoke方法一般情况下足以满足处理Java定制控件所遇到的问题。

  4. Finally , I use GetProperty to get information about a specified property of the control and then get the value of the control property using the GetValue method .

    最后使用GetProperty获取控件的指定属性的信息,并使用GetValue方法获取控件属性值。

  5. Because every Java property has a get and set method associated with it , you can do everything that you can do with getProperty with invoke .

    因为每个Java属性都具有get-and-set方法,因此您可以使用invoke实现与getProperty相同的功能。

  6. The result of judicious design , all dynamic method calls get routed through invokeMethod and property access through getProperty and setProperty .

    明智设计的结果是:通过invokeMethod调用所有的动态方法,通过getProperty和setProperty访问属性。

  7. In fact , in this case , color is a property of the ColorCanvas control , so you could have used the getProperty method to get the same information .

    事实上,本例中颜色是ColorCanvas控件的一种属性,因此您可以使用getProperty方法获取相同的信息。

  8. Using getProperty for a boolean is incorrect , but it is so common that the WSDL2Java tool in WebSphere can handle these differences .

    把getProperty当成一个布尔类型使用是不正确的,但是由于这佯做是如此的普遍,以致WebSphere中的WSDL2Java工具可以处理这些不同。

  9. The getProperty method returns an instance of the class Object , so you must cast the result into the appropriate type , which , in this case , is a string .

    getProperty方法返回Object类的一个实例,因此您必须把结果转换成合适的类型,在本例中是string型。

  10. Like the boolean getProperty , non-camelcase accessors are not legal and are not recognized as accessors .

    同布尔型getProperty一样,非camelcase访问器是不合法的,并且不能作为访问器被识别。

  11. When modifying them for Java applications , change the values you query from methods that use getProperty () because these values are often different , even for the same types of controls .

    为Java应用程序修改这些类时,需要更改使用getProperty()从这些方法中查询到的值,因为这些值经常不同,甚至对于相同类型的控件也是如此。

  12. There is no mechanism in the mapping meta-data file to distinguish these two styles of boolean property because the boolean getProperty is an incorrect accessor .

    在映射元数据文件中没有辨别这两种样式的布尔型属性的机制,因为布尔型getProperty是一个不正确的访问器。

  13. As we discussed earlier , it is much more intuitive to call a getText () method than to call getProperty (" . value ") . toString () .

    正如前面所讨论的,调用getText()方法要比调用getProperty(“.value”)直观得多。

  14. Finally , if a call is made to the id property ( that is , the object 's key ), the getProperty method is smart enough to ask the underlying key for its id.

    最后,如果对id属性(即,对象的键)进行一个调用,getProperty方法很智能,能够询问底层key以获取它的id。

  15. By overriding invokeMethod , getProperty and setProperty we can intercept every single call to our Objects without the need for a proxy or byte-code manipulation .

    通过覆盖invokeMethod、getProperty和setProperty我们可以拦截每个对我们对象的单个调用,无需代理或字节码处理。

  16. However , you cannot quickly determine which indices match which buttons without looping through the array and printing each index and the button [ index ] . getProperty (" text ") string .

    然而,如果不循环扫描该数组,并打印出每个索引号和button[index].getProperty(“text”)字符串的话,就不能很快确定哪些索引号匹配哪些按钮。

  17. At runtime , if a message is passed to an object that doesn 't exist as a property or method defined in the class or its hierarchy , getProperty () or invokeMethod () is called .

    在运行时,如果向一个对象传递消息,而这个对象不是作为类或者其子类中定义的属性或者方法存在,那么就调用getProperty()或者invokeMethod()方法。