本文整理了Java中javafx.scene.Node.isDisabled()
方法的一些代码示例,展示了Node.isDisabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.isDisabled()
方法的具体详情如下:
包路径:javafx.scene.Node
类名称:Node
方法名:isDisabled
暂无
代码示例来源:origin: org.testfx/testfx-legacy
@Override
public boolean matchesSafely(Object target) {
if (target instanceof String) {
try {
Node node = find((String) target);
return node.isDisabled() == shouldBeDisabled;
}
catch (NoNodesFoundException e) {
return false;
}
}
else if (target instanceof Node) {
return ((Node) target).isDisabled() == shouldBeDisabled;
}
return false;
}
代码示例来源:origin: org.loadui/testFx
@Override
public boolean matchesSafely( Object target )
{
if( target instanceof String )
{
try
{
Node node = find( ( String )target );
return node.isDisabled() == shouldBeDisabled;
}
catch( NoNodesFoundException e )
{
return false;
}
}
else if( target instanceof Node )
{
return ( ( Node )target ).isDisabled() == shouldBeDisabled;
}
return false;
}
代码示例来源:origin: stackoverflow.com
for( Node node: parent.getChildrenUnmodifiable()) {
if( node.isVisible() && !node.isDisabled() && node.isFocusTraversable())
return node;
}
return null;
代码示例来源:origin: io.github.factoryfx/javafxDataEditing
if (!isValid && !node.isDisabled()) {
if (node.getStyleClass().stream().noneMatch(c -> c.equals("error"))) node.getStyleClass().add("error");
代码示例来源:origin: org.tentackle/tentackle-fx
/**
* Does the physical update of the style.
* See resources/org/tentackle/fx/tentackle.css
*
* @param mandatory true if mandatory
*/
protected void updateMandatoryStyle(boolean mandatory) {
if (mandatory && !getNode().isDisabled()) {
// node must be editable by the user to
// show the mandator color.
if (!getNode().getStyleClass().contains(MANDATORY_STYLE)) {
getNode().getStyleClass().add(MANDATORY_STYLE);
}
}
else {
getNode().getStyleClass().remove(MANDATORY_STYLE);
}
}
代码示例来源:origin: org.tentackle/tentackle-fx
try {
updatingModel = true;
if (!getNode().isDisabled()) {
setError(null);
try {
内容来源于网络,如有侵权,请联系作者删除!