本文整理匯總了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]));
}
}
示例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();
}
示例3: initialise
import org.gudy.azureus2.plugins.ui.config.BooleanParameter; //導入依賴的package包/類
@Override
public void initialise(PluginInterface pi, BooleanParameter icon_enable) {
}
示例4: initialise
import org.gudy.azureus2.plugins.ui.config.BooleanParameter; //導入依賴的package包/類
public void
initialise(
PluginInterface pi,
BooleanParameter icon_enable );