public class BasicSplitPaneUI extends SplitPaneUI
Modifier and Type | Class and Description |
---|---|
class |
BasicSplitPaneUI.BasicHorizontalLayoutManager
为有horizontal_split取向jsplitpanes布局管理器。
|
class |
BasicSplitPaneUI.BasicVerticalLayoutManager
采用vertical_split取向jsplitpanes布局管理器。
|
class |
BasicSplitPaneUI.FocusHandler
该focuslistener,JSplitPane UI使用实现。
|
class |
BasicSplitPaneUI.KeyboardDownRightHandler
一个ActionListener,JSplitPane UI使用处理特定的按键实现。
|
class |
BasicSplitPaneUI.KeyboardEndHandler
一个ActionListener,JSplitPane UI使用处理特定的按键实现。
|
class |
BasicSplitPaneUI.KeyboardHomeHandler
一个ActionListener,JSplitPane UI使用处理特定的按键实现。
|
class |
BasicSplitPaneUI.KeyboardResizeToggleHandler
一个ActionListener,JSplitPane UI使用处理特定的按键实现。
|
class |
BasicSplitPaneUI.KeyboardUpLeftHandler
一个ActionListener,JSplitPane UI使用处理特定的按键实现。
|
class |
BasicSplitPaneUI.PropertyHandler
该propertychangelistener,JSplitPane UI使用实现。
|
Modifier and Type | Field and Description |
---|---|
protected int |
beginDragDividerLocation
当拖动会话开始时分隔符的位置。
|
protected BasicSplitPaneDivider |
divider
这个JSplitPane的分频器实例。
|
protected KeyStroke |
dividerResizeToggleKey
过时的。
作为java 2平台V1.3。
|
protected int |
dividerSize
拖动会话的分隔符的大小是有效的。
|
protected KeyStroke |
downKey
过时的。
作为java 2平台V1.3。
|
protected boolean |
draggingHW
设置为true,在startdragging如果孩子(不包括noncontinuouslayoutdivider)是重物。
|
protected KeyStroke |
endKey
过时的。
作为java 2平台V1.3。
|
protected FocusListener |
focusListener
这focuslistener JSplitPane的实例。
|
protected KeyStroke |
homeKey
过时的。
作为java 2平台V1.3。
|
protected static int |
KEYBOARD_DIVIDER_MOVE_OFFSET
多远(相对)分频器移动时,它是由键盘上的光标键移动。
|
protected ActionListener |
keyboardDownRightListener
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
keyboardEndListener
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
keyboardHomeListener
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
keyboardResizeToggleListener
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
keyboardUpLeftListener
过时的。
作为java 2平台V1.3。
|
protected BasicSplitPaneUI.BasicHorizontalLayoutManager |
layoutManager
布局管理器,创建并放置到拆分窗格。
|
protected KeyStroke |
leftKey
过时的。
作为java 2平台V1.3。
|
protected static String |
NON_CONTINUOUS_DIVIDER
用于非连续布局的分隔符添加到这个对象的拆分窗格中。
|
protected Component |
nonContinuousLayoutDivider
当正在使用非连续布局时,分隔符的阴影的实例。
|
protected PropertyChangeListener |
propertyChangeListener
这propertychangelistener JSplitPane的实例。
|
protected KeyStroke |
rightKey
过时的。
作为java 2平台V1.3。
|
protected JSplitPane |
splitPane
JSplitPane实例这个实例提供的外观和感觉。
|
protected KeyStroke |
upKey
过时的。
作为java 2平台V1.3。
|
Constructor and Description |
---|
BasicSplitPaneUI() |
Modifier and Type | Method and Description |
---|---|
BasicSplitPaneDivider |
createDefaultDivider()
创建默认的分隔器。
|
protected Component |
createDefaultNonContinuousLayoutDivider()
返回默认的非连续布置的分频器,这是一个
Canvas 填充深灰色的背景。
|
protected FocusListener |
createFocusListener()
创建一个用于JSplitPane UI focuslistener。
|
protected ActionListener |
createKeyboardDownRightListener()
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
createKeyboardEndListener()
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
createKeyboardHomeListener()
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
createKeyboardResizeToggleListener()
过时的。
作为java 2平台V1.3。
|
protected ActionListener |
createKeyboardUpLeftListener()
过时的。
作为java 2平台V1.3。
|
protected PropertyChangeListener |
createPropertyChangeListener()
创建一个用于JSplitPane UI propertychangelistener。
|
static ComponentUI |
createUI(JComponent x)
创建一个新的basicsplitpaneui实例
|
protected void |
dragDividerTo(int location)
在拖动会话将分频器传入的位置在。
|
protected void |
finishDraggingTo(int location)
在完成拖动会话。
|
void |
finishedPaintingChildren(JSplitPane sp, Graphics g)
当指定的拆分窗格已完成对其孩子的画时调用。
|
BasicSplitPaneDivider |
getDivider()
返回顶部组件之间的分隔符。
|
protected int |
getDividerBorderSize()
过时的。
作为java 2平台V1.3,相反设置边框的分频器。
|
int |
getDividerLocation(JSplitPane jc)
返回该分频器的位置,这可能与什么splitpane认为分频器的位置。
|
Insets |
getInsets(JComponent jc)
返回的插图。
|
int |
getLastDragLocation()
返回最后一个阻力位置的JSplitPane。
|
int |
getMaximumDividerLocation(JSplitPane jc)
获取分隔符的最大位置。
|
Dimension |
getMaximumSize(JComponent jc)
返回组件中传递的最大大小,这是传递给当前的布局管理器。
|
int |
getMinimumDividerLocation(JSplitPane jc)
获取分隔符的最小位置。
|
Dimension |
getMinimumSize(JComponent jc)
返回组件中传递的最小尺寸,这是传递给当前的布局管理器。
|
Component |
getNonContinuousLayoutDivider()
返回器时使用splitpane配置为不连续的布局。
|
int |
getOrientation()
返回的JSplitPane的取向。
|
Dimension |
getPreferredSize(JComponent jc)
返回在组件传递的首选大小,这是传递给当前的布局管理器。
|
JSplitPane |
getSplitPane()
返回splitpane这个实例包含在当前。
|
protected void |
installDefaults()
安装用户界面默认值。
|
protected void |
installKeyboardActions()
为用户界面安装键盘操作。
|
protected void |
installListeners()
为用户界面安装事件侦听器。
|
void |
installUI(JComponent c)
安装用户界面。
|
boolean |
isContinuousLayout()
确定JSplitPane设置使用一个连续的布局。
|
void |
paint(Graphics g, JComponent jc)
适当地绘制指定的组件的外观和感觉。
|
protected void |
resetLayoutManager()
重置基于方向信息与invalidatelayout布局管理器将在适当的组件。
|
void |
resetToPreferredSizes(JSplitPane jc)
短信重置优先尺寸。
|
void |
setContinuousLayout(boolean b)
开启/关闭连续布局。
|
void |
setDividerLocation(JSplitPane jc, int location)
将分隔符的位置设置为位置。
|
void |
setLastDragLocation(int l)
集的JSplitPane过去的阻力位置。
|
protected void |
setNonContinuousLayoutDivider(Component newDivider)
设置分频器使用时,splitpane配置为不连续的布局。
|
protected void |
setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)
设置分隔符使用。
|
void |
setOrientation(int orientation)
对于分隔窗格设置方向。
|
protected void |
startDragging()
应信息将在会议开始前,将lastdraglocation和dividersize。
|
protected void |
uninstallDefaults()
卸载界面的默认值。
|
protected void |
uninstallKeyboardActions()
正在卸载UI的键盘动作。
|
protected void |
uninstallListeners()
正在卸载的UI事件监听器。
|
void |
uninstallUI(JComponent c)
卸载界面。
|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
protected static final String NON_CONTINUOUS_DIVIDER
protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
protected JSplitPane splitPane
protected BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
protected BasicSplitPaneDivider divider
protected PropertyChangeListener propertyChangeListener
protected FocusListener focusListener
protected int dividerSize
protected Component nonContinuousLayoutDivider
protected boolean draggingHW
protected int beginDragDividerLocation
@Deprecated protected KeyStroke upKey
@Deprecated protected KeyStroke downKey
@Deprecated protected KeyStroke leftKey
@Deprecated protected KeyStroke rightKey
@Deprecated protected KeyStroke homeKey
@Deprecated protected KeyStroke endKey
@Deprecated protected KeyStroke dividerResizeToggleKey
@Deprecated protected ActionListener keyboardUpLeftListener
@Deprecated protected ActionListener keyboardDownRightListener
@Deprecated protected ActionListener keyboardHomeListener
@Deprecated protected ActionListener keyboardEndListener
@Deprecated protected ActionListener keyboardResizeToggleListener
public static ComponentUI createUI(JComponent x)
public void installUI(JComponent c)
installUI
方法重写,继承类
ComponentUI
c
-组件,UI代理被安装
ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
protected void installDefaults()
protected void installListeners()
protected void installKeyboardActions()
public void uninstallUI(JComponent c)
uninstallUI
方法重写,继承类
ComponentUI
c
-从这个UI代理被删除的组件;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.updateUI()
protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected PropertyChangeListener createPropertyChangeListener()
protected FocusListener createFocusListener()
@Deprecated protected ActionListener createKeyboardUpLeftListener()
installKeyboardActions
放在splitpane的actionmap行动。请参阅关键绑定规范的进一步细节。
创建一个用于JSplitPane UI侦听特定按键的功能。
@Deprecated protected ActionListener createKeyboardDownRightListener()
installKeyboardActions
放在splitpane的actionmap行动。请参阅关键绑定规范的进一步细节。
创建一个用于JSplitPane UI侦听特定按键的功能。
@Deprecated protected ActionListener createKeyboardHomeListener()
installKeyboardActions
放在splitpane的actionmap行动。请参阅关键绑定规范的进一步细节。
创建一个用于JSplitPane UI侦听特定按键的功能。
@Deprecated protected ActionListener createKeyboardEndListener()
installKeyboardActions
放在splitpane的actionmap行动。请参阅关键绑定规范的进一步细节。
创建一个用于JSplitPane UI侦听特定按键的功能。
@Deprecated protected ActionListener createKeyboardResizeToggleListener()
installKeyboardActions
放在splitpane的actionmap行动。请参阅关键绑定规范的进一步细节。
创建一个用于JSplitPane UI侦听特定按键的功能。
public int getOrientation()
public void setOrientation(int orientation)
public boolean isContinuousLayout()
public void setContinuousLayout(boolean b)
public int getLastDragLocation()
public void setLastDragLocation(int l)
public BasicSplitPaneDivider getDivider()
protected Component createDefaultNonContinuousLayoutDivider()
Canvas
填充深灰色的背景。
protected void setNonContinuousLayoutDivider(Component newDivider)
protected void setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)
public Component getNonContinuousLayoutDivider()
public JSplitPane getSplitPane()
public BasicSplitPaneDivider createDefaultDivider()
public void resetToPreferredSizes(JSplitPane jc)
resetToPreferredSizes
方法重写,继承类
SplitPaneUI
public void setDividerLocation(JSplitPane jc, int location)
setDividerLocation
方法重写,继承类
SplitPaneUI
public int getDividerLocation(JSplitPane jc)
getDividerLocation
方法重写,继承类
SplitPaneUI
public int getMinimumDividerLocation(JSplitPane jc)
getMinimumDividerLocation
方法重写,继承类
SplitPaneUI
public int getMaximumDividerLocation(JSplitPane jc)
getMaximumDividerLocation
方法重写,继承类
SplitPaneUI
public void finishedPaintingChildren(JSplitPane sp, Graphics g)
finishedPaintingChildren
方法重写,继承类
SplitPaneUI
public void paint(Graphics g, JComponent jc)
ComponentUI.update
方法调用时指定的组件正在粉刷。子类应重写此方法,并使用指定的
Graphics
对象呈现的成分含量。
paint
方法重写,继承类
ComponentUI
g
-其中
Graphics
背景画
jc
-正在绘制的构件;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
public Dimension getPreferredSize(JComponent jc)
getPreferredSize
方法重写,继承类
ComponentUI
jc
优先度的被查询的成分;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
JComponent.getPreferredSize()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension getMinimumSize(JComponent jc)
getMinimumSize
方法重写,继承类
ComponentUI
jc
最小尺寸的是被查询的成分;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
Dimension
对象或
null
JComponent.getMinimumSize()
,
LayoutManager.minimumLayoutSize(java.awt.Container)
,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public Dimension getMaximumSize(JComponent jc)
getMaximumSize
方法重写,继承类
ComponentUI
jc
-其最大尺寸被查询的成分;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
Dimension
对象或
null
JComponent.getMaximumSize()
,
LayoutManager2.maximumLayoutSize(java.awt.Container)
public Insets getInsets(JComponent jc)
protected void resetLayoutManager()
protected void startDragging()
protected void dragDividerTo(int location)
protected void finishDraggingTo(int location)
@Deprecated protected int getDividerBorderSize()
返回分隔符边框的一侧的宽度。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.