本文整理了Java中javafx.scene.Parent.requestLayout()
方法的一些代码示例,展示了Parent.requestLayout()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parent.requestLayout()
方法的具体详情如下:
包路径:javafx.scene.Parent
类名称:Parent
方法名:requestLayout
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
private static void setConstraint(Node node, Object key, Object value) {
if (value == null) {
node.getProperties().remove(key);
} else {
node.getProperties().put(key, value);
}
if (node.getParent() != null) {
node.getParent().requestLayout();
}
}
代码示例来源:origin: eu.mihosoft.vrl.workflow/vworkflows-fx
@Override
protected void layoutChildren() {
getParent().requestLayout();
super.layoutChildren();
for (Node n : getManagedChildren()) {
if (n instanceof Region) {
Region p = (Region) n;
double width = Math.max(p.getMinWidth(), p.getPrefWidth());
double height = Math.max(p.getMinHeight(), p.getPrefHeight());
n.resize(width, height);
double nX = Math.min(0, n.getLayoutX());
double nY = Math.min(0, n.getLayoutY());
n.relocate(nX, nY);
}
}
}
代码示例来源:origin: com.jfoenix/jfoenix
private static void setConstraint(Node node, Object key, Object value) {
if (value == null) {
node.getProperties().remove(key);
} else {
node.getProperties().put(key, value);
}
if (node.getParent() != null) {
node.getParent().requestLayout();
}
}
代码示例来源:origin: org.copper-engine/copper-monitoring-client
gridPane.add(buttons[i], (i + firstDay) % 7, 1 + (i + firstDay) / 7);
gridPane.getParent().requestLayout();
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.panes
/**
* Remember a layout constraint
*
* @param node
* the node
* @param key
* the constraint key
* @param value
* the value
*/
protected static void setConstraint(@NonNull Node node, @NonNull Object key, @Nullable Object value) {
if (value == null) {
node.getProperties().remove(key);
} else {
node.getProperties().put(key, value);
}
if (node.getParent() != null) {
node.getParent().requestLayout();
}
}
代码示例来源:origin: org.eclipse.fx/org.eclipse.fx.ui.panes
/**
* Remember a layout constraint
*
* @param node
* the node
* @param key
* the constraint key
* @param value
* the value
*/
protected static void setConstraint(@NonNull Node node, @NonNull Object key, @Nullable Object value) {
if (value == null) {
node.getProperties().remove(key);
} else {
node.getProperties().put(key, value);
}
if (node.getParent() != null) {
node.getParent().requestLayout();
}
}
内容来源于网络,如有侵权,请联系作者删除!