public class WebLogo extends Object
Modifier and Type | Method and Description |
---|---|
WebLogoState |
addCompletionListener(Runnable runnable)
Adds a completion listener that will wait for completion of the loading.
|
boolean |
addListener(IWebLogoListener listener)
Adds a listener for the loading state.
|
Throwable |
getException()
The exception the caused the failure when performing
the loading of the logo for the web site.
|
File |
getFile()
Gets the file in the file provider system that should be used for the
web site logo.
|
String |
getSite()
Gets the web site of the logo.
|
WebLogoState |
getState()
Gets the state of the logo process.
|
WSFile |
getWSFile()
Gets the Web Server file in the file provider system that should be used
for the web site logo.
|
boolean |
isDisposed()
Checks if disposed.
|
boolean |
removeListener(IWebLogoListener listener)
Removes a listener for the loading state.
|
WebLogoState |
waitForCompletion(Runnable runnable)
Waits for completion of the loading.
|
public boolean isDisposed()
public WebLogoState waitForCompletion(Runnable runnable)
Once the loading has completed, the runnable
will be invoked.
Please note that if the WebLogo
instance has been disposed
of, no call to the runnable
will be performed.
runnable
- Called when the loading completed, with or without error.
Please check the getState()
or
getException()
.public WebLogoState addCompletionListener(Runnable runnable)
The current thread is blocked until it completes.
If you do not wish to have a blocking operation, use the
method instead.
addListener(IWebLogoListener)
Once the loading has completed, the runnable
will be invoked.
Please note that if the WebLogo
instance has been disposed
of, no call to the runnable
will be performed.
runnable
- Called when the loading completed, with or without error.
Please check the getState()
or
getException()
.public File getFile()
null
!public WSFile getWSFile()
null
!public WebLogoState getState()
public Throwable getException()
public String getSite()
public boolean addListener(IWebLogoListener listener)
Calling this method twice with the same listener will always return
false
.
listener
- The listener that will be called from the loading thread.true
when the listener is added successfully and
that the state
is not WebLogoState.PENDING
and not WebLogoState.RETRIEVING
.public boolean removeListener(IWebLogoListener listener)
Calling this method twice with the same listener will always return
false
.
listener
- The listener.true
when the listener is removed successfully.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.