PDA

View Full Version : How specify time for Info.display(...)?



animtor404
21 Nov 2014, 5:52 AM
In docs about Info it is said:
Displays a message in the bottom right region of the browser for a specified amount of time.

I need to have message box shown a little bit longer.

So how I can specify that amount of time?

animtor404
21 Nov 2014, 6:07 AM
?k. I got it.
need to create InfoConfig, then setDisplay and pass that object to Info.display(infoConfig)

Andreas Samjeske
21 Nov 2014, 6:08 AM
In docs about Info it is said:
Displays a message in the bottom right region of the browser for a specified amount of time.

I need to have message box shown a little bit longer.

So how I can specify that amount of time?

You need a InfoConfig first. With that one you can call Info.display(..) :

DefaultInfoConfig config = new DefaultInfoConfig(title, message);
config.setDisplay(timeInMillis);
Info.display(config);

arcsight-gui
12 Jun 2015, 6:43 PM
Would it have been so hard for the GXT documentation folks to describe the API with at least:

setDisplay
public void setDisplay(int timeInMillis)

???

Adding no further explanation besides:


setDisplay
public void setDisplay(int display)

... is not acceptable for a licensed product.