org.netbeans.modules.uihandler 2.20

org.netbeans.modules.uihandler.api
Class Controller

java.lang.Object
  extended by org.netbeans.modules.uihandler.api.Controller

public final class Controller
extends Object

Class that allows other modules to control the behavior of the UI Gestures submit process.


Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Adds listener for various properties
static Controller getDefault()
           
 URL getHintsURL()
          If the automatic mode is on, this method returns the URL that has been returned when data were transmitted to the server last time.
 int getLogRecordsCount()
          Getter for the number of collected log records
 boolean isAutomaticSubmit()
          Are logs automatically send to server when the local buffer gets full?
 void removePropertyChangeListener(PropertyChangeListener l)
          Removes property change listener.
 void setEnableExceptionHandler(boolean enable)
          Controls exception reporting.
 void submit()
          Explicitly invoke the submit data procedure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static Controller getDefault()
Returns:
the controller instance

setEnableExceptionHandler

public void setEnableExceptionHandler(boolean enable)
Controls exception reporting. Either enables or disables it.

Parameters:
enable - enable or disable.
Since:
2.0

getLogRecordsCount

public int getLogRecordsCount()
Getter for the number of collected log records

Returns:
the number of currently
Since:
2.0

isAutomaticSubmit

public boolean isAutomaticSubmit()
Are logs automatically send to server when the local buffer gets full?

Returns:
true if automatic submit is enabled

getHintsURL

public URL getHintsURL()
If the automatic mode is on, this method returns the URL that has been returned when data were transmitted to the server last time.

Returns:
null or URL with "hints"

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Adds listener for various properties

Parameters:
l -

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Removes property change listener.

Parameters:
l -

submit

public void submit()
Explicitly invoke the submit data procedure. The method returns immediately, then it opens a dialog and asks the user whether he wants to submit the data.

Since:
2.0

org.netbeans.modules.uihandler 2.20

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.