因?yàn)?/c>所添加的方法需要在基類(lèi)的實(shí)例中可用。
A framework is larger grained than just a single class, typically. Also, you hook into frameworks by subclassing somewhere.
通常你通過(guò)在某個(gè)例子子類(lèi)化來(lái)與框架掛鉤。
With the advent of the Microsoft Win32 API, interprocess subclassing was discouraged and made a bit harder to code.
隨著微軟Win32API的到來(lái),進(jìn)程間子類(lèi)化不再被鼓勵(lì)使用并愈發(fā)變得困難起來(lái)。
When subclassing ServletException, this method can be overridden to create an exception message designed for a specific locale.
當(dāng)子類(lèi)化ServletException時(shí),可以重寫(xiě)該方法來(lái)創(chuàng)建專(zhuān)為本地化設(shè)計(jì)的異常信息。
As you can see, you don't have to do extra work of subclassing them.
如你所見(jiàn),你不必要去做窗口子類(lèi)化的那些額外的工作了。
Note that this button is provided primarily for demonstrating how to use subclassing and callbacks.
注意,提供此按鈕主要是為了演示如何使用子類(lèi)設(shè)置和回調(diào)。
You might think, reasonably enough, that the same enhancement can be accomplished simply by subclassing the XO base class.
您可能會(huì)非常合理地想到,也可以定義XO基類(lèi)的子類(lèi)來(lái)實(shí)現(xiàn)同樣的增強(qiáng)。
you can base a new window class on an existing class, which is called subclassing .
基于一個(gè)已存在類(lèi)上而建立的新的窗口類(lèi)被稱(chēng)為子類(lèi)。
Either subclassing ThreadGroup or installing an implementation of this new interface allows you to change that default behavior.
細(xì)分ThreadGroup或安裝該新接口的實(shí)現(xiàn)都允許您更改默認(rèn)行為。
Superclassing is better than subclassing if you want to create many controls with the same characteristics.
如果你想創(chuàng)建具有相同特征值的多個(gè)控件,超類(lèi)化比子類(lèi)化好得多。
You can use window subclassing to take control over other windows. It's one of the powerful techniques you should have in your arsenal.
你能用窗口子類(lèi)化來(lái)控制其它的窗口。它是種有力的技術(shù),你應(yīng)該將它存入你的兵工廠。
A class that implements Runnable can run without subclassing Thread by instantiating a Thread instance and passing itself in as the target.
實(shí)現(xiàn)Runnable的類(lèi)可以不繼承Thread而實(shí)例化為Thread實(shí)例,將自身作為運(yùn)行目標(biāo)。
The other problem with ActiveRecord that transparent persistence solves is subclassing.
透明持久化解決了的ActiveRecord的另外一個(gè)問(wèn)題就是子類(lèi)化。
The Decorator Pattern provides an alternative to subclassing for extending behavior.
裝飾者模式提供了一種繼承子類(lèi)來(lái)擴(kuò)展行為的選擇。
Historically speaking, the first way to customize the behavior of a program was through subclassing.
以前,定制一個(gè)軟件的行為主要是通過(guò)子類(lèi)化方法實(shí)現(xiàn)的。
Cleaner Web Filter mechanism that allows more pluggable filtering support without subclassing.
更干凈的Web過(guò)濾機(jī)制,無(wú)需子類(lèi)化就可支持更多的插件式過(guò)濾器。
Extension is done by subclassing the aspect and defining a new advice binding in XML or via annotations.
擴(kuò)展是通過(guò)生成方面的子類(lèi)、并在XML中或通過(guò)注釋定義新的通知綁定而實(shí)現(xiàn)的。
This program is primarily meant to demonstrate subclassing.
此程序主要演示如何設(shè)置子類(lèi)。
Scala implementing Java interfaces and subclassing Java classes is 100% seamless.
Scala可以100%無(wú)縫的實(shí)現(xiàn)Java接口,繼承Java類(lèi)。
This kind of coding is tiresome to write, is easy to omit by accident, and does not stop an attacker from subclassing the method.
這樣的代碼編寫(xiě)起來(lái)很無(wú)趣,很容易被意外省略,也無(wú)法阻止攻擊者子類(lèi)化該方法。
Sort any type of data in a ListView Cont - Sort any type of data in a ListView without subclassing or API calls. Very low overhead.
在列表視圖中不需使用子類(lèi)化或者API調(diào)用就能排序任何類(lèi)型的數(shù)據(jù)。具有非常低的開(kāi)銷(xiāo)。
Actually, I modified the subclassing example to do superclassing.
實(shí)際上,我是修改了子類(lèi)化的例子做到超類(lèi)化的。
It turns out that subclassing is not only familiar but is probably the most flexible and straightforward way to map from model to view.
結(jié)果證明,子分類(lèi)方法不但十分常用,而且還可能是從模型映射到視圖最靈活也是最直接的方法。
In GPars, actors can be created from a factory method that takes a closure or by subclassing groovyx. gpars. actor. AbstractPooledActor.
在GPars中,可以利用接受閉包的factory方法或通過(guò)為groovyx.gpars.actor.AbstractPooledActor劃分子類(lèi)來(lái)創(chuàng)建actors。
Actually, it's identical to the window proc in subclassing example.
實(shí)際上,它和在子類(lèi)化例子中的窗口過(guò)程一致。
This is a good thing because without subclassing, the ActiveRecord class doesn't do anything worthwhile.
這是一件好事,因?yàn)?/c>在沒(méi)有子類(lèi)時(shí),ActiveRecord類(lèi)不會(huì)做任何有價(jià)值的事情。
Now we put our attention on how to subclass a window. Note that subclassing is not limited to controls, it can be used with any window.
現(xiàn)在我們把注意力放在如何子類(lèi)化一個(gè)窗口上。注意,子類(lèi)化并不是僅限制于控件,它能被用于任何窗口。
Continue defining the other EClasses in the EcoreX model by subclassing Ecore objects when necessary.
根據(jù)需要對(duì)Ecore對(duì)象劃分子類(lèi),在EcoreX模型中繼續(xù)定義其他EClass。
Instead of subclassing an existing look and feel or theme to change fonts and colors, you modify an XML file.
這次,您不能從現(xiàn)有外觀或主題派生子類(lèi)、修改字體或顏色,而是要修改XML文件。
In this tutorial, we will learn about window subclassing , what it is and how to use it to your advantage.
在這一課中,我們將學(xué)習(xí)什么是窗口子類(lèi)化,以及如何使用它才能對(duì)你有利。
If you want to allow subclassing, for example, you might make the constructor protected.
如果允許單例類(lèi)可以被繼承,需要將構(gòu)造方法設(shè)置為protected屬性。
Modifying existing controls Creating windowed controls Creating graphic controls Subclassing Windows controls Creating nonvisual components
修改已存在的控制方式創(chuàng)建窗口控制方式創(chuàng)建圖形控制方式子類(lèi)窗口控制方式創(chuàng)建非可視組件
Subclassing Controls with a Managed Window Procedure
使用托管窗口過(guò)程創(chuàng)建控件子類(lèi)
Special Control Effects of Control Windows by Message "Misleading" in VB Subclassing Technique
用VB中子類(lèi)技術(shù)中的消息“誤導(dǎo)”實(shí)現(xiàn)控件窗口的特殊控制效果
Implementation and Application of Subclassing Technology in VB
VB中窗口子類(lèi)化技術(shù)的實(shí)現(xiàn)及應(yīng)用
Creating Icon Menu by Subclassing
用子類(lèi)處理實(shí)現(xiàn)圖標(biāo)菜單