所有类


javax.swing.plaf.basic
类 BasicSplitPaneUI

java.lang.Object
  继承者 javax.swing.plaf.ComponentUI
      继承者 javax.swing.plaf.SplitPaneUI
          继承者 javax.swing.plaf.basic.BasicSplitPaneUI
直接已知子类:
MetalSplitPaneUI

public class BasicSplitPaneUI
   
   
   
   
extends SplitPaneUI

SplitPaneUI 的基本 L&F 实现。


嵌套类摘要
 classBasicSplitPaneUI.BasicHorizontalLayoutManager
          具有 HORIZONTAL_SPLIT 方向的 JSplitPane 的 LayoutManager。
 classBasicSplitPaneUI.BasicVerticalLayoutManager
          用于具有 VERTICAL_SPLIT 的方向的 JSplitPane 的 LayoutManager。
 classBasicSplitPaneUI.FocusHandler
          JSplitPane UI 使用的 FocusListener 的实现。
 classBasicSplitPaneUI.KeyboardDownRightHandler
          ActionListener 的实现,JSplitPane UI 使用此实现处理特定键按下事件。
 classBasicSplitPaneUI.KeyboardEndHandler
          ActionListener 的实现,JSplitPane UI 使用此实现处理特定键按下事件。
 classBasicSplitPaneUI.KeyboardHomeHandler
          ActionListener 的实现,JSplitPane UI 使用此实现处理特定键按下事件。
 classBasicSplitPaneUI.KeyboardResizeToggleHandler
          ActionListener 的实现,JSplitPane UI 使用此实现处理特定键按下事件。
 classBasicSplitPaneUI.KeyboardUpLeftHandler
          ActionListener 的实现,JSplitPane UI 使用此实现处理特定键按下事件。
 classBasicSplitPaneUI.PropertyHandler
          JSplitPane UI 使用的 PropertyChangeListener 的实现。
 
字段摘要
protected  intbeginDragDividerLocation
          拖动会话开始时分隔符的位置。
protected  BasicSplitPaneDividerdivider
          此 JSplitPane 的分隔符的实例。
protected  KeyStrokedividerResizeToggleKey
          已过时。 从 Java 2 platform v1.3 开始。
protected  intdividerSize
          拖动会话有效时分隔符的大小。
protected  KeyStrokedownKey
          已过时。 从 Java 2 platform v1.3 开始。
protected  booleandraggingHW
          如果任何一个子级(不包括 nonContinuousLayoutDivider)是重量级的,则在 startDragging 中设置 true。
protected  KeyStrokeendKey
          已过时。 从 Java 2 platform v1.3 开始。
protected  FocusListenerfocusListener
          此 JSplitPane 的 FocusListener 的实例。
protected  KeyStrokehomeKey
          已过时。 从 Java 2 platform v1.3 开始。
protected static intKEYBOARD_DIVIDER_MOVE_OFFSET
          通过键盘上的光标键移动分隔符时移动的距离(相对)。
protected  ActionListenerkeyboardDownRightListener
          已过时。 从 Java 2 platform v1.3 开始。
protected  ActionListenerkeyboardEndListener
          已过时。 从 Java 2 platform v1.3 开始。
protected  ActionListenerkeyboardHomeListener
          已过时。 从 Java 2 platform v1.3 开始。
protected  ActionListenerkeyboardResizeToggleListener
          已过时。 从 Java 2 platform v1.3 开始。
protected  ActionListenerkeyboardUpLeftListener
          已过时。 从 Java 2 platform v1.3 开始。
protected  BasicSplitPaneUI.BasicHorizontalLayoutManagerlayoutManager
          创建并放到拆分窗格中的 LayoutManager。
protected  KeyStrokeleftKey
          已过时。 从 Java 2 platform v1.3 开始。
protected static StringNON_CONTINUOUS_DIVIDER
          用于非连续布局的分隔符通过此对象添加到拆分窗格。
protected  ComponentnonContinuousLayoutDivider
          使用非连续布局时分隔符阴影的实例。
protected  PropertyChangeListenerpropertyChangeListener
          此 JSplitPane 的 PropertyChangeListener 的实例。
protected  KeyStrokerightKey
          已过时。 从 Java 2 platform v1.3 开始。
protected  JSplitPanesplitPane
          此实例为其提供外观的 JSplitPane 实例。
protected  KeyStrokeupKey
          已过时。 从 Java 2 platform v1.3 开始。
 
构造方法摘要
BasicSplitPaneUI()
           
 
方法摘要
 BasicSplitPaneDividercreateDefaultDivider()
          创建默认的分隔符。
protected  ComponentcreateDefaultNonContinuousLayoutDivider()
          返回默认的非连续布局分隔符,该分隔符是使用深灰色填充背景的 Canvas 的实例。
protected  FocusListenercreateFocusListener()
          创建 JSplitPane UI 的 FocusListener。
protected  ActionListenercreateKeyboardDownRightListener()
          已过时。 从 Java 2 platform v1.3 开始。
protected  ActionListenercreateKeyboardEndListener()
          已过时。 从 Java 2 platform v1.3 开始。
