javax.swing.JScrollPane.addPropertyChangeListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中javax.swing.JScrollPane.addPropertyChangeListener()方法的一些代码示例,展示了JScrollPane.addPropertyChangeListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.addPropertyChangeListener()方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:addPropertyChangeListener

JScrollPane.addPropertyChangeListener介绍

暂无

代码示例

代码示例来源:origin: net.java.dev.laf-widget/laf-widget

@Override
public void installListeners() {
  this.propertyChangeListener = new PropertyChangeListener() {
    public void propertyChange(PropertyChangeEvent evt) {
      if (LafWidget.AUTO_SCROLL.equals(evt.getPropertyName())) {
        AutoScrollActivator.setAutoScrollEnabled(jcomp,
            LafWidgetUtilities.hasAutoScroll(jcomp));
      }
    }
  };
  this.jcomp.addPropertyChangeListener(this.propertyChangeListener);
}

代码示例来源:origin: com.synaptix/SynaptixWidget

@Override
protected void installListeners(JScrollPane c) {
  super.installListeners(c);
  myPropertyChangeListener = createMyPropertyChangeListener();
  scrollpane.addPropertyChangeListener(spPropertyChangeListener);
}

代码示例来源:origin: net.java.dev.laf-widget/laf-widget

this.jcomp.addPropertyChangeListener(this.propertyChangeListener);

代码示例来源:origin: com.github.insubstantial/substance

c.addPropertyChangeListener(this.substancePropertyChangeListener);

代码示例来源:origin: org.java.net.substance/substance

c.addPropertyChangeListener(this.substancePropertyChangeListener);

代码示例来源:origin: net.java.dev.laf-widget/laf-widget

void installOnScrollPane(JScrollPane aScrollPane) {
  if (theScrollPane != null)
    uninstallFromScrollPane();
  theScrollPane = aScrollPane;
  theFormerLayoutManager = theScrollPane.getLayout();
  theScrollPane.setLayout(new TweakedScrollPaneLayout());
  theScrollPane.firePropertyChange("layoutManager", false, true);
  theScrollPane.addPropertyChangeListener(COMPONENT_ORIENTATION,
      propertyChangeListener);
  theScrollPane.getViewport().addContainerListener(
      theViewPortViewListener);
  theScrollPane.setCorner(JScrollPane.LOWER_TRAILING_CORNER, theButton);
  Component comp = theScrollPane.getViewport().getView();
  theComponent = (comp instanceof JComponent) ? (JComponent) comp : null;
  this.theButton.setIcon(LafWidgetRepository.getRepository()
      .getLafSupport().getSearchIcon(
          UIManager.getInt("ScrollBar.width") - 3,
          theScrollPane.getComponentOrientation()));
  theScrollPane.doLayout();
}

代码示例来源:origin: khuxtable/seaglass

scrollpane.addPropertyChangeListener(spPropertyChangeListener);
c.addPropertyChangeListener(this);
if (UIManager.getBoolean("ScrollPane.useChildTextComponentFocus")) {
  viewportViewFocusHandler = new ViewportViewFocusHandler();

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

protected void installListeners(JScrollPane c) 
{
vsbChangeListener = createVSBChangeListener();
  vsbPropertyChangeListener = createVSBPropertyChangeListener();
hsbChangeListener = createHSBChangeListener();
  hsbPropertyChangeListener = createHSBPropertyChangeListener();
viewportChangeListener = createViewportChangeListener();
spPropertyChangeListener = createPropertyChangeListener();
JViewport viewport = scrollpane.getViewport();
JScrollBar vsb = scrollpane.getVerticalScrollBar();
JScrollBar hsb = scrollpane.getHorizontalScrollBar();
if (viewport != null) {
  viewport.addChangeListener(viewportChangeListener);
}
if (vsb != null) {
  vsb.getModel().addChangeListener(vsbChangeListener);
    vsb.addPropertyChangeListener(vsbPropertyChangeListener);
}
if (hsb != null) {
  hsb.getModel().addChangeListener(hsbChangeListener);
    hsb.addPropertyChangeListener(hsbPropertyChangeListener);
}
scrollpane.addPropertyChangeListener(spPropertyChangeListener);
mouseScrollListener = createMouseWheelListener();
scrollpane.addMouseWheelListener(mouseScrollListener);
}

代码示例来源:origin: net.sf.ingenias/ingeniasjgraphmod

currentScrollPane.getHorizontalScrollBar()
    .addAdjustmentListener(this);
currentScrollPane.addPropertyChangeListener(this);

相关文章

JScrollPane类方法