本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Button.fire()
方法的一些代码示例,展示了Button.fire()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.fire()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Button
类名称:Button
方法名:fire
暂无
代码示例来源:origin: libgdx/libgdx
void setChecked (boolean isChecked, boolean fireEvent) {
if (this.isChecked == isChecked) return;
if (buttonGroup != null && !buttonGroup.canCheck(this, isChecked)) return;
this.isChecked = isChecked;
if (fireEvent) {
ChangeEvent changeEvent = Pools.obtain(ChangeEvent.class);
if (fire(changeEvent)) this.isChecked = !isChecked;
Pools.free(changeEvent);
}
}
代码示例来源:origin: libgdx/libgdx
void setChecked (boolean isChecked, boolean fireEvent) {
if (this.isChecked == isChecked) return;
if (buttonGroup != null && !buttonGroup.canCheck(this, isChecked)) return;
this.isChecked = isChecked;
if (fireEvent) {
ChangeEvent changeEvent = Pools.obtain(ChangeEvent.class);
if (fire(changeEvent)) this.isChecked = !isChecked;
Pools.free(changeEvent);
}
}
代码示例来源:origin: stackoverflow.com
@FXML Button button;
public void initialize() {
button.fire();
}
@FXML
public void refreshPressed() {
// refresh chart.
}
代码示例来源:origin: stackoverflow.com
public void function2 {
Button cancelButton = ( Button ) alert.getDialogPane().lookupButton( buttonTypeCancel );
cancelButton.fire();
}
代码示例来源:origin: stackoverflow.com
public void function2 {
for ( ButtonType bt : alert.getDialogPane().getButtonTypes() )
{
if ( bt.getButtonData() == ButtonBar.ButtonData.CANCEL_CLOSE )
{
Button cancelButton = ( Button ) alert.getDialogPane().lookupButton( bt );
cancelButton.fire();
break;
}
}
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
void setChecked (boolean isChecked, boolean fireEvent) {
if (this.isChecked == isChecked) return;
if (buttonGroup != null && !buttonGroup.canCheck(this, isChecked)) return;
this.isChecked = isChecked;
if (fireEvent) {
ChangeEvent changeEvent = Pools.obtain(ChangeEvent.class);
if (fire(changeEvent)) this.isChecked = !isChecked;
Pools.free(changeEvent);
}
}
代码示例来源:origin: stackoverflow.com
btnSignIn.fire();
内容来源于网络,如有侵权,请联系作者删除!