javax.swing.JLabel.firePropertyChange()方法的使用及代码示例

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

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

JLabel.firePropertyChange介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-awt

/** Overridden to do nothing under normal circumstances.  If the boolean flag to <strong>not</strong> use the
 * internal HTML renderer is in effect, this will fire changes normally */
protected @Override final void firePropertyChange(String name, Object old, Object nue) {
  if (swingRendering) {
    if ("text".equals(name) && isHtml()) {
      //Force in the HTML tags so the UI will set up swing HTML rendering appropriately
      nue = getText();
    }
    super.firePropertyChange(name, old, nue);
  }
}

代码示例来源:origin: net.sf.jung/jung-visualization

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a> 
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {	
  // Strings get interned...
  if (propertyName=="text") {
    super.firePropertyChange(propertyName, oldValue, newValue);
  }
}

代码示例来源:origin: jrtom/jung

/**
 * Overridden for performance reasons. See the <a href="#override">Implementation Note</a> for
 * more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
 // Strings get interned...
 if (propertyName == "text") {
  super.firePropertyChange(propertyName, oldValue, newValue);
 }
}

代码示例来源:origin: net.sf.jung/jung-visualization

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a> 
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {	
  // Strings get interned...
  if (propertyName=="text") {
    super.firePropertyChange(propertyName, oldValue, newValue);
  }
}

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

/**
 * Overridden for performance reasons. See the <a
 * href="#override">Implementation Note </a> for more information.
 */
protected void firePropertyChange(String propertyName, Object oldValue,
    Object newValue) {
  // Strings get interned...
  if (propertyName == "text")
    super.firePropertyChange(propertyName, oldValue, newValue);
}

代码示例来源:origin: org.apache.poi/poi-contrib

protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
// Strings get interned...
if (propertyName=="text") {
  super.firePropertyChange(propertyName, oldValue, newValue);
}
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
// Strings get interned...
if (propertyName=="text") {
  super.firePropertyChange(propertyName, oldValue, newValue);
}
}

代码示例来源:origin: net.sf.jung/jung-visualization

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a> 
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {	
  // Strings get interned...
  if (propertyName=="text") {
    super.firePropertyChange(propertyName, oldValue, newValue);
  }
}

代码示例来源:origin: jrtom/jung

/**
 * Overridden for performance reasons. See the <a href="#override">Implementation Note</a> for
 * more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
 // Strings get interned...
 if (propertyName == "text") {
  super.firePropertyChange(propertyName, oldValue, newValue);
 }
}

代码示例来源:origin: mucommander/mucommander

/**
 * Overridden for performance reasons.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
  // Strings get interned...
  if(propertyName.equals("text"))
    super.firePropertyChange(propertyName, oldValue, newValue);
}

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

/**
 * Overridden for performance reasons. See the <a
 * href="#override">Implementation Note</a> for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue,
    Object newValue) {
  if ("text".equals(propertyName))
    super.firePropertyChange(propertyName, oldValue, newValue);
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a> 
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {  
  // Strings get interned...
  if ("text".equals(propertyName)) {
    super.firePropertyChange(propertyName, oldValue, newValue);
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a> 
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {  
  // Strings get interned...
  if ("text".equals(propertyName)) {
    super.firePropertyChange(propertyName, oldValue, newValue);
  }
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a> 
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {  
  // Strings get interned...
  if ("text".equals(propertyName)) {
    super.firePropertyChange(propertyName, oldValue, newValue);
  }
}

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

/**
 * Overridden for performance reasons. See the <a
 * href="#override">Implementation Note</a> for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue,
    Object newValue) {
  if ("text".equals(propertyName))
    super.firePropertyChange(propertyName, oldValue, newValue);
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * Overridden for performance reasons.
 * See the <a href="#override">Implementation Note</a> 
 * for more information.
 */
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {  
  // Strings get interned...
  if ("text".equals(propertyName)) {
    super.firePropertyChange(propertyName, oldValue, newValue);
  }
}

代码示例来源:origin: de.sciss/jtreetable

@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
  if (propertyName.equals("text")
    || propertyName.equals("labelFor")
    || propertyName.equals("displayedMnemonic")
    || ((propertyName.equals("font") || propertyName.equals("foreground"))
        && oldValue != newValue
        && getClientProperty(javax.swing.plaf.basic.BasicHTML.propertyKey) != null)) {
    super.firePropertyChange(propertyName, oldValue, newValue);
  }
}
@Override

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

/** Overridden to do nothing under normal circumstances.  If the boolean flag to <strong>not</strong> use the
 * internal HTML renderer is in effect, this will fire changes normally */
protected final void firePropertyChange(String name, Object old, Object nue) {
  if (swingRendering) {
    if ("text".equals(name) && isHtml()) {
      //Force in the HTML tags so the UI will set up swing HTML rendering appropriately
      nue = getText();
    }
    super.firePropertyChange(name, old, nue);
  }
}

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

/** Overridden to do nothing under normal circumstances.  If the boolean flag to <strong>not</strong> use the
 * internal HTML renderer is in effect, this will fire changes normally */
protected final void firePropertyChange(String name, Object old, Object nue) {
  if (swingRendering) {
    if ("text".equals(name) && isHtml()) {
      //Force in the HTML tags so the UI will set up swing HTML rendering appropriately
      nue = getText();
    }
    super.firePropertyChange(name, old, nue);
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui

public void propertyChange(PropertyChangeEvent evt) {
    if (KenaiUser.PROP_PRESENCE.equals(evt.getPropertyName())) {
      result.firePropertyChange(KenaiUser.PROP_PRESENCE, (Boolean) evt.getOldValue(), (Boolean) evt.getNewValue());
      result.setToolTipText(NbBundle.getMessage(UserNode.class, u.getKenaiUser().isOnline()?"LBL_ONLINE_MEMBER_TOOLTIP": "LBL_OFFLINE_MEMBER_TOOLTIP", u.getUserName(), name));
      result.repaint();
    }
  }
});

相关文章

JLabel类方法