當前位置: 首頁>>代碼示例>>Java>>正文


Java BooleanParameter類代碼示例

本文整理匯總了Java中org.gudy.azureus2.plugins.ui.config.BooleanParameter的典型用法代碼示例。如果您正苦於以下問題:Java BooleanParameter類的具體用法?Java BooleanParameter怎麽用?Java BooleanParameter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BooleanParameter類屬於org.gudy.azureus2.plugins.ui.config包,在下文中一共展示了BooleanParameter類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: UPnPPluginService

import org.gudy.azureus2.plugins.ui.config.BooleanParameter; //導入依賴的package包/類
protected
UPnPPluginService(
	UPnPWANConnection				_connection,
	UPnPWANConnectionPortMapping[]	_ports,
	BooleanParameter				_alert_success,
	BooleanParameter				_grab_ports,
	BooleanParameter				_alert_other_port_param,
	BooleanParameter				_release_mappings)
{
	connection				= _connection;
	alert_success			= _alert_success;
	grab_ports				= _grab_ports;
	alert_other_port_param	= _alert_other_port_param;
	release_mappings		= _release_mappings;
	
	for (int i=0;i<_ports.length;i++){

		service_mappings.add( new serviceMapping( _ports[i]));
	}
}
 
開發者ID:thangbn,項目名稱:Direct-File-Downloader,代碼行數:21,代碼來源:UPnPPluginService.java

示例2: BuddyPluginTracker

import org.gudy.azureus2.plugins.ui.config.BooleanParameter; //導入依賴的package包/類
public
BuddyPluginTracker(
	BuddyPlugin					_plugin,
	BasicPluginConfigModel		_config )
{
	plugin		= _plugin;
	
	final BooleanParameter te = _config.addBooleanParameter2("azbuddy.tracker.enabled", "azbuddy.tracker.enabled", true );
	
	tracker_enabled = te.getValue();
	
	te.addListener(
		new ParameterListener()
		{
			public void 
			parameterChanged(
				Parameter param )
			{
				tracker_enabled = te.getValue();
				
				checkEnabledState();
			}
		});
	
	// Assumed if we already have a plugin reference, that the
	// Azureus Core is available
	GlobalManager gm = AzureusCoreFactory.getSingleton().getGlobalManager();
	
	gm.addListener(
		new GlobalManagerAdapter()
		{
			public void 
			seedingStatusChanged( 
				boolean seeding_only_mode,
				boolean potentially_seeding_only )
			{
				seeding_only = potentially_seeding_only;
				
				checkEnabledState();
			}
		}, false );
	
	seeding_only = gm.isPotentiallySeedingOnly();
	
	checkEnabledState();
}
 
開發者ID:thangbn,項目名稱:Direct-File-Downloader,代碼行數:47,代碼來源:BuddyPluginTracker.java

示例3: initialise

import org.gudy.azureus2.plugins.ui.config.BooleanParameter; //導入依賴的package包/類
@Override
public void initialise(PluginInterface pi, BooleanParameter icon_enable) {
}
 
開發者ID:vuze,項目名稱:vuze-remote-for-android,代碼行數:4,代碼來源:VuzeService.java

示例4: initialise

import org.gudy.azureus2.plugins.ui.config.BooleanParameter; //導入依賴的package包/類
public void
initialise(
	PluginInterface			pi,
	BooleanParameter		icon_enable );
 
開發者ID:AcademicTorrents,項目名稱:AcademicTorrents-Downloader,代碼行數:5,代碼來源:PairingManagerImpl.java


注:本文中的org.gudy.azureus2.plugins.ui.config.BooleanParameter類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。