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

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

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

JComponent.firePropertyChange介绍

暂无

代码示例

代码示例来源: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: google/sagetv

/**
 * 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: 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: com.jidesoft/jide-oss

/**
 * Sets the resize corner size.
 *
 * @param resizeCornerSize the resize corner size.
 */
public void setResizeCornerSize(int resizeCornerSize) {
  if (_resizeCornerSize != resizeCornerSize) {
    int old = _resizeCornerSize;
    _resizeCornerSize = resizeCornerSize;
    _component.firePropertyChange(PROPERTY_RESIZE_CORNER_SIZE, old, _resizeCornerSize);
  }
}

代码示例来源:origin: cmu-phil/tetrad

public void firePropertyChange(String s, Object o, String name) {
    super.firePropertyChange(s, o, name);
  }
}

代码示例来源:origin: com.jidesoft/jide-oss

/**
 * Sets resizable corners.
 *
 * @param resizableCorners new resizable corners. The value is a bitwise OR of eight constants defined in {@link
 *                         Resizable}.
 */
public void setResizableCorners(int resizableCorners) {
  if (_resizableCorners != resizableCorners) {
    int old = _resizableCorners;
    _resizableCorners = resizableCorners;
    _component.firePropertyChange(PROPERTY_RESIZABLE_CORNERS, old, _resizableCorners);
  }
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

@Override
public void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
  super.firePropertyChange(propertyName, oldValue, newValue);
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-status

@Override
public void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
  super.firePropertyChange(propertyName, oldValue, newValue);
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget

public void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
  super.firePropertyChange(propertyName, oldValue, newValue);
}

代码示例来源:origin: tulskiy/musique

@Override
  public void actionPerformed(ActionEvent e) {
    comp.firePropertyChange("accept", 1, 2);
    dialog.setVisible(false);
    dialog.dispose();
  }
});

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

/** Overridden to catch changes in those client properties that are
 * relevant to PropertyPanel */
protected void firePropertyChange(String nm, Object old, Object nue) {
  if (
    ("flat".equals(nm) || "radioButtonMax".equals(nm) || "suppressCustomEditor".equals(nm) ||
      "useLabels".equals(nm)) && (displayer != null) && displayer instanceof PropertyDisplayer_Inline
  ) { //NOI18N
    updateDisplayerFromClientProp(nm, nue);
  }
  super.firePropertyChange(nm, old, nue);
}

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

/** Overridden to catch changes in those client properties that are 
 * relevant to PropertyPanel */
protected void firePropertyChange(String nm, Object old, Object nue) {
  if (("flat".equals(nm) || "radioButtonMax".equals(nm) ||
    "suppressCustomEditor".equals(nm) || "useLabels".equals(nm)) 
    && displayer != null && 
    displayer instanceof PropertyDisplayer_Inline) { //NOI18N
   updateDisplayerFromClientProp(nm, nue);
  }
  super.firePropertyChange(nm, old, nue);
}

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

/** Overridden to catch changes in those client properties that are 
 * relevant to PropertyPanel */
protected void firePropertyChange(String nm, Object old, Object nue) {
  if (("flat".equals(nm) || "radioButtonMax".equals(nm) ||
    "suppressCustomEditor".equals(nm) || "useLabels".equals(nm)) 
    && displayer != null && 
    displayer instanceof PropertyDisplayer_Inline) { //NOI18N
   updateDisplayerFromClientProp(nm, nue);
  }
  super.firePropertyChange(nm, old, nue);
}

代码示例来源:origin: senbox-org/snap-desktop

@Override
  public void actionPerformed(ActionEvent e) {
    final boolean collocate = button.isSelected();
    getCrsUI().firePropertyChange("collocate", !collocate, collocate);
  }
});

代码示例来源:origin: bcdev/beam

@Override
  public void actionPerformed(ActionEvent e) {
    final boolean collocate = button.isSelected();
    getCrsUI().firePropertyChange("collocate", !collocate, collocate);
  }
});

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

/**
Sets whether the file will be accessed in key or sequential order.
This property is bound and constrained.
Note that the data in the form will not change
until a <i>load()</i> is done.

@param keyed  true if the file will be accessed in key order; false
       if the file will be accessed in sequential order.
@exception  PropertyVetoException   If the change is vetoed.
**/
public void setKeyed (boolean keyed)
  throws PropertyVetoException
{
  Boolean old = new Boolean(getKeyed());

  // Fire a vetoable change event.
  fireVetoableChange("keyed", old, new Boolean(keyed));

  // Make property change.
  tableData_.setKeyed(keyed);

  // Fire the property change event.
  firePropertyChange("keyed", old, new Boolean(keyed));
}

代码示例来源:origin: bcdev/beam

@Override
  public void propertyChange(PropertyChangeEvent evt) {
    collocateProductSelector.getProductNameComboBox().setEnabled(panel.isEnabled());
    collocateProductSelector.getProductFileChooserButton().setEnabled(panel.isEnabled());
    final boolean collocate = getRadioButton().isSelected();
    getCrsUI().firePropertyChange("collocate", !collocate, collocate);
  }
});

代码示例来源:origin: senbox-org/snap-desktop

@Override
  public void propertyChange(PropertyChangeEvent evt) {
    collocateProductSelector.getProductNameComboBox().setEnabled(panel.isEnabled());
    collocateProductSelector.getProductFileChooserButton().setEnabled(panel.isEnabled());
    final boolean collocate = getRadioButton().isSelected();
    getCrsUI().firePropertyChange("collocate", !collocate, collocate);
  }
});

代码示例来源:origin: bcdev/beam

@Override
  public void propertyChange(PropertyChangeEvent evt) {
    collocateProductSelector.getProductNameComboBox().setEnabled(panel.isEnabled());
    collocateProductSelector.getProductFileChooserButton().setEnabled(panel.isEnabled());
    final boolean collocate = getRadioButton().isSelected();
    getCrsUI().firePropertyChange("collocate", !collocate, collocate);
  }
});

代码示例来源:origin: org.icepdf.os/icepdf-viewer

public boolean setRotation(float viewRotation) {
  if (documentViewModel == null) {
    return false;
  }
  float oldRotation = documentViewModel.getViewRotation();
  boolean changed = documentViewModel.setViewRotation(viewRotation);
  if (changed) {
    // send out the property change event.
    ((JComponent) documentView).invalidate();
    ((JComponent) documentView).firePropertyChange(PropertyConstants.DOCUMENT_VIEW_ROTATION_CHANGE, oldRotation, viewRotation);
    ((JComponent) documentView).revalidate();
  }
  return changed;
}

相关文章

JComponent类方法