当前位置: 首页>>代码示例>>Java>>正文


Java JViewport.removeChangeListener方法代码示例

本文整理汇总了Java中javax.swing.JViewport.removeChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java JViewport.removeChangeListener方法的具体用法?Java JViewport.removeChangeListener怎么用?Java JViewport.removeChangeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.swing.JViewport的用法示例。


在下文中一共展示了JViewport.removeChangeListener方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hideSearchField

import javax.swing.JViewport; //导入方法依赖的package包/类
private void hideSearchField() {
    if (searchField == null) {
        return;
    }

    searchpanel.setVisible(false);

    if (getParent() instanceof JViewport && null != viewportListener ) {
        JViewport jvp = (JViewport) getParent();
        jvp.removeChangeListener( viewportListener );
        viewportListener = null;
    }
    
    getParent().removeComponentListener(searchField);
    if (searchpanel.getParent() != null) {
        searchpanel.getParent().remove(searchpanel);
    }

    paintSelectionRow();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:21,代码来源:BaseTable.java

示例2: unconfigureEnclosingScrollPane

import javax.swing.JViewport; //导入方法依赖的package包/类
@Override
protected void unconfigureEnclosingScrollPane() {
	Container p = getParent();
	if (p instanceof JViewport) {
		Container gp = p.getParent();
		if (gp instanceof JScrollPane) {
			JScrollPane scrollPane = (JScrollPane) gp;
			// Make certain we are the viewPort's view and not, for
			// example, the rowHeaderView of the scrollPane -
			// an implementor of fixed columns might do this.
			JViewport viewport = scrollPane.getViewport();
			if (viewport == null || viewport.getView() != this) {
				return;
			}
			scrollPane.setColumnHeaderView(null);
			scrollPane.setRowHeaderView(null);

			viewport.removeChangeListener(scrollListener);
			rowHeader.uninstall();
		}
	}
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:23,代码来源:ExactTable.java

示例3: unconfigureEnclosingScrollPane

import javax.swing.JViewport; //导入方法依赖的package包/类
@Override
protected void unconfigureEnclosingScrollPane() {
	Container p = getParent();
	if (p instanceof JViewport) {
		Container gp = p.getParent();
		if (gp instanceof JScrollPane) {
			JScrollPane scrollPane = (JScrollPane) gp;
			// Make certain we are the viewPort's view and not, for
			// example, the rowHeaderView of the scrollPane -
			// an implementor of fixed columns might do this.
			JViewport viewport = scrollPane.getViewport();
			if (viewport == null || viewport.getView() != this) {
				return;
			}
			scrollPane.setColumnHeaderView(null);
			scrollPane.setRowHeaderView(null);

			viewport.removeChangeListener(scrollListener);
			rowHeader.uninstall();
		}
	}

}
 
开发者ID:HOMlab,项目名称:QN-ACTR-Release,代码行数:24,代码来源:ExactTable.java

示例4: onDispose

import javax.swing.JViewport; //导入方法依赖的package包/类
@Override
protected void onDispose(JViewport w) {
    w.removeChangeListener(this);
}
 
开发者ID:akarnokd,项目名称:RxJava2Swing,代码行数:5,代码来源:ChangeEventViewportObservable.java


注:本文中的javax.swing.JViewport.removeChangeListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。