Java Code Examples for netscape.javascript.JSObject#getWindow()

The following examples show how to use netscape.javascript.JSObject#getWindow() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TextInput.java    From openbd-core with GNU General Public License v3.0 5 votes vote down vote up
public TextInput(String _formName, String _objectName, Applet _parent){
  field = new TextField();
  setBackCol( Color.white );
  win = JSObject.getWindow(_parent);     
  field.addKeyListener( this );
  formName = _formName;
  objectName = _objectName;
}
 
Example 2
Source File: ShipmentScaleApplet.java    From scipio-erp with Apache License 2.0 4 votes vote down vote up
private void setWeight(String weight) {
    JSObject win = JSObject.getWindow(this);
    String[] args = { weight };
    win.call("setWeight", args);
}
 
Example 3
Source File: JavascriptInterpreter.java    From AliceBot with Apache License 2.0 2 votes vote down vote up
/**
Returns a reference to the callback object for the Javascript environment.

@return Callback object for the Javascript environment.
*/
private JSObject window()
{
  return JSObject.getWindow(applet);
}