java.awt.Window.addPropertyChangeListener()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(171)

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

Window.addPropertyChangeListener介绍

暂无

代码示例

代码示例来源:origin: com.jtattoo/JTattoo

protected void installListeners() {
  if (window != null) {
    windowListener = createWindowListener();
    window.addWindowListener(windowListener);
    propertyChangeListener = createWindowPropertyChangeListener();
    window.addPropertyChangeListener(propertyChangeListener);
  }
}

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

/** Installs the necessary listeners. */
private void installListeners() {
  if (window != null) {
    windowListener = createWindowListener();
    window.addWindowListener(windowListener);
    propertyChangeListener = propertyChangeListener();
    window.addPropertyChangeListener(propertyChangeListener);
  }
}

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

/**
 * Installs the necessary listeners.
 */
private void installListeners()
{
  if (window != null)
  {
    windowListener = createWindowListener();
    window.addWindowListener(windowListener);
    propertyChangeListener = createWindowPropertyChangeListener();
    window.addPropertyChangeListener(propertyChangeListener);
  }
}

代码示例来源:origin: org.xworker/xworker_core

public static void createPropertyChangeListeners(ActionContext actionContext){
  Thing self = (Thing) actionContext.get("self");
  Window parent = (Window) actionContext.get("parent");
  
  for(Thing child : self.getChilds()){
    PropertyChangeListener l = (PropertyChangeListener) child.doAction("create", actionContext);
    if(l != null){
      parent.addPropertyChangeListener(l);
    }
  }
}

代码示例来源:origin: stackoverflow.com

setLayout(new GridBagLayout());
add(bar);
addPropertyChangeListener("inProgress", new PropertyChangeListener() {
  @Override
  public void propertyChange(PropertyChangeEvent evt) {

代码示例来源:origin: stackoverflow.com

mainGUI.addPropertyChangeListener(ITEM,
   new PropertyChangeListener() {

代码示例来源:origin: stackoverflow.com

gui = w;
gui.addPropertyChangeListener(new PropertyChangeListener() {

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

/**
 * Installs the necessary listeners.
 */
private void installListeners() {
  if(window != null) {
    windowListener = createWindowListener();
    window.addWindowListener(windowListener);
    propertyChangeListener = createWindowPropertyChangeListener();
    window.addPropertyChangeListener(propertyChangeListener);
    windowMoveListener = new WindowMoveListener();
    window.addComponentListener(windowMoveListener);
    
    if(window instanceof JDialog) {
      TinyPopupFactory.addDialog((JDialog)window);
    }
  }
}

代码示例来源:origin: stackoverflow.com

String title = originalTitle + " [" + ((timeOut / 1000)) + "]";
setTitle(title);
addPropertyChangeListener("title", new PropertyChangeListener() {
  @Override
  public void propertyChange(PropertyChangeEvent evt) {

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

this.window.addWindowListener(this.windowListener);
this.propertyChangeListener = new PropertyChangeHandler();
this.window.addPropertyChangeListener(this.propertyChangeListener);

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

this.window.addWindowListener(this.windowListener);
this.propertyChangeListener = new PropertyChangeHandler();
this.window.addPropertyChangeListener(this.propertyChangeListener);

相关文章

Window类方法