📄 infoparameter.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: InfoParameter.java
package org.gudy.azureus2.ui.swt.config;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.gudy.azureus2.core3.config.COConfigurationManager;
import org.gudy.azureus2.core3.util.AERunnable;
import org.gudy.azureus2.ui.swt.Utils;
import org.gudy.azureus2.ui.swt.components.BufferedLabel;
// Referenced classes of package org.gudy.azureus2.ui.swt.config:
// Parameter
public class InfoParameter extends Parameter
{
private String name;
private BufferedLabel label;
public InfoParameter(Composite composite, String name)
{
this(composite, name, COConfigurationManager.getStringParameter(name));
}
public InfoParameter(Composite composite, String name, String defaultValue)
{
super(name);
this.name = name;
label = new BufferedLabel(composite, 0);
String value = COConfigurationManager.getStringParameter(name, defaultValue);
label.setText(value);
}
public void setValue(final String value)
{
Utils.execSWTThread(new AERunnable() {
final String val$value;
final InfoParameter this$0;
public void runSupport()
{
if (label == null || label.isDisposed() || label.getText().equals(value))
{
return;
} else
{
label.setText(value);
return;
}
}
{
this$0 = InfoParameter.this;
value = s;
super();
}
});
if (!COConfigurationManager.getStringParameter(name).equals(value))
COConfigurationManager.setParameter(name, value);
}
public void setLayoutData(Object layoutData)
{
label.setLayoutData(layoutData);
}
public String getValue()
{
return label.getText();
}
public Control getControl()
{
return label.getControl();
}
public void setValue(Object value)
{
if (value instanceof String)
setValue((String)value);
}
public Object getValueObject()
{
return COConfigurationManager.getStringParameter(name);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -