本文整理汇总了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);
}
示例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);
}
示例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);
}
}
示例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;
}
示例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);
}
}