本文整理汇总了Java中org.controlsfx.control.StatusBar类的典型用法代码示例。如果您正苦于以下问题:Java StatusBar类的具体用法?Java StatusBar怎么用?Java StatusBar使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StatusBar类属于org.controlsfx.control包,在下文中一共展示了StatusBar类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initializeStatusBar
import org.controlsfx.control.StatusBar; //导入依赖的package包/类
private void initializeStatusBar() {
statusBar = new StatusBar();
pane.getChildren().add(statusBar);
AnchorPane.setBottomAnchor(statusBar, 0.0);
AnchorPane.setLeftAnchor(statusBar, 0.0);
AnchorPane.setRightAnchor(statusBar, 0.0);
busyProperty.addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue,
Boolean newValue) {
if(newValue != null && newValue.booleanValue()) {
statusBar.setProgress(-1);
} else {
statusBar.setProgress(0);
}
}
});
statusBar.textProperty().bind(statusProperty);
}
示例2: setUpStatusBar
import org.controlsfx.control.StatusBar; //导入依赖的package包/类
/**
* setup the status bar
*/
public void setUpStatusBar() {
statusBar = new StatusBar();
watchDogLabel = new Label();
watchDogLabel.setTextFill(Color.web("808080"));
watchDogLabel.setFont(new Font("Arial", 24));
this.setWatchDogState("?", "-");
statusBar.getLeftItems().add(watchDogLabel);
getRoot().getChildren().add(statusBar);
}
示例3: StatusBarManager
import org.controlsfx.control.StatusBar; //导入依赖的package包/类
public StatusBarManager(StatusBar bar, ObservableValue<CodeArea> codeArea, Property<Boolean> overrideProperty) {
this.bar = bar;
this.area = codeArea;
this.overrideProperty = overrideProperty;
initBar();
initEvent();
}
示例4: initializeStatusBar
import org.controlsfx.control.StatusBar; //导入依赖的package包/类
private void initializeStatusBar() {
statusBar = new StatusBar();
pane.getChildren().add(statusBar);
AnchorPane.setBottomAnchor(statusBar, 0.0);
AnchorPane.setLeftAnchor(statusBar, 0.0);
AnchorPane.setRightAnchor(statusBar, 0.0);
busyProperty.addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue,
Boolean newValue) {
if(newValue != null && newValue.booleanValue()) {
statusBar.setProgress(-1);
} else {
statusBar.setProgress(0);
}
}
});
// text in status bar
statusBar.textProperty().bind(statusProperty);
}
示例5: GoogleCalendarAppViewSkin
import org.controlsfx.control.StatusBar; //导入依赖的package包/类
public GoogleCalendarAppViewSkin(GoogleCalendarAppView control) {
super(control);
calendarView = control.getCalendarView();
dataManager = new GoogleCalendarDataManager();
cookieManager = new CookieManager();
syncManager = new GoogleSyncManager();
searchProvider = new GoogleCalendarSearchTextManager(dataManager);
CalendarViewTimeUpdateThread timeUpdateThread = new CalendarViewTimeUpdateThread(calendarView);
GoogleAutoRefreshThread autoRefreshThread = new GoogleAutoRefreshThread(dataManager);
GoogleNotificationPopupThread notificationThread = new GoogleNotificationPopupThread(calendarView);
loginView = new WebView();
loginView.setVisible(false);
loginView.getEngine().titleProperty().addListener((obs, oldValue, newValue) -> {
if (newValue != null && newValue.contains("Success code=")) {
String code = newValue.split("code=")[1];
if (SecurityService.getInstance().authorize(code)) {
login();
}
}
});
Bindings.bindContentBidirectional(control.getLogPane().getItems(), GoogleTaskExecutor.getInstance().getLog());
StatusBar statusBar = new StatusBar();
statusBar.textProperty().bind(Bindings.when(GoogleTaskExecutor.getInstance().progressProperty().isEqualTo(0)).then("").otherwise("Loading..."));
statusBar.progressProperty().bind(GoogleTaskExecutor.getInstance().progressProperty());
calendarView.addEventFilter(LoadEvent.LOAD, dataManager);
calendarView.setEntryFactory(new GoogleEntryCreateCallback());
calendarView.setCalendarSourceFactory(new GoogleCalendarCreateCallback(control.getScene().getWindow()));
calendarView.setEntryDetailsPopOverContentCallback(new GoogleEntryPopOverContentProvider());
calendarPane = new BorderPane();
calendarPane.setTop(createMenuBar(autoRefreshThread));
calendarPane.setCenter(calendarView);
calendarPane.setBottom(statusBar);
DeveloperConsole developerConsole = calendarView.getDeveloperConsole();
if (developerConsole != null) {
developerConsole.getTabPane().getTabs().add(new Tab("Google", control.getLogPane()));
}
getChildren().add(new StackPane(loginView, calendarPane));
CookieHandler.setDefault(cookieManager);
timeUpdateThread.start();
autoRefreshThread.start();
notificationThread.start();
attemptAutoLogin();
}
示例6: getStatusBar
import org.controlsfx.control.StatusBar; //导入依赖的package包/类
public StatusBar getStatusBar() {
return statusBar;
}
示例7: getStatusBar
import org.controlsfx.control.StatusBar; //导入依赖的package包/类
public StatusBar getStatusBar() {
return statusBar;
}
示例8: setStatusBarMessage
import org.controlsfx.control.StatusBar; //导入依赖的package包/类
public static void setStatusBarMessage(String message) {
Platform.runLater(() -> {
StatusBar statusBar = mainWindowController.getStatusBar();
statusBar.setText(message);
});
}
示例9: StatusBarWrapper
import org.controlsfx.control.StatusBar; //导入依赖的package包/类
public StatusBarWrapper() {
statusBar = new StatusBar();
statusBar.setBorder(null);
}