protected String author = "";
protected String cssSource = null;
- protected String lastViewThreadReturnValue = null;
+ protected Object lastViewThreadReturnValue = null;
protected Exception lastViewThreadException = null;
protected MWebMessage processableMessage = null;
protected Object stoppingViewThreadCountMutexObject = new Object();
/* Views threads */
- protected void setLastViewThreadReturnValue(String lastViewThreadReturnValue) {
+ protected void setLastViewThreadReturnValue(Object lastViewThreadReturnValue) {
this.lastViewThreadReturnValue = lastViewThreadReturnValue;
}
- protected String getLastViewThreadReturnValue() {
+ protected Object getLastViewThreadReturnValueReference() {
return this.lastViewThreadReturnValue;
}
}
}
- protected void unloadViewThreads(String lastViewThreadReturnValue, int viewThreadCount, MWebView replacingView) throws MViewNotUnloadableWebException {
+ protected void unloadViewThreads(Object lastViewThreadReturnValue, int viewThreadCount, MWebView replacingView) throws MViewNotUnloadableWebException {
if ((null == lastViewThreadReturnValue) && (viewThreadCount < 1) && (null == replacingView)) {
throw new IllegalArgumentException("Invalid call mode: (null, < 1, null).");
}
}
}
- public String openView(MWebView view) throws MNoBrowserPageWebException {
+ public Object openView(MWebView view) throws MNoBrowserPageWebException {
this.getBrowserPageReference().loadViewThread(view);
try {
synchronized (Thread.currentThread()) {
catch (MResponseWebException exception) {
}
//
- return this.getBrowserPageReference().getLastViewThreadReturnValue();
+ return this.getBrowserPageReference().getLastViewThreadReturnValueReference();
}
- public void close(String returnValue) throws MNoBrowserPageWebException, MViewNotUnloadableWebException {
+ public void close(Object returnValue) throws MNoBrowserPageWebException, MViewNotUnloadableWebException {
this.getBrowserPageReference().unloadViewThreads(returnValue, 1, null);
throw new MViewThreadStoppingWebRuntimeException("View thread stopping...");
}