本文整理了Java中org.jbundle.model.Task.setStatusText()
方法的一些代码示例,展示了Task.setStatusText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.setStatusText()
方法的具体详情如下:
包路径:org.jbundle.model.Task
类名称:Task
方法名:setStatusText
暂无
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Display a dialog/status box with this error.
* @param strError The error text.
* @param The level of the error (debug/warning/error/etc).
*/
public void displayError(String strError, int iWarningLevel)
{
if ((strError == null) || (strError.length() == 0))
return; // No error
Task task = this.getTask();
if (task != null)
task.setStatusText(strError, iWarningLevel);
}
/**
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
/**
* Display a dialog/status box with this error.
* @param strError The error text.
* @param The level of the error (debug/warning/error/etc).
*/
public void displayError(String strError, int iWarningLevel)
{
if ((strError == null) || (strError.length() == 0))
return; // No error
Task task = this.getTask();
if (task != null)
task.setStatusText(strError, iWarningLevel);
}
/**
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
/**
* Clear the status text message.
*/
public void clearStatusText()
{
if (this.getTask() != null)
this.getTask().setStatusText(Constant.BLANK);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Clear the status text message.
*/
public void clearStatusText()
{
if (this.getTask() != null)
this.getTask().setStatusText(DBConstants.BLANK);
}
/**
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.request.misc
/**
* ProcessServletCommand Method.
*/
public boolean processServletCommand() throws DBException
{
boolean bDefaultParamsFound = super.processServletCommand();
String strError = this.getTask().getStatusText(DBConstants.INFORMATION);
if (bDefaultParamsFound)
if ((strError == null) || (strError.length() == 0))
{
String strStatus = HtmlConstants.SERVLET_LINK + "?menu=";
strStatus = "<a href=" + strStatus + ">Click here to return to the main menu</a>.";
this.getTask().setStatusText(strStatus, DBConstants.INFORMATION);
this.getScreenField().setEnabled(false); // Display screen!
}
return bDefaultParamsFound;
}
/**
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctpay.screen
/**
* A record with this datasource handle changed, notify any behaviors that are checking.
* NOTE: Be very careful as this code is running in an independent thread
* (synchronize to the task before calling record calls).
* NOTE: For now, you are only notified of the main record changes.
* @param message The message to handle.
* @return The error code.
*/
public int handleMessage(BaseMessage message)
{
if (message != null)
if (message.getMessageHeader().getRegistryIDMatch() != null) // My private message
if (message.getMessageHeader().getRegistryIDMatch().equals(m_intRegistryID)) // My private message
{
Application app = (Application)this.getTask().getApplication();
String strMessage = app.getResources(ResourceConstants.DEFAULT_RESOURCE, true).getString("Remote action completed");
this.getTask().setStatusText(strMessage, Constants.INFORMATION);
message.consume();
}
return super.handleMessage(message);
}
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.acctpay.screen
/**
* A record with this datasource handle changed, notify any behaviors that are checking.
* NOTE: Be very careful as this code is running in an independent thread
* (synchronize to the task before calling record calls).
* NOTE: For now, you are only notified of the main record changes.
* @param message The message to handle.
* @return The error code.
*/
public int handleMessage(BaseMessage message)
{
if (message != null)
if (message.getMessageHeader().getRegistryIDMatch() != null) // My private message
if (message.getMessageHeader().getRegistryIDMatch().equals(m_intRegistryID)) // My private message
{
Application app = (Application)this.getTask().getApplication();
String strMessage = app.getResources(ResourceConstants.DEFAULT_RESOURCE, true).getString("Remote action completed");
this.getTask().setStatusText(strMessage, Constants.INFORMATION);
message.consume();
}
return super.handleMessage(message);
}
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctrec.screen
/**
* Delete the batch header.
*/
public boolean removeTrxHeader()
{
this.getScreenRecord().getField(CashBatchScreenRecord.COUNT).setData(null);
this.getScreenRecord().getField(CashBatchScreenRecord.TOTAL).setData(null);
String strSuccess = "Posted successfully";
strSuccess = this.getTask().getApplication().getResources(ResourceConstants.ACCTREC_RESOURCE, true).getString(strSuccess);
this.getTask().setStatusText(this.getTask().getString(strSuccess));
return true; // Not required for Mcos
}
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctpay.screen
this.getTask().setStatusText(strMessage, Constants.WAIT);
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.acctpay.screen
this.getTask().setStatusText(strMessage, Constants.WAIT);
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
this.getTask().setStatusText(null); // If there is a completion message, set it here!
try {
if (strMoveValue == null)
strMoveValue = Constants.BLANK;
this.getTask().setStatusText("Success on previous " + strMoveValue + " operation.", DBConstants.INFORMATION);
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.db
/**
* DoSetData Method.
*/
public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode)
{
if (objData instanceof String)
{ // The user pressed the button.
Record recBaseStatus = this.getOwner().getRecord();
BaseField fldStatusID = recBaseStatus.getReferringField();
Record recBookingDetail = fldStatusID.getRecord();
Task task = null;
if (recBookingDetail.getRecordOwner() != null)
task = recBookingDetail.getRecordOwner().getTask();
else if (recBaseStatus.getRecordOwner() != null)
task = recBaseStatus.getRecordOwner().getTask();
String strMessage = this.getDisplayMessage();
if (task != null)
task.setStatusText(strMessage);
return DBConstants.NORMAL_RETURN;
}
return super.doSetData(objData, bDisplayOption, iMoveMode);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
this.getTask().setStatusText(null); // If there is a completion message, set it here!
try {
if (strMoveValue == null)
strMoveValue = Constants.BLANK;
this.getTask().setStatusText("Success on previous " + strMoveValue + " operation.", DBConstants.INFORMATION);
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.db
/**
* DoSetData Method.
*/
public int doSetData(Object objData, boolean bDisplayOption, int iMoveMode)
{
if (objData instanceof String)
{ // The user pressed the button.
Record recBaseStatus = this.getOwner().getRecord();
BaseField fldStatusID = recBaseStatus.getReferringField();
Record recBookingDetail = fldStatusID.getRecord();
Task task = null;
if (recBookingDetail.getRecordOwner() != null)
task = recBookingDetail.getRecordOwner().getTask();
else if (recBaseStatus.getRecordOwner() != null)
task = recBaseStatus.getRecordOwner().getTask();
String strMessage = this.getDisplayMessage();
if (task != null)
task.setStatusText(strMessage);
return DBConstants.NORMAL_RETURN;
}
return super.doSetData(objData, bDisplayOption, iMoveMode);
}
/**
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.entry
this.getTask().setStatusText(strError, DBConstants.WARNING);
bHandled = true;
内容来源于网络,如有侵权,请联系作者删除!