本文整理汇总了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();
}
示例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();
}
}
}
示例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();
}
}
}
示例4: onDispose
import javax.swing.JViewport; //导入方法依赖的package包/类
@Override
protected void onDispose(JViewport w) {
w.removeChangeListener(this);
}