本文整理汇总了Java中javafx.beans.property.SimpleBooleanProperty.setValue方法的典型用法代码示例。如果您正苦于以下问题:Java SimpleBooleanProperty.setValue方法的具体用法?Java SimpleBooleanProperty.setValue怎么用?Java SimpleBooleanProperty.setValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.beans.property.SimpleBooleanProperty
的用法示例。
在下文中一共展示了SimpleBooleanProperty.setValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: beforeEach
import javafx.beans.property.SimpleBooleanProperty; //导入方法依赖的package包/类
@Override
public void beforeEach() {
graphVisualizer = mock(GraphVisualizer.class);
settings = mock(Settings.class);
createContextOfTest();
advancedSettingsViewController = new AdvancedSettingsViewController();
injectMembers(advancedSettingsViewController);
final SimpleBooleanProperty displayLaneBorder = new SimpleBooleanProperty();
displayLaneBorder.setValue(false);
when(graphVisualizer.getDisplayBordersProperty()).thenReturn(displayLaneBorder);
checkBox = new CheckBox();
checkBox.setSelected(true);
mouseEvent = mock(ActionEvent.class);
}
示例2: initGame
import javafx.beans.property.SimpleBooleanProperty; //导入方法依赖的package包/类
public void initGame(Main mainApp, Core c) {
setMainApp(mainApp);
setCore(c);
pieceChosenInInventory = -1;
highlighted = new Highlighter();
traductor = new TraducteurBoard();
lastCoord = new CoordGene<Double>(0.0,0.0);
animationPlaying = new SimpleBooleanProperty();
animationPlaying.setValue(false);
nbMessage = 0;
nbChatRow = 2;
inventoryGroup = new ToggleGroup();
if (!core.hasPreviousState()) {
undo.setDisable(true);
}
if (!core.hasNextState()) {
redo.setDisable(true);
}
initButtonByInventory();
animation = new AnimationTile(panCanvas,traductor);
refreshor = new RefreshJavaFX(core, gameCanvas, highlighted, traductor, this);
initGameCanvas();
core.setGameScreen(this);
if (core.getMode() == Consts.AIVP && core.getTurn() == 0){
core.playAI();
}
if(core.getMode() != Consts.PVEX && core.getMode() != Consts.EXVP){
inputChat.setVisible(false);
textChat.setVisible(false);
scrollChat.setVisible(false);
}else{
hideButtonsForNetwork();
}
refreshor.start();
}