当前位置: 首页>>代码示例>>Java>>正文


Java BasicSplitPaneDivider.getBorder方法代码示例

本文整理汇总了Java中javax.swing.plaf.basic.BasicSplitPaneDivider.getBorder方法的典型用法代码示例。如果您正苦于以下问题:Java BasicSplitPaneDivider.getBorder方法的具体用法?Java BasicSplitPaneDivider.getBorder怎么用?Java BasicSplitPaneDivider.getBorder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.swing.plaf.basic.BasicSplitPaneDivider的用法示例。


在下文中一共展示了BasicSplitPaneDivider.getBorder方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: managePortSplitChild

import javax.swing.plaf.basic.BasicSplitPaneDivider; //导入方法依赖的package包/类
/**
 * Removes any border from the <code>DockingPort</code> itself and places the currently 
 * assigned border on the two child components of the <code>DockingPort's</code JSplitPane</code>
 * child.
 * @see basesource.convertor.ui.docking.defaults.BorderManager#managePortSplitChild(basesource.convertor.ui.docking.DockingPort)
 */
public void managePortSplitChild(DockingPort port) {
	if(port==null || !(port.getDockedComponent() instanceof JSplitPane))
		return;
		
	setBorder(port, null);
	
	// clear the border from the split pane		
	JSplitPane split = (JSplitPane) port.getDockedComponent();
	if (split.getUI() instanceof BasicSplitPaneUI) {
		//  grab the divider from the UI and remove the border from it
		BasicSplitPaneDivider divider = ((BasicSplitPaneUI) split.getUI()).getDivider();
		if (divider != null && divider.getBorder()!=null)
			divider.setBorder(null);			
	}
	setBorder(split, null);

	// set the borders on each of the child components
	setBorder(split.getLeftComponent(), assignedBorder);
	setBorder(split.getRightComponent(), assignedBorder);
}
 
开发者ID:Jakegogo,项目名称:concurrent,代码行数:27,代码来源:StandardBorderManager.java

示例2: managePortSplitChild

import javax.swing.plaf.basic.BasicSplitPaneDivider; //导入方法依赖的package包/类
/**
 * Removes any border from the {@code DockingPort} itself and places the
 * currently assigned border on the two child components of the
 * {@code DockingPort's</code JSplitPane} child.
 *
 * @see BorderManager#managePortSplitChild(DockingPort)
 */
public void managePortSplitChild(DockingPort port) {
    if (port == null || !(port.getDockedComponent() instanceof JSplitPane))
        return;

    setBorder(port, null);

    // clear the border from the split pane
    JSplitPane split = (JSplitPane) port.getDockedComponent();
    if (split.getUI() instanceof BasicSplitPaneUI) {
        // grab the divider from the UI and remove the border from it
        BasicSplitPaneDivider divider = ((BasicSplitPaneUI) split.getUI())
                                        .getDivider();
        if (divider != null && divider.getBorder() != null)
            divider.setBorder(null);
    }
    setBorder(split, null);

    // set the borders on each of the child components
    setSubComponentBorder(split.getLeftComponent(), assignedBorder);
    setSubComponentBorder(split.getRightComponent(), assignedBorder);
}
 
开发者ID:humphrej,项目名称:flexdock,代码行数:29,代码来源:StandardBorderManager.java

示例3: clearSplitPaneBorder

import javax.swing.plaf.basic.BasicSplitPaneDivider; //导入方法依赖的package包/类
private void clearSplitPaneBorder(JSplitPane split) {
	split.setBorder(null);
	if (split.getUI() instanceof BasicSplitPaneUI) {
		//  grab the divider from the UI and remove the border from it
		BasicSplitPaneDivider divider = ((BasicSplitPaneUI) split.getUI()).getDivider();
		if (divider != null && divider.getBorder() != null)
			divider.setBorder(null);
	}
}
 
开发者ID:Jakegogo,项目名称:concurrent,代码行数:10,代码来源:DemoBorderManager.java

示例4: createSplitPane

import javax.swing.plaf.basic.BasicSplitPaneDivider; //导入方法依赖的package包/类
public JSplitPane createSplitPane() {
	JSplitPane split = new JSplitPane();
	split.setDividerSize(3);
	split.setBorder(null);
	if (split.getUI() instanceof BasicSplitPaneUI) {
		BasicSplitPaneDivider divider = ((BasicSplitPaneUI) split.getUI()).getDivider();
		if (divider != null && divider.getBorder()!=null)
			divider.setBorder(null);			
	}
	return split;
}
 
开发者ID:Jakegogo,项目名称:concurrent,代码行数:12,代码来源:BorderDemo.java

示例5: clearSplitPaneBorder

import javax.swing.plaf.basic.BasicSplitPaneDivider; //导入方法依赖的package包/类
private void clearSplitPaneBorder(JSplitPane split) {
    split.setBorder(null);
    if (split.getUI() instanceof BasicSplitPaneUI) {
        //  grab the divider from the UI and remove the border from it
        BasicSplitPaneDivider divider = ((BasicSplitPaneUI) split.getUI()).getDivider();
        if (divider != null && divider.getBorder() != null)
            divider.setBorder(null);
    }
}
 
开发者ID:humphrej,项目名称:flexdock,代码行数:10,代码来源:DemoBorderManager.java


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