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

📄 skinlinklabel.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:   SkinLinkLabel.java

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

import com.aelitis.azureus.ui.swt.utils.ColorCache;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.*;
import org.gudy.azureus2.ui.swt.Utils;
import org.gudy.azureus2.ui.swt.mainwindow.Cursors;

public class SkinLinkLabel
{

	private Label linkLabel;
	private Color textLinkColor;
	private Color textLinkColorHover;

	public SkinLinkLabel(Composite parent, final String url)
	{
		linkLabel = null;
		textLinkColor = null;
		textLinkColorHover = null;
		textLinkColor = ColorCache.getColor(parent.getDisplay(), 109, 165, 255);
		textLinkColorHover = ColorCache.getColor(parent.getDisplay(), 179, 208, 255);
		linkLabel = new Label(parent, 0);
		linkLabel.setForeground(textLinkColor);
		linkLabel.setCursor(Cursors.handCursor);
		if (null != url && url.length() > 0)
			linkLabel.setToolTipText(url);
		Listener linkListener = new Listener() {

			final String val$url;
			final SkinLinkLabel this$0;

			public void handleEvent(Event event)
			{
				if (event.type == 3)
					Utils.launch(url);
				else
				if (event.type == 6)
					linkLabel.setForeground(textLinkColorHover);
				else
				if (event.type == 7)
					linkLabel.setForeground(textLinkColor);
			}

			
			{
				this$0 = SkinLinkLabel.this;
				url = s;
				super();
			}
		};
		linkLabel.addListener(3, linkListener);
		linkLabel.addListener(6, linkListener);
		linkLabel.addListener(7, linkListener);
	}

	public Control getControl()
	{
		return linkLabel;
	}

	public Font getFont()
	{
		return linkLabel.getFont();
	}

	public void setFont(Font font)
	{
		linkLabel.setFont(font);
	}



}

⌨️ 快捷键说明

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