本文整理汇总了Java中org.zkoss.zul.Window.getFellow方法的典型用法代码示例。如果您正苦于以下问题:Java Window.getFellow方法的具体用法?Java Window.getFellow怎么用?Java Window.getFellow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.zkoss.zul.Window
的用法示例。
在下文中一共展示了Window.getFellow方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: showError
import org.zkoss.zul.Window; //导入方法依赖的package包/类
/**
* Displays an error window for the error code provided.
* @param errorCode error code for the message to be displayed.
*/
private void showError(String errorCode) {
Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
errorMessage.setValue(Labels.getLabel(errorCode));
try {
errorWindow.doModal();
} catch (SuspendNotAllowedException ex) {
Logger.getLogger(ShutdownController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
}
}
示例2: showError
import org.zkoss.zul.Window; //导入方法依赖的package包/类
/**
* Displays an error window for the error code provided.
* @param errorCode error code for the message to be displayed.
* @param exception exception to log
*/
private void showError(String errorCode, Exception exception) {
if (exception != null) {
Logger.getLogger(FileController.class.getName()).log(Level.SEVERE, "ERROR DISPATCHING JOB", exception);
}
Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
errorMessage.setValue(Labels.getLabel(errorCode));
try {
errorWindow.doModal();
} catch (SuspendNotAllowedException ex) {
Logger.getLogger(FileController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
}
}
示例3: explainScore
import org.zkoss.zul.Window; //导入方法依赖的package包/类
@Command
public void explainScore(@BindingParam("document") Document document)
throws SearchLibException, InterruptedException, IOException,
ParseException, SyntaxError {
Client client = getClient();
if (client == null)
return;
ResultDocumentsInterface<?> result = getResultDocuments();
if (result == null)
return;
int docId = document.getDocId();
String explanation = client.explain(result.getRequest(), docId, true);
Window win = (Window) Executions.createComponents(
"/WEB-INF/zul/query/result/explanation.zul", null, null);
Html html = (Html) win.getFellow("htmlExplain", true);
html.setContent(explanation);
win.doModal();
}
示例4: showError
import org.zkoss.zul.Window; //导入方法依赖的package包/类
/**
* Displays an error window for the error code provided.
* @param errorCode error code for the message to be displayed.
*/
private void showError(Row row, Exception exception, String errorCode) {
if (exception != null) {
Logger.getLogger(UpgradesGridRenderer.class.getName()).log(Level.SEVERE, "ERROR DELETING UPGRADE", exception);
}
Window errorWindow = (Window) row.getGrid().getFellow("errorWindow");
Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
errorMessage.setValue(Labels.getLabel(errorCode));
try {
errorWindow.doModal();
} catch (SuspendNotAllowedException ex) {
Logger.getLogger(UpgradesGridRenderer.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
}
}
示例5: showError
import org.zkoss.zul.Window; //导入方法依赖的package包/类
/**
* Displays an error window for the error code provided.
* @param errorCode error code for the message to be displayed.
* @param exception exception to be logged
* @param row row where the exception occured
*/
private void showError(Row row, Exception exception, String errorCode) {
if (exception != null) {
Logger.getLogger(DestroyGridRenderer.class.getName()).log(Level.SEVERE, "ERROR DESTROYING OR RESURRECTING INSTANCE", exception);
}
Window errorWindow = (Window) row.getGrid().getFellow("errorWindow");
Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
errorMessage.setValue(Labels.getLabel(errorCode));
try {
errorWindow.doModal();
} catch (SuspendNotAllowedException ex) {
Logger.getLogger(DestroyGridRenderer.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
}
}
示例6: showError
import org.zkoss.zul.Window; //导入方法依赖的package包/类
/**
* Displays an error window for the error code provided.
* @param errorCode error code for the message to be displayed.
*/
private void showError(String errorCode) {
Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
errorMessage.setValue(Labels.getLabel(errorCode));
try {
errorWindow.doModal();
} catch (SuspendNotAllowedException ex) {
Logger.getLogger(RescueController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
}
}
示例7: showError
import org.zkoss.zul.Window; //导入方法依赖的package包/类
/**
* Displays an error window for the error code provided.
* @param errorCode error code for the message to be displayed.
*/
private void showError(String errorCode) {
Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
errorMessage.setValue(Labels.getLabel(errorCode));
try {
errorWindow.doModal();
} catch (SuspendNotAllowedException ex) {
Logger.getLogger(DestroyController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
}
}
示例8: showError
import org.zkoss.zul.Window; //导入方法依赖的package包/类
/**
* Displays an error window for the error code provided.
* @param errorCode error code for the message to be displayed.
*/
private void showError(String errorCode) {
Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
errorMessage.setValue(Labels.getLabel(errorCode));
try {
errorWindow.doModal();
} catch (SuspendNotAllowedException ex) {
Logger.getLogger(UpgradeController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
}
}
示例9: showError
import org.zkoss.zul.Window; //导入方法依赖的package包/类
/**
* Displays an error window for the error code provided.
* @param errorCode error code for the message to be displayed.
*/
private void showError(String errorCode) {
Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
errorMessage.setValue(Labels.getLabel(errorCode));
try {
errorWindow.doModal();
} catch (SuspendNotAllowedException ex) {
Logger.getLogger(RestoreController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
}
}