本文整理了Java中javax.swing.JFileChooser.isVisible()
方法的一些代码示例,展示了JFileChooser.isVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.isVisible()
方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称:JFileChooser
方法名:isVisible
暂无
代码示例来源:origin: joel-costigliola/assertj-swing
/**
* Returns the {@code String} representation of the given {@code Component}, which should be a {@code JFileChooser}.
*
* @param c the given {@code Component}.
* @return the {@code String} representation of the given {@code JFileChooser}.
*/
@RunsInCurrentThread
@Override
@Nonnull protected String doFormat(@Nonnull Component c) {
JFileChooser fileChooser = (JFileChooser) c;
String format = "%s[name=%s, dialogTitle=%s, dialogType=%s, currentDirectory=%s, enabled=%b, visible=%b, showing=%b";
return String.format(format, getRealClassName(c), quote(fileChooser.getName()),
quote(fileChooser.getDialogTitle()), DIALOG_TYPES.get(fileChooser.getDialogType()),
new StandardRepresentation().toStringOf(fileChooser.getCurrentDirectory()),
fileChooser.isEnabled(),
fileChooser.isVisible(), fileChooser.isShowing());
}
代码示例来源:origin: opendatakit/briefcase
@Override
public boolean matches(Object item) {
if (item instanceof DialogFixture)
return ((DialogFixture) item).target().isVisible();
if (item instanceof JDialog)
return ((JDialog) item).isVisible();
if (item instanceof JFileChooserFixture)
return ((JFileChooserFixture) item).target().isVisible();
throw new RuntimeException("Invalid matcher for " + item);
}
内容来源于网络,如有侵权,请联系作者删除!