本文整理匯總了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();
}