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

📄 xscreenmanager.java

📁 XBrowser是一个完全免费并且开源的Web浏览器
💻 JAVA
字号:
/****************************************************************
*              XBrowser  -  eXtended web Browser                *
*                                                               *
*           Copyright (c) 2000-2001  Armond Avanes              *
*     Refer to ReadMe & License files for more information      *
*                                                               *
*                                                               *
*                      By: Armond Avanes                        *
*       Armond555@yahoo.com     &    Armond333@yahoo.com        *
*                http://xbrowser.sourceforge.net/               *
*****************************************************************/
package xbrowser.util;

import java.awt.*;

import xbrowser.renderer.*;
import xbrowser.screen.*;
import xbrowser.bookmark.*;

/** Provides access to main application's dialog windows. */
public final class XScreenManager
{
	/** Returns bookmarks dialog for specified folder. */
	public XBookmarkPropertiesLayout getBookmarkPropertiesLayout(XAbstractBookmark abs_bm, XBookmarkFolder new_parent)
	{
		if( bookmarkPropertiesLayout==null )
			bookmarkPropertiesLayout = new XBookmarkPropertiesLayout();

		bookmarkPropertiesLayout.setBookmark(abs_bm, new_parent);
		return bookmarkPropertiesLayout;
	}

	/** Returns simple Find Dialog. */
	public XFindLayout getFindLayout()
	{
		if( findLayout==null )
			findLayout = new XFindLayout();

		return findLayout;
	}

	/** Returns Find Dialog with search options. */
	public XFindLayout2 getFindLayout2(int search_type)
	{
		if( findLayout2==null )
			findLayout2 = new XFindLayout2();

		findLayout2.setSearchType(search_type);
		return findLayout2;
	}

	/** Returns history dialog. */
	public XHistoryLayout getHistoryLayout()
	{
		if( historyLayout==null )
			historyLayout = new XHistoryLayout();

		return historyLayout;
	}

	/** Returns Import/export bookmarks dialog. */
	public XImportExportBookmarksLayout getImportExportBookmarksLayout(int type, XBookmarkFolder base_folder)
	{
		if( importExportBookmarksLayout==null )
			importExportBookmarksLayout = new XImportExportBookmarksLayout();

		importExportBookmarksLayout.setType(type);
		importExportBookmarksLayout.setBaseFolder(base_folder);

		return importExportBookmarksLayout;
	}

	/** Returns Options Dialog. */
	public XOptionsLayout getOptionsLayout()
	{
		if( optionsLayout==null )
			optionsLayout = new XOptionsLayout();

		return optionsLayout;
	}

	/** Returns Plugin Manager Dialog. */
	public XPluginManagerLayout getPluginManagerLayout()
	{
		if( pluginManagerLayout==null )
			pluginManagerLayout = new XPluginManagerLayout();

		return pluginManagerLayout;
	}

	/** Returns Plugin Properties Dialog. */
	public XPluginPropertiesLayout getPluginPropertiesLayout(XPluginObject plugin)
	{
		if( pluginPropertiesLayout==null )
			pluginPropertiesLayout = new XPluginPropertiesLayout();

		pluginPropertiesLayout.setPlugin(plugin);
		return pluginPropertiesLayout;
	}

	/** Returns Page Properties Dialog. */
	public XPagePropertiesLayout getPagePropertiesLayout(XPageProperties prop)
	{
		if( pagePropertiesLayout==null )
			pagePropertiesLayout = new XPagePropertiesLayout();

		pagePropertiesLayout.setProperties(prop);
		return pagePropertiesLayout;
	}

// Attributes:
	private XBookmarkPropertiesLayout bookmarkPropertiesLayout = null;
	private XFindLayout findLayout = null;
	private XFindLayout2 findLayout2 = null;
	private XHistoryLayout historyLayout = null;
	private XImportExportBookmarksLayout importExportBookmarksLayout = null;
	private XOptionsLayout optionsLayout = null;
	private XPluginManagerLayout pluginManagerLayout = null;
	private XPluginPropertiesLayout pluginPropertiesLayout = null;
	private XPagePropertiesLayout pagePropertiesLayout = null;
}

⌨️ 快捷键说明

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