javax.swing.JSplitPane.isContinuousLayout()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(135)

本文整理了Java中javax.swing.JSplitPane.isContinuousLayout()方法的一些代码示例,展示了JSplitPane.isContinuousLayout()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSplitPane.isContinuousLayout()方法的具体详情如下:
包路径:javax.swing.JSplitPane
类名称:JSplitPane
方法名:isContinuousLayout

JSplitPane.isContinuousLayout介绍

暂无

代码示例

代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit

/**
 * Init the continuous layout flag using the jEdit's property
 * appearance.continuousLayout
 *
 * @param split the split. It must never be null
 * @since jEdit 4.3pre9
 */
public static void initContinuousLayout(JSplitPane split)
{
  boolean continuousLayout = split.isContinuousLayout();
  if (continuousLayout != jEdit.getBooleanProperty("appearance.continuousLayout"))
    split.setContinuousLayout(!continuousLayout);
} //}}}

代码示例来源:origin: khuxtable/seaglass

/**
 * Installs the UI defaults.
 */
protected void installDefaults() {
  updateStyle(splitPane);
  setOrientation(splitPane.getOrientation());
  setContinuousLayout(splitPane.isContinuousLayout());
  resetLayoutManager();
  /*
   * Install the nonContinuousLayoutDivider here to avoid having to
   * add/remove everything later.
   */
  if (nonContinuousLayoutDivider == null) {
    setNonContinuousLayoutDivider(createDefaultNonContinuousLayoutDivider(), true);
  } else {
    setNonContinuousLayoutDivider(nonContinuousLayoutDivider, true);
  }
  // focus forward traversal key
  if (managingFocusForwardTraversalKeys == null) {
    managingFocusForwardTraversalKeys = new HashSet();
    managingFocusForwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));
  }
  splitPane.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, managingFocusForwardTraversalKeys);
  // focus backward traversal key
  if (managingFocusBackwardTraversalKeys == null) {
    managingFocusBackwardTraversalKeys = new HashSet();
    managingFocusBackwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));
  }
  splitPane.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, managingFocusBackwardTraversalKeys);
}

相关文章

JSplitPane类方法