本文整理了Java中com.vaadin.ui.Window.focus()
方法的一些代码示例,展示了Window.focus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.focus()
方法的具体详情如下:
包路径:com.vaadin.ui.Window
类名称:Window
方法名:focus
[英]Cause the window to be brought on top of other windows and gain keyboard focus.
[中]使窗口位于其他窗口之上,并获得键盘焦点。
代码示例来源:origin: info.magnolia.ui/magnolia-ui-framework
public Window buildAndOpen() {
Window window = this.build();
UI.getCurrent().addWindow(window);
window.focus();
return window;
}
代码示例来源:origin: apache/ace
private void updateTableData() {
m_artifactsPanel.populate();
m_featuresPanel.populate();
m_distributionsPanel.populate();
m_targetsPanel.populate();
m_mainWindow.focus();
}
};
代码示例来源:origin: apache/ace
/**
* @see com.vaadin.ui.Button.ClickListener#buttonClick(com.vaadin.ui.Button.ClickEvent)
*/
public void buttonClick(ClickEvent event) {
Window parent = getParent();
if (parent != null) {
parent.removeWindow(this);
parent.focus();
}
AbstractComponent comp = (AbstractComponent) event.getComponent();
m_callback.onDialogResult((String) comp.getData());
}
代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin-navigator
wnd.focus();
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void toggleWindow(final ClickEvent event) {
if (notificationsWindow.isAttached()) {
getUI().removeWindow(notificationsWindow);
return;
}
createUnreadMessagesLayout();
notificationsWindow.setPositionY(event.getClientY() - event.getRelativeY() + 40);
getUI().addWindow(notificationsWindow);
currentView.refreshView(unreadNotifications.keySet());
clear();
notificationsWindow.focus();
}
代码示例来源:origin: eclipse/hawkbit
private void toggleWindow(final ClickEvent event) {
if (notificationsWindow.isAttached()) {
getUI().removeWindow(notificationsWindow);
return;
}
createUnreadMessagesLayout();
notificationsWindow.setPositionY(event.getClientY() - event.getRelativeY() + 40);
getUI().addWindow(notificationsWindow);
currentView.refreshView(unreadNotifications.keySet());
clear();
notificationsWindow.focus();
}
代码示例来源:origin: com.github.markash/components
notificationsWindow.setPositionX(event.getClientX() - event.getRelativeX() - 300);
getUI().addWindow(notificationsWindow);
notificationsWindow.focus();
this.setStyleName(NotificationStyle.BUTTON_HIDE);
} else {
代码示例来源:origin: apache/ace
m_mainWindow.focus();
内容来源于网络,如有侵权,请联系作者删除!