本文整理了Java中javax.swing.JScrollPane.removeComponentListener()
方法的一些代码示例,展示了JScrollPane.removeComponentListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.removeComponentListener()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:removeComponentListener
暂无
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public void componentResized(ComponentEvent e)
{
JScrollPane sp= (JScrollPane) e.getComponent();
fixNameColumnWidth(sp.getViewport().getSize().width);
sp.removeComponentListener(this);
}
});
代码示例来源:origin: com.googlecode.vfsjfilechooser2/vfsjfilechooser2
@Override
public void componentResized(ComponentEvent e)
{
JScrollPane sp = (JScrollPane) e.getComponent();
fixNameColumnWidth(sp.getViewport().getSize().width);
sp.removeComponentListener(this);
}
});
代码示例来源:origin: org.xhtmlrenderer/core-renderer
/**
* The method is invoked by {@link #addNotify} and {@link #removeNotify} to
* ensure that any enclosing {@link JScrollPane} works correctly with this
* panel. This method can be safely invoked with a <tt>null</tt> scrollPane.
*
* @param scrollPane the enclosing {@link JScrollPane} or <tt>null</tt> if
* the panel is no longer enclosed in a {@link JScrollPane}.
*/
protected void setEnclosingScrollPane(JScrollPane scrollPane) {
// if a scrollpane is already installed we remove it.
if (enclosingScrollPane != null) {
enclosingScrollPane.removeComponentListener(this);
}
enclosingScrollPane = scrollPane;
if (enclosingScrollPane != null) {
Uu.p("added root panel as a component listener to the scroll pane");
enclosingScrollPane.addComponentListener(this);
default_scroll_mode = enclosingScrollPane.getViewport().getScrollMode();
}
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.xhtmlrenderer/core-renderer
/**
* The method is invoked by {@link #addNotify} and {@link #removeNotify} to
* ensure that any enclosing {@link JScrollPane} works correctly with this
* panel. This method can be safely invoked with a <tt>null</tt> scrollPane.
*
* @param scrollPane the enclosing {@link JScrollPane} or <tt>null</tt> if
* the panel is no longer enclosed in a {@link JScrollPane}.
*/
protected void setEnclosingScrollPane(JScrollPane scrollPane) {
// if a scrollpane is already installed we remove it.
if (enclosingScrollPane != null) {
enclosingScrollPane.removeComponentListener(this);
}
enclosingScrollPane = scrollPane;
if (enclosingScrollPane != null) {
Uu.p("added root panel as a component listener to the scroll pane");
enclosingScrollPane.addComponentListener(this);
default_scroll_mode = enclosingScrollPane.getViewport().getScrollMode();
}
}
代码示例来源:origin: org.docx4j/xhtmlrenderer
/**
* The method is invoked by {@link #addNotify} and {@link #removeNotify} to
* ensure that any enclosing {@link JScrollPane} works correctly with this
* panel. This method can be safely invoked with a <tt>null</tt> scrollPane.
*
* @param scrollPane the enclosing {@link JScrollPane} or <tt>null</tt> if
* the panel is no longer enclosed in a {@link JScrollPane}.
*/
protected void setEnclosingScrollPane(JScrollPane scrollPane) {
// if a scrollpane is already installed we remove it.
if (enclosingScrollPane != null) {
enclosingScrollPane.removeComponentListener(this);
}
enclosingScrollPane = scrollPane;
if (enclosingScrollPane != null) {
Uu.p("added root panel as a component listener to the scroll pane");
enclosingScrollPane.addComponentListener(this);
default_scroll_mode = enclosingScrollPane.getViewport().getScrollMode();
}
}
代码示例来源:origin: jawi/ols
/**
* Reverses the effect of <code>configureEnclosingScrollPane</code> by
* replacing the <code>columnHeaderView</code> of the enclosing scroll pane
* with <code>null</code>.
*
* @see #removeNotify
* @see #configureEnclosingScrollPane
*/
private void unconfigureEnclosingScrollPane()
{
JScrollPane scrollPane = getAncestorOfClass( JScrollPane.class, this );
if ( scrollPane != null )
{
scrollPane.removeComponentListener( this.componentHandler );
scrollPane.setColumnHeaderView( null );
scrollPane.setRowHeaderView( null );
scrollPane.setCorner( ScrollPaneConstants.UPPER_LEADING_CORNER, null );
}
}
}
代码示例来源:origin: org.icepdf.os/icepdf-viewer
public void closeDocument() {
// remove re-size listener.
documentViewScrollPane.removeComponentListener(this);
// dispose the view
if (documentView != null) {
documentViewScrollPane.remove((JComponent) documentView);
documentView.dispose();
documentView = null;
}
// close current document
if (documentViewModel != null) {
documentViewModel.dispose();
documentViewModel = null;
}
// setFitMode(PAGE_FIT_NONE);
setCurrentPageIndex(0);
setZoom(1);
setRotation(0);
// setToolMode(DocumentViewModelImpl.DISPLAY_TOOL_NONE);
setViewCursor(DocumentViewControllerImpl.CURSOR_DEFAULT);
}
代码示例来源:origin: net.sf.ingenias/ingeniasjgraphmod
JScrollPane scrollPane = getParentScrollPane(oldValue);
if (scrollPane != null) {
scrollPane.removeComponentListener(componentListener);
scrollPane.getVerticalScrollBar()
.removeAdjustmentListener(this);
内容来源于网络,如有侵权,请联系作者删除!