• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java DockingConstants类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.vlsolutions.swing.docking.DockingConstants的典型用法代码示例。如果您正苦于以下问题:Java DockingConstants类的具体用法?Java DockingConstants怎么用?Java DockingConstants使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DockingConstants类属于com.vlsolutions.swing.docking包,在下文中一共展示了DockingConstants类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setLayout

import com.vlsolutions.swing.docking.DockingConstants; //导入依赖的package包/类
/**
 *
 * Main constructor for the GUIRps class.
 *
 */
public 						GUIRps()
{
	key.setName("Rps");
       key.setTooltip("List of remote process");
       setLayout(new BorderLayout());

       textArea.setEditable(false);

       add(new JScrollPane(textArea),BorderLayout.CENTER);
       //add(textArea, BorderLayout.CENTER);

       key.setMaximizeEnabled(true);
       key.setCloseEnabled(false);
       key.setAutoHideBorder(DockingConstants.HIDE_RIGHT);

}
 
开发者ID:florentw,项目名称:java-membership-protocol,代码行数:22,代码来源:GUIRps.java


示例2: restoreDefault

import com.vlsolutions.swing.docking.DockingConstants; //导入依赖的package包/类
/**
 * Restores the default layout of the perspectives. This method only works for predefined
 * perspectives (like {@link #DESIGN} and {@link #RESULT}).
 *
 * @param perspectiveName
 *            the name of the perspective which should be restored
 *
 * @throws IllegalAccessException
 *             if the perspective is not known
 */
public void restoreDefault(String perspectiveName) {
	WSDockKey processPanelKey = new WSDockKey(ProcessPanel.PROCESS_PANEL_DOCK_KEY);
	WSDockKey propertyTableKey = new WSDockKey(OperatorPropertyPanel.PROPERTY_EDITOR_DOCK_KEY);
	WSDockKey resultsKey = new WSDockKey(ResultDisplay.RESULT_DOCK_KEY);
	WSDockKey repositoryKey = new WSDockKey(RepositoryBrowser.REPOSITORY_BROWSER_DOCK_KEY);
	WSDockKey newOperatorEditorKey = new WSDockKey(NewOperatorEditor.NEW_OPERATOR_DOCK_KEY);
	WSDockKey operatorHelpKey = new WSDockKey(OperatorDocumentationBrowser.OPERATOR_HELP_DOCK_KEY);

	if (DESIGN.equals(perspectiveName)) {
		Perspective designPerspective = getPerspective(DESIGN);
		WSDesktop designDesktop = designPerspective.getWorkspace().getDesktop(0);
		designDesktop.clear();
		designDesktop.addDockable(processPanelKey);
		designDesktop.split(processPanelKey, propertyTableKey, DockingConstants.SPLIT_RIGHT, 0.8);
		designDesktop.split(propertyTableKey, operatorHelpKey, DockingConstants.SPLIT_BOTTOM, .66);
		designDesktop.split(processPanelKey, repositoryKey, DockingConstants.SPLIT_LEFT, 0.25);
		designDesktop.split(repositoryKey, newOperatorEditorKey, DockingConstants.SPLIT_BOTTOM, 0.5);
	} else if (RESULT.equals(perspectiveName)) {
		Perspective resultPerspective = getPerspective(RESULT);
		WSDesktop resultsDesktop = resultPerspective.getWorkspace().getDesktop(0);
		resultsDesktop.clear();
		resultsDesktop.addDockable(resultsKey);
		resultsDesktop.split(resultsKey, repositoryKey, DockingConstants.SPLIT_RIGHT, 0.8);
	} else if (REMOTE.equals(perspectiveName)) {
		Perspective remotePerspective = getPerspective(REMOTE);
		WSDesktop remoteDesktop = remotePerspective.getWorkspace().getDesktop(0);
		WSDockKey remoteKey = new WSDockKey(RemoteResultDisplay.REMOTE_DOCK_KEY);
		remoteDesktop.clear();
		remoteDesktop.addDockable(remoteKey);
		remoteDesktop.split(remoteKey, repositoryKey, DockingConstants.SPLIT_RIGHT, 0.8);
	} else {
		throw new IllegalArgumentException("Not a predefined view: " + perspectiveName);
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:45,代码来源:PerspectiveModel.java


示例3: restoreDefault

import com.vlsolutions.swing.docking.DockingConstants; //导入依赖的package包/类
/**
 * Restores the default layout of the perspectives. This method only works for predefined
 * perspectives (like {@link #DESIGN} and {@link #RESULT}).
 *
 * @param perspectiveName
 *            the name of the perspective which should be restored
 *
 * @throws IllegalAccessException
 *             if the perspective is not known
 */
public void restoreDefault(String perspectiveName) {
	WSDockKey processPanelKey = new WSDockKey(ProcessPanel.PROCESS_PANEL_DOCK_KEY);
	WSDockKey propertyTableKey = new WSDockKey(OperatorPropertyPanel.PROPERTY_EDITOR_DOCK_KEY);
	WSDockKey resultsKey = new WSDockKey(ResultDisplay.RESULT_DOCK_KEY);
	WSDockKey repositoryKey = new WSDockKey(RepositoryBrowser.REPOSITORY_BROWSER_DOCK_KEY);
	WSDockKey newOperatorEditorKey = new WSDockKey(NewOperatorEditor.NEW_OPERATOR_DOCK_KEY);
	WSDockKey operatorHelpKey = new WSDockKey(OperatorDocumentationBrowser.OPERATOR_HELP_DOCK_KEY);

	if (DESIGN.equals(perspectiveName)) {
		Perspective designPerspective = getPerspective(DESIGN);
		WSDesktop designDesktop = designPerspective.getWorkspace().getDesktop(0);
		designDesktop.clear();
		designDesktop.addDockable(processPanelKey);
		designDesktop.split(processPanelKey, propertyTableKey, DockingConstants.SPLIT_RIGHT, 0.8);
		designDesktop.split(propertyTableKey, operatorHelpKey, DockingConstants.SPLIT_BOTTOM, .66);
		designDesktop.split(processPanelKey, repositoryKey, DockingConstants.SPLIT_LEFT, 0.25);
		designDesktop.split(repositoryKey, newOperatorEditorKey, DockingConstants.SPLIT_BOTTOM, 0.5);
	} else if (RESULT.equals(perspectiveName)) {
		Perspective resultPerspective = getPerspective(RESULT);
		WSDesktop resultsDesktop = resultPerspective.getWorkspace().getDesktop(0);
		resultsDesktop.clear();
		resultsDesktop.addDockable(resultsKey);
		resultsDesktop.split(resultsKey, repositoryKey, DockingConstants.SPLIT_RIGHT, 0.8);
	} else {
		throw new IllegalArgumentException("Not a predefined view: " + perspectiveName);
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:38,代码来源:PerspectiveModel.java


示例4: DockKey

import com.vlsolutions.swing.docking.DockingConstants; //导入依赖的package包/类
/**
* 
* Main constructor for the GUIFileExplorer.
* Allocates all memory resources.
* 
*/
  public 						GUIFileExplorer()
  {
  	initTreeSys(".");
  	key = new DockKey("File Explorer");
      setLayout(new BorderLayout());
      jsp = new JScrollPane(tree);
      jsp.setPreferredSize(new Dimension(200, 200));
      JButton changeRoot = new JButton("Change root ...");
changeRoot.setToolTipText("Changes the root directory.");
changeRoot.addActionListener(new ActionListener(){
       public void actionPerformed(ActionEvent e)
       {
       	JFileChooser		fileChoose = new JFileChooser();
       	
       	fileChoose.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
   		int returnVal = fileChoose.showOpenDialog(fileChoose);
   		if (returnVal == JFileChooser.APPROVE_OPTION)
   		{
   			File file = fileChoose.getSelectedFile();
   			initTreeSys(file.getAbsolutePath());
   			remove(jsp);
   	        jsp = new JScrollPane(tree);
   	        add(jsp, BorderLayout.CENTER);
   	        revalidate();
   			//repaint();
   		}
       }});
add(changeRoot, BorderLayout.NORTH);
      add(jsp, BorderLayout.CENTER);
      key.setName(" Explorer");
      key.setTooltip("Explore your filesystem.");
      key.setIcon(new ImageIcon("icons/file_explorer.gif"));
      key.setAutoHideBorder(DockingConstants.HIDE_LEFT);
      key.setMaximizeEnabled(false);
      key.setCloseEnabled(false);
      
  }
 
开发者ID:florentw,项目名称:java-membership-protocol,代码行数:44,代码来源:GUIFileExplorer.java


示例5: DockingDesktop

import com.vlsolutions.swing.docking.DockingConstants; //导入依赖的package包/类
/**
	 *
	 * Main constructor for the Hypership GUI
	 * Initialize all the GUI widgets.
	 *
	 * @param s : the title of the frame
	 * @param glCanv : the contained OpenGL canvas
	 *
	 */
public 								Hypership(String s, GLCanvas glCanv)
{
	super(s);
	desk = new DockingDesktop();
	graphe = new GrapheMembership();
	rendu = new Rendu();
	init_graphe();
	lastPicked = 0;
	rendu.addObjet(graphe);
	membership = new MSMain(this);
	processManager = new GUIProcessManager();
	pickedMember = new MSMember("", "", 0);
	fileExplorePanel = new GUIFileExplorer();
	infoPanel = new GUIInfos(this);
	gl = new GUIOpenGL(glCanv, this);
	rpsPanel = new GUIRps();
	rpsPanel.sendInfo("Welcome to the membership.\n");
	setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    toolBar = new GUIToolbar(desk, getContentPane(), this);
    desk.addDockable(gl);
    desk.split(gl, fileExplorePanel, DockingConstants.SPLIT_LEFT);
    desk.split(gl, infoPanel, DockingConstants.SPLIT_RIGHT);
    desk.split(infoPanel, rpsPanel, DockingConstants.SPLIT_BOTTOM);
    desk.setDockableWidth(fileExplorePanel, 0.2);
    desk.setDockableWidth(infoPanel, 0.2);
    menuBar = new GUIMenu(toolBar);
    this.setJMenuBar(menuBar);
}
 
开发者ID:florentw,项目名称:java-membership-protocol,代码行数:38,代码来源:Hypership.java


示例6: getAutoHideBorder

import com.vlsolutions.swing.docking.DockingConstants; //导入依赖的package包/类
/**
 * @return the autoHideBorder
 */
public DockingConstants.Hide getAutoHideBorder() {
	return this.autoHideBorder;
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:7,代码来源:VLDockingViewDescriptor.java


示例7: setAutoHideBorder

import com.vlsolutions.swing.docking.DockingConstants; //导入依赖的package包/类
/**
 * @param autoHideBorder the autoHideBorder to set
 */
public void setAutoHideBorder(DockingConstants.Hide autoHideBorder) {
	this.autoHideBorder = autoHideBorder;
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:7,代码来源:VLDockingViewDescriptor.java


示例8: restoreDefault

import com.vlsolutions.swing.docking.DockingConstants; //导入依赖的package包/类
protected void restoreDefault(String perspectiveName) {
		WSDockKey processPanelKey = new WSDockKey(ProcessPanel.PROCESS_PANEL_DOCK_KEY);
		WSDockKey propertyTableKey = new WSDockKey(OperatorPropertyPanel.PROPERTY_EDITOR_DOCK_KEY);
		WSDockKey messageViewerKey = new WSDockKey(LoggingViewer.LOG_VIEWER_DOCK_KEY);
		WSDockKey resultsKey = new WSDockKey(ResultDisplay.RESULT_DOCK_KEY);
		WSDockKey repositoryKey = new WSDockKey(RepositoryBrowser.REPOSITORY_BROWSER_DOCK_KEY);
		WSDockKey newOperatorEditorKey = new WSDockKey(NewOperatorEditor.NEW_OPERATOR_DOCK_KEY);
		WSDockKey errorTableKey = new WSDockKey(ErrorTable.ERROR_TABLE_DOCK_KEY);
		WSDockKey xmlEditorKey = new WSDockKey(XMLEditor.XML_EDITOR_DOCK_KEY);
		WSDockKey commentEditorKey = new WSDockKey(CommentEditor.COMMENT_EDITOR_DOCK_KEY);
		WSDockKey operatorHelpKey = new WSDockKey(OperatorDocViewer.OPERATOR_HELP_DOCK_KEY);
		WSDockKey processContextEditorKey = new WSDockKey(ProcessContextProcessEditor.PROCESS_CONTEXT_DOCKKEY);
		WSDockKey welcomeKey = new WSDockKey(WelcomeScreen.WELCOME_SCREEN_DOCK_KEY);
		//WSDockKey overviewKey = new WSDockKey(OverviewPanel.OVERVIEW_DOCK_KEY);

		if ("design".equals(perspectiveName)) {
			Perspective designPerspective = getPerspective("design");
			WSDesktop designDesktop = designPerspective.getWorkspace().getDesktop(0);
			designDesktop.clear();
			designDesktop.addDockable(processPanelKey);		
			designDesktop.split(processPanelKey, propertyTableKey, DockingConstants.SPLIT_RIGHT, 0.8);				
			designDesktop.split(propertyTableKey, operatorHelpKey, DockingConstants.SPLIT_BOTTOM, .66);
			designDesktop.createTab(propertyTableKey, processContextEditorKey, 1);
			
			designDesktop.createTab(operatorHelpKey, commentEditorKey, 1);

//			designDesktop.split(processPanelKey, overviewKey, DockingConstants.SPLIT_LEFT, 0.25);
//			designDesktop.split(overviewKey, newOperatorEditorKey, DockingConstants.SPLIT_BOTTOM, 0.2);
//			designDesktop.createTab(newOperatorEditorKey, repositoryKey, 1);
			
			designDesktop.split(processPanelKey, newOperatorEditorKey, DockingConstants.SPLIT_LEFT, 0.25);
			designDesktop.split(newOperatorEditorKey, repositoryKey, DockingConstants.SPLIT_BOTTOM, 0.5);
			//designDesktop.createTab(newOperatorEditorKey, repositoryKey, 1);

			designDesktop.split(processPanelKey, errorTableKey, DockingConstants.SPLIT_BOTTOM, 0.8);
			designDesktop.createTab(errorTableKey, messageViewerKey, 1);

			designDesktop.createTab(processPanelKey, xmlEditorKey, 1);
		} else if ("result".equals(perspectiveName)) {
			Perspective resultPerspective = getPerspective("result");
			WSDesktop resultsDesktop = resultPerspective.getWorkspace().getDesktop(0);
			resultsDesktop.clear();
			resultsDesktop.addDockable(resultsKey);
			resultsDesktop.split(resultsKey, messageViewerKey, DockingConstants.SPLIT_BOTTOM, 0.8);
			resultsDesktop.split(messageViewerKey, new WSDockKey(SystemMonitor.SYSTEM_MONITOR_DOCK_KEY), DockingConstants.SPLIT_RIGHT, 0.8);
			resultsDesktop.split(resultsKey, repositoryKey, DockingConstants.SPLIT_RIGHT, 0.8);		
		} else if ("welcome".equals(perspectiveName)) {
			Perspective welcomePerspective = getPerspective("welcome");	
			WSDesktop welcomeDesktop = welcomePerspective.getWorkspace().getDesktop(0);
			welcomeDesktop.clear();
			welcomeDesktop.addDockable(welcomeKey);
		} else {
			throw new IllegalArgumentException("Not a predevined perspective: "+perspectiveName);
		}
	}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:56,代码来源:Perspectives.java



注:本文中的com.vlsolutions.swing.docking.DockingConstants类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Layout类代码示例发布时间:2022-05-22
下一篇:
Java InputOutput类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap