⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bufferedlabel.java

📁 java 文件下载器。可自定义
💻 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:   BufferedLabel.java

package org.gudy.azureus2.ui.swt.components;

import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.*;
import org.gudy.azureus2.ui.swt.mainwindow.ClipboardCopy;

// Referenced classes of package org.gudy.azureus2.ui.swt.components:
//			BufferedWidget

public class BufferedLabel extends BufferedWidget
{

	protected Label label;
	protected String value;

	public BufferedLabel(Composite composite, int attrs)
	{
		BufferedWidget(new Label(composite, attrs));
		value = "";
		label = (Label)getWidget();
		ClipboardCopy.addCopyToClipMenu(label, new org.gudy.azureus2.ui.swt.mainwindow.ClipboardCopy.copyToClipProvider() {

			final BufferedLabel this$0;

			public String getText()
			{
				return label.getText();
			}

			
			{
				this$0 = BufferedLabel.this;
				Object();
			}
		});
	}

	public boolean isDisposed()
	{
		return label.isDisposed();
	}

	public void setLayoutData(GridData gd)
	{
		label.setLayoutData(gd);
	}

	public void setLayoutData(FormData gd)
	{
		label.setLayoutData(gd);
	}

	public void setLayoutData(Object ld)
	{
		label.setLayoutData(ld);
	}

	public Control getControl()
	{
		return label;
	}

	public void setText(String new_value)
	{
		if (label.isDisposed())
			return;
		if (new_value == value)
			return;
		if (new_value != null && value != null && new_value.equals(value))
		{
			return;
		} else
		{
			value = new_value;
			label.setText(value != null ? value.replaceAll("&", "&&") : "");
			return;
		}
	}

	public String getText()
	{
		return value != null ? value : "";
	}

	public void addMouseListener(MouseListener listener)
	{
		label.addMouseListener(listener);
	}

	public void setForeground(Color color)
	{
		label.setForeground(color);
	}

	public void setCursor(Cursor cursor)
	{
		label.setCursor(cursor);
	}

	public void setToolTipText(String toolTipText)
	{
		label.setToolTipText(toolTipText);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -