com.teamdev.jxbrowser.print
Class PrintEvent

java.lang.Object
  extended by com.teamdev.jxbrowser.events.BrowserEvent
      extended by com.teamdev.jxbrowser.print.PrintEvent

public class PrintEvent
extends BrowserEvent

Contains information about printing event.


Constructor Summary
PrintEvent(Browser browser)
          Constructs a new PrintEvent instance with no progress information.
PrintEvent(Browser browser, long curProgress, long maxProgress)
          Constructs a new PrintEvent instance.
 
Method Summary
 long getCurrentProgress()
          Returns the current print progress value.
 long getMaxProgress()
          Returns the maximum print progress value.
 
Methods inherited from class com.teamdev.jxbrowser.events.BrowserEvent
getBrowser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintEvent

public PrintEvent(Browser browser)
Constructs a new PrintEvent instance with no progress information.

Parameters:
browser - the browser instance on which the event is initially occurred.

PrintEvent

public PrintEvent(Browser browser,
                  long curProgress,
                  long maxProgress)
Constructs a new PrintEvent instance.

Parameters:
browser - the browser instance on which the event is initially occurred.
curProgress - the current progress value.
maxProgress - the maximum progress value.
Method Detail

getCurrentProgress

public long getCurrentProgress()
Returns the current print progress value. The value should be in the 0 < value < max_progress scope.

Returns:
the current print progress value.

getMaxProgress

public long getMaxProgress()
Returns the maximum print progress value.

Returns:
the maximum print progress value.