本文整理了Java中javafx.scene.Node.visibleProperty()
方法的一些代码示例,展示了Node.visibleProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.visibleProperty()
方法的具体详情如下:
包路径:javafx.scene.Node
类名称:Node
方法名:visibleProperty
暂无
代码示例来源:origin: speedment/speedment
private void hideShowBehaviour(Node node){
node.visibleProperty().bind(enabled);
node.managedProperty().bind(enabled);
node.disableProperty().bind(Bindings.not(enabled));
}
代码示例来源:origin: jfoenixadmin/JFoenix
closeButton.managedProperty().bind(closeButton.visibleProperty());
closeButton.setVisible(false);
代码示例来源:origin: stackoverflow.com
@Override
public void onEnteringPage(Wizard wizard) {
ObservableList<ButtonType> list = getButtonTypes();
for (ButtonType type : list) {
if (type.getButtonData().equals(ButtonBar.ButtonData.BACK_PREVIOUS)) {
Node prev = lookupButton(type);
prev.visibleProperty().setValue(Boolean.FALSE);
}
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
@Override
public Property<Boolean> visibleProperty() {
return content.getDisplay().visibleProperty();
}
代码示例来源:origin: org.controlsfx/controlsfx
private void showDecoration(Node targetNode, Decoration decoration) {
Node decorationNode = decoration.applyDecoration(targetNode);
if (decorationNode != null) {
List<Node> decorationNodes = nodeDecorationMap.get(targetNode);
if (decorationNodes == null) {
decorationNodes = new ArrayList<>();
nodeDecorationMap.put(targetNode, decorationNodes);
}
decorationNodes.add(decorationNode);
if (!getChildren().contains(decorationNode)) {
getChildren().add(decorationNode);
StackPane.setAlignment(decorationNode, Pos.TOP_LEFT); // TODO support for all positions.
}
}
targetNode.visibleProperty().addListener(visibilityListener);
}
代码示例来源:origin: io.datafx/featuretoggle
public void hideByFeature(Node node, String featureName) {
node.visibleProperty().bind(createFeatureProperty(featureName).not());
}
代码示例来源:origin: org.javafxdata/datafx-featuretoggle
public void hideByFeature(Node node, String featureName) {
node.visibleProperty().bind(createFeatureProperty(featureName).not());
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
protected void doLayout(AbstractTableStructure ts) {
if (ts.getToolbar().isPresent()) {
toolbar = ts.getToolbar().get();
actionsAndFiltersContainer.getChildren().add(toolbar);
HBox.setHgrow(toolbar, Priority.NEVER);
if(!toolbar.managedProperty().isBound()) {
toolbar.managedProperty().bind(toolbar.visibleProperty());
}
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
row.getDisplay().visibleProperty().set(true);
row.getDisplay().visibleProperty().set(false);
String newValKey = (String) comp.getValueToValidate();
if (attrValue.contains(newValKey)) {
row.getDisplay().visibleProperty().set(true);
} else {
row.getDisplay().visibleProperty().set(false);
代码示例来源:origin: org.controlsfx/controlsfx
clippedNode.visibleProperty().unbind();
clippedNode.setVisible(true);
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* Build the pagination
*/
public void buildPagination() {
if (paginationConfiguration != null) {
final String paginationImpl = paginationConfiguration.getPropertyValue("paginationImpl", "SimplePaginationBar");
pagination = (IPaginationBar) Services.getBean(paginationImpl);
pagination.buildFrom(controller, paginationConfiguration);
pagination.setPageable(this);
final Integer rpp = rootConfiguration.getIntPropertyValue("rowPerPage");
if (rpp > 0) {
pagination.setCurrentPageSize(rpp.toString());
}
pagination.getDisplay().visibleProperty().addListener((ChangeListener<Boolean>) (observable, oldValue, newValue) -> {
});
}
}
代码示例来源:origin: stackoverflow.com
import javafx.application.Application;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.stage.Stage;
public class DialogClosure extends Application{
@Override
public void start(Stage stage) throws Exception {
Button openDialog = new Button("Open Dialog");
openDialog.setOnAction(event -> {
Dialog dialog = new Dialog();
dialog.getDialogPane().getButtonTypes().add(ButtonType.CLOSE);
Node closeButton = dialog.getDialogPane().lookupButton(ButtonType.CLOSE);
closeButton.managedProperty().bind(closeButton.visibleProperty());
closeButton.setVisible(false);
dialog.showAndWait();
});
stage.setScene(new Scene(openDialog));
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* @{inheritedDoc}
*/
@Override
public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) {
super.buildFrom(controller, configuration);
locationContainer.managedProperty().bind(locationContainer.visibleProperty());
locationContainer.setVisible(false);
primaryMenuButton.getDisplay().managedProperty().bind(primaryMenuButton.getDisplay().visibleProperty());
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
if (this.resizeLeft != null) {
this.resizeLeft.resizeRelocate(0, this.getResizeHandleSize(), this.getResizeHandleSize(), getHeight() - 2 * this.getResizeHandleSize());
this.resizeLeft.visibleProperty().bind(this.resizeable);
this.resizeRight.visibleProperty().bind(this.resizeable);
this.resizeTop.visibleProperty().bind(this.resizeable);
this.resizeBottom.visibleProperty().bind(this.resizeable);
this.resizeCornerRightBottom.visibleProperty().bind(this.resizeable);
this.resizeCornerRightTop.visibleProperty().bind(this.resizeable);
this.resizeCornerLeftBottom.visibleProperty().bind(this.resizeable);
this.resizeCornerLeftTop.visibleProperty().bind(this.resizeable);
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
if (this.resizeLeft != null) {
this.resizeLeft.resizeRelocate(0, this.getResizeHandleSize(), this.getResizeHandleSize(), getHeight() - 2 * this.getResizeHandleSize());
this.resizeLeft.visibleProperty().bind(this.resizeable);
this.resizeRight.visibleProperty().bind(this.resizeable);
this.resizeTop.visibleProperty().bind(this.resizeable);
this.resizeBottom.visibleProperty().bind(this.resizeable);
this.resizeCornerRightBottom.visibleProperty().bind(this.resizeable);
this.resizeCornerRightTop.visibleProperty().bind(this.resizeable);
this.resizeCornerLeftBottom.visibleProperty().bind(this.resizeable);
this.resizeCornerLeftTop.visibleProperty().bind(this.resizeable);
代码示例来源:origin: com.miglayout/miglayout-javafx
while (c.next()) {
for (Node node : c.getRemoved()) {
node.visibleProperty().removeListener(gridInvalidator);
node.visibleProperty().addListener(gridInvalidator);
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
nodecontent.managedProperty().bind(nodecontent.visibleProperty());
selectableCompsLayout.getChildren().add(nodecontent);
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
/**
* {@inheritDoc}
*/
@Override
public void layout(IViewLayoutManageable layoutManageable) {
super.layout(layoutManageable);
if (topNode == null) {
headerAreaSection.setVisible(false);
AnchorPane.clearConstraints(anchorCenteredPane);
AnchorPane.setLeftAnchor(anchorCenteredPane, 0.);
AnchorPane.setRightAnchor(anchorCenteredPane, 0.);
AnchorPane.setTopAnchor(anchorCenteredPane, 0.);
AnchorPane.setBottomAnchor(anchorCenteredPane, 72.);
} else {
headerAreaSection.heightProperty().addListener((ChangeListener<Number>) (observable, oldValue, newValue) -> {
headerHeight = newValue.doubleValue();
AnchorPane.clearConstraints(anchorCenteredPane);
AnchorPane.setTopAnchor(anchorCenteredPane, 0.);
AnchorPane.setLeftAnchor(anchorCenteredPane, 0.);
AnchorPane.setRightAnchor(anchorCenteredPane, 0.);
AnchorPane.setBottomAnchor(anchorCenteredPane, 72.);
});
}
if(bottomNode != null) {
bottomNode.visibleProperty().addListener((ChangeListener<Boolean>) (observable, oldValue, newValue) -> {
updateConstraints();
});
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
header.setFormRowEditor(this);
header.buildFrom(controller, inlineActionconfiguration);
header.getDisplay().managedProperty().bind(header.getDisplay().visibleProperty());
rootLayout.setTop(header.getDisplay());
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
editLayout.getDisplay().visibleProperty().bind(Bindings.not(viewLayout.getDisplay().visibleProperty()));
getChildren().addAll(viewLayout.getDisplay(), editLayout.getDisplay());
NodeHelper.setHgrow(viewLayout.getDisplay(), editLayout.getDisplay(), this);
内容来源于网络,如有侵权,请联系作者删除!