本文整理了Java中javafx.scene.layout.HBox.setVisible()
方法的一些代码示例,展示了HBox.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HBox.setVisible()
方法的具体详情如下:
包路径:javafx.scene.layout.HBox
类名称:HBox
方法名:setVisible
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
private void showError(ValidatorBase validator) {
// set text in error label
errorLabel.setText(validator.getMessage());
// show error icon
Node awsomeIcon = validator.getIcon();
errorIcon.getChildren().clear();
if (awsomeIcon != null) {
errorIcon.getChildren().add(awsomeIcon);
StackPane.setAlignment(awsomeIcon, Pos.TOP_RIGHT);
}
// init only once, to fix the text pane from resizing
if (initYlayout == -1) {
initYlayout = getBoundsInParent().getMinY();
initHeight = getHeight();
currentFieldHeight = initHeight;
}
errorContainer.setVisible(true);
errorShown = true;
}
代码示例来源:origin: jfoenixadmin/JFoenix
private void hideError() {
if (heightChanged) {
new Timeline(new KeyFrame(Duration.millis(160),
new KeyValue(translateYProperty(), 0, Interpolator.EASE_BOTH))).play();
// reset the height of text field
new Timeline(new KeyFrame(Duration.millis(160),
new KeyValue(minHeightProperty(), initHeight, Interpolator.EASE_BOTH))).play();
heightChanged = false;
}
// clear error label text
errorLabel.setText(null);
oldErrorLabelHeight = errorLabelInitHeight;
// clear error icon
errorIcon.getChildren().clear();
// reset the height of the text field
currentFieldHeight = initHeight;
// hide error container
errorContainer.setVisible(false);
errorShown = false;
}
代码示例来源:origin: jfoenixadmin/JFoenix
errorContainer.setVisible(false);
errorContainer.setOpacity(0);
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void hideBottomToolbar() {
bottomToolbar.setVisible(false);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void showBottomToolbar() {
bottomToolbar.setVisible(true);
bottomToolbar.setVisible(false);
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void hideBottomToolbar() {
bottomToolbar.setVisible(false);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void hideBottomToolbar() {
bottomToolbar.setVisible(false);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void showBottomToolbar() {
bottomToolbar.setVisible(true);
bottomToolbar.setVisible(false);
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void showBottomToolbar() {
bottomToolbar.setVisible(true);
bottomToolbar.setVisible(false);
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void showBottomToolbar() {
bottomToolbar.setVisible(false);
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void hideBottomToolbar() {
bottomToolbar.setVisible(false);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
public void done() {
defaultToolbar.setVisible(true);
modifyingToolbar.setVisible(false);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
private void modifyClicked() {
// hide more actions buttons
defaultToolbar.setVisible(false);
modifyingToolbar.setVisible(true);
// show all selectors
tableView.modify();
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
public void hideToolbar() {
toolbar.setVisible(false);
toolbar.setManaged(false);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
public void onCollapseExpand() {
if (expanded.get()) {
expanded.set(false);
headerActionsPane.setVisible(false);
} else {
expanded.set(true);
headerActionsPane.setVisible(true);
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
public void setActions(List<Node> actions) {
if (actions != null) {
toolbar.setVisible(!actions.isEmpty());
toolbar.setManaged(!actions.isEmpty());
for (final Node node : actions) {
if (node instanceof Button) {
node.setStyle("-fx-text-fill: #3b5998;" + "-fx-font-family: helvetica, arial, sans-serif;" + "-fx-font-size:12px;-fx-font-weight:bold;"
+ "-fx-effect: innershadow( three-pass-box , rgba(0,0,0,0.3), 2,0.0,0,0);");
}
toolbar.getChildren().add(node);
}
}
if (!toolbar.isManaged()) {
}
}
代码示例来源:origin: Tristan971/Lyrebird
/**
* Manages extracting and previewing the medias embedded in this tweet.
*
* @param status The status for which to manage the embedded media.
*/
private void readMedias(final Status status) {
final List<Node> embeddingNodes = mediaEmbeddingService.embed(status);
mediaBox.setManaged(!embeddingNodes.isEmpty());
mediaBox.setVisible(!embeddingNodes.isEmpty());
mediaBox.getChildren().setAll(embeddingNodes);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
private void buildFilterToolbar() {
filtersToolbar.setStyle("-fx-background-color: white;" + "-fx-alignment:CENTER_LEFT;" + "-fx-padding: 16 16 16 64;" + "-fx-spacing:16;" + "-fx-border-color: -grey-color-300;"
+ "-fx-border-width: 0 0 1 0;" + "-fx-pref-height: 48;");
getChildren().add(filtersToolbar);
NodeHelper.setHgrow(filtersToolbar);
filtersToolbar.managedProperty().bind(filtersToolbar.visibleProperty());
final Hyperlink filterToolBarButton = new Hyperlink();
defaultToolbar.getChildren().add(filterToolBarButton);
filterToolBarButton.setOnAction(e -> {
filtersToolbar.visibleProperty().set(!filtersToolbar.visibleProperty().get());
});
filtersToolbar.setVisible(false);
}
代码示例来源:origin: Tristan971/Lyrebird
@Override
public void initialize() {
authorProfilePicturePane.setClip(Clipping.getCircleClip(24.0));
Nodes.hideAndResizeParentIf(retweetHbox, isRetweet);
authorProfilePicture.setImage(GENERAL_USER_AVATAR_DARK.getImage());
setUpInteractionButtons();
mediaBox.setManaged(false);
mediaBox.setVisible(false);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
public InternalTab(final String title) {
this.title.set(title);
getStyleClass().setAll("InternalTab-primary");
toolbar.setStyle("-fx-background-color: white; " + "-fx-border-color: #e5e5e5; " + "-fx-border-width: 0 0 1 0;" + "-fx-padding: 15 5 8 5;");
toolbar.setSpacing(10);
toolbar.setPrefHeight(25);
toolbar.setVisible(false);
toolbar.setManaged(false);
setStyle("-fx-min-width: 100;" + "-fx-padding: 0 10 0 10");
}
内容来源于网络,如有侵权,请联系作者删除!