protected  ActionListenercreateKeyboardHomeListener()
          已过时。 从 Java 2 platform v1.3 开始。
protected  ActionListenercreateKeyboardResizeToggleListener()
          已过时。 从 Java 2 platform v1.3 开始。
protected  ActionListenercreateKeyboardUpLeftListener()
          已过时。 从 Java 2 platform v1.3 开始。
protected  PropertyChangeListenercreatePropertyChangeListener()
          创建 JSplitPane UI 的 PropertyChangeListener。
static ComponentUIcreateUI(JComponent x)
          创建新的 BasicSplitPaneUI 实例
protected  voiddragDividerTo(int location)
          拖动会话期间传递消息以便将分隔符移动到传入位置。
protected  voidfinishDraggingTo(int location)
          传递消息以完成拖动会话。
 voidfinishedPaintingChildren(JSplitPane jc, Graphics g)
          在 JSplitPane 接收者将为绘制其子级提供外观后传递消息。
 BasicSplitPaneDividergetDivider()
          返回顶层 Component 之间的分隔符。
protected  intgetDividerBorderSize()
          已过时。 从 Java 2 平台 v1.3 开始,由在分隔符上设置边框取代。
 intgetDividerLocation(JSplitPane jc)
          返回分隔符的位置,该位置可能不同于拆分窗格认为分隔符所在的位置。
 InsetsgetInsets(JComponent jc)
          返回 insets。
 intgetLastDragLocation()
          返回 JSplitPane 的最后拖动位置。
 intgetMaximumDividerLocation(JSplitPane jc)
          获取分隔符的最大位置。
 DimensiongetMaximumSize(JComponent jc)
          返回传入组件的最大大小,该大小将传递给当前布局管理器。
 intgetMinimumDividerLocation(JSplitPane jc)
          获取分隔符的最小位置。
 DimensiongetMinimumSize(JComponent jc)
          返回传入组件的最小大小,该大小将传递给当前布局管理器。
 ComponentgetNonContinuousLayoutDivider()
          返回要在将 splitPane 配置为非连续布局时使用的分隔符。
 intgetOrientation()
          返回 JSplitPane 的方向。
 DimensiongetPreferredSize(JComponent jc)
          返回传入组件的首选大小,该大小将传递给当前布局管理器。
 JSplitPanegetSplitPane()
          返回当前包含此实例的拆分窗格。
protected  voidinstallDefaults()
          安装 UI 默认值。
protected  voidinstallKeyboardActions()
          安装 UI 的键盘动作。
protected  voidinstallListeners()
          安装 UI 的事件侦听器。
 voidinstallUI(JComponent c)
          安装 UI。
 booleanisContinuousLayout()
          确定是否将 JSplitPane 设置为使用连续布局。
 voidpaint(Graphics g, JComponent jc)
          传递消息以绘制外观。
protected  voidresetLayoutManager()
          基于方向重置布局管理器,并利用 invalidateLayout 传递其消息以拉入适当的 Component。
 voidresetToPreferredSizes(JSplitPane jc)
          传递消息以重置首选大小。
 voidsetContinuousLayout(boolean b)
          打开/关闭连续布局。
 voidsetDividerLocation(JSplitPane jc, int location)
          将分隔符的位置设置到 location。
 voidsetLastDragLocation(int l)
          设置 JSplitPane 的最后拖动位置。
protected  voidsetNonContinuousLayoutDivider(Component newDivider)
          设置要在将 splitPane 配置为非连续布局时使用的分隔符。
protected  voidsetNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)
          设置要使用的分隔符。
 voidsetOrientation(int orientation)
          设置 JSplitPane 的方向。
protected  voidstartDragging()
          应该在拖动会话开始、重置 lastDragLocation 和 dividerSize 之前传递消息。
protected  voiduninstallDefaults()
          卸载 UI 默认值。
protected  voiduninstallKeyboardActions()
          卸载 UI 的键盘动作。
protected  voiduninstallListeners()
          卸载 UI 的事件侦听器。
 voiduninstallUI(JComponent c)
          卸载 UI。
 
从类 javax.swing.plaf.ComponentUI 继承的方法
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

NON_CONTINUOUS_DIVIDER

protected static final String NON_CONTINUOUS_DIVIDER
用于非连续布局的分隔符通过此对象添加到拆分窗格。

另请参见:
常量字段值

KEYBOARD_DIVIDER_MOVE_OFFSET

protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
通过键盘上的光标键移动分隔符时移动的距离(相对)。


splitPane

protected JSplitPane splitPane
此实例为其提供外观的 JSplitPane 实例。


layoutManager

protected BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
创建并放到拆分窗格中的 LayoutManager。


divider

protected BasicSplitPaneDivider divider
此 JSplitPane 的分隔符的实例。


propertyChangeListener

protected PropertyChangeListener propertyChangeListener
此 JSplitPane 的 PropertyChangeListener 的实例。


focusListener

protected FocusListener focusListener
此 JSplitPane 的 FocusListener 的实例。