Another common example is adding listeners to a preference store so you can update your UI when a preference changes.
还有一种常见的情形,是把侦听器添加到偏好存储以便您能够在偏好改变时更新ui。
The problem is that if you don't remove the preference store listener, you'll accumulate listeners because the preference store is typically closed only at shutdown.
问题在于如果您不删除偏好存储侦听器,您会导致侦听器累积,因为一般而言,偏好存储只有在应用程序关闭时才会被关闭。
I've seen developers add a preference store listener when their view is created or when an action is created.
我曾见过有开发人员在创建视图或创建动作时添加偏好存储侦听器。
You can observe that the preference values that you specified in the Portlet Deployment Descriptor Preference Store are displayed correctly, as shown in Figure 51.
您可以观察到在PortletDeploymentDescriptor 中指定的偏好值,会得到合适的显示,如图 51 所示。
The property store notifies listeners when a preference changes (for instance, through the preference page).
当首选项发生变化(例如,通过首选项页做了更改)时,属性存储就通知侦听器。
The store must be initialized with default values for every preference (and, indeed, the store only records a preference if its value is not the default).
必须用每个首选项的缺省值来初始化该存储(并且,事实上,如果首选项的值不是缺省值,则该存储只记录一条首选项)。
With the preferences API, you can have your application collect and store simple preference information.
利用首选项api,您可以让自己的应用程序收集和存储简单的首选项信息。
You would store a font preference in the user tree, as that is a user-specific issue.
您要将字体首选项存储在用户树中,因为这是用户特定的内容。
You need to store the globalization preference Settings in a table database.
需要将全球化首选项设置存储在表数据库中。
In this code snippet, the constant ACRONYM_LIST is the key used to get and set the data in the preference store.
在这个代码片段中,常量acronym_list是用于获取和设置首选存储中的数据的关键字。
This information is retrieved from the preference store.
从首选项存储中检索该信息。
Where to store seeds with recommendations in order of preference and future viability.
在哪里存储未来与种子活力和建议,以便优先。
You store your preferences in a preference page called Google Map as shown in figure 8.
您将在一个名为GoogleMap的首选项页面中存储首选项,如图8所示。
The most useful method for us is initializeDefaultPreferences(), which initializes default values in the preference store, as shown here
对我们来说,最有用的方法是initializeDefaultPreferences() ,它初始化首选项存储中的缺省值,如下面所示
You can use cookies to store user preference information, such as language and currency.
您可以在cookie中存储用户首选项信息,比如语言和货币。
EJFace provides only the PreferencePage to store the required preference data you want, such as server info, user name, and password.
eJFace只提供PreferencePage来存储您所需的必备首选项数据,例如服务器信息、用户名和密码。
At this point, you have implemented the mechanism to store the user preferences and to generate the URL to the Google service including the preference values.
至此,您已经实现了储存用户首选项并生成包含首选项值的Google服务url的机制。
This is a convenience class that can be used to store constant values used by your preference page. You can replace the auto-generated code with the following code.
这是一个方便的类,可用于存储您的首选项页面所使用的常量值。
The living space and culture preference of people in Shandong could be observed through the store custom of Hong Ji Tang.
从宏济堂店铺习俗的背后,可以透视出从历史到现代山东人的生存空间与文化选择。
The living space and culture preference of people in Shandong could be observed through the store custom of Hong Ji Tang.
从宏济堂店铺习俗的背后,可以透视出从历史到现代山东人的生存空间与文化选择。
应用推荐