/** * arbitrary attribute access * @param attributeName * @return */ public Object jsFunction_getAttribute(String attributeName) { return _scriptable.get(attributeName); }
/** * arbitrary attribute access * @param attributeName * @return */ public Object jsFunction_getAttribute(String attributeName) { return _scriptable.get(attributeName); }
/** * arbitrary attribute access * @param attributeName * @return */ public Object jsFunction_getAttribute(String attributeName) { return _scriptable.get(attributeName); }
/** * Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined. * @param eventName the name of the event for which a handler should be run. * @return whether the event with the given name was handled */ public boolean handleEvent(String eventName) { String eventScript = (String) get(eventName); return doEventScript( eventScript ); }
public boolean has( String propertyName, Scriptable scriptable ) { return super.has( propertyName, scriptable ) || (_scriptable != null && _scriptable.get( propertyName ) != null); }
/** * Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined. * @param eventName the name of the event for which a handler should be run. * @return whether the event with the given name was handled */ public boolean handleEvent(String eventName) { String eventScript = (String) get(eventName); return doEventScript( eventScript ); }
/** * Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined. * @param eventName the name of the event for which a handler should be run. * @return whether the event with the given name was handled */ public boolean handleEvent(String eventName) { String eventScript = (String) get(eventName); return doEventScript( eventScript ); }
public boolean has( String propertyName, Scriptable scriptable ) { return super.has( propertyName, scriptable ) || (_scriptable != null && _scriptable.get( propertyName ) != null); }
public boolean has( String propertyName, Scriptable scriptable ) { return super.has( propertyName, scriptable ) || (_scriptable != null && _scriptable.get( propertyName ) != null); }
public Object get( String propertyName, Scriptable scriptable ) { Object result = super.get( propertyName, scriptable ); if (result != NOT_FOUND) return result; if (_scriptable == null) return NOT_FOUND; return convertIfNeeded( _scriptable.get( propertyName ) ); }
public Object get( String propertyName, Scriptable scriptable ) { Object result = super.get( propertyName, scriptable ); if (result != NOT_FOUND) return result; if (_scriptable == null) return NOT_FOUND; return convertIfNeeded( _scriptable.get( propertyName ) ); }
public void put( String propertyName, Scriptable scriptable, Object value ) { if (_scriptable == null || _scriptable.get( propertyName ) == null) { super.put( propertyName, scriptable, value ); } else { _scriptable.set( propertyName, value ); } }
public Object get( int i, Scriptable scriptable ) { Object result = super.get( i, scriptable ); if (result != NOT_FOUND) return result; if (_scriptable == null) return NOT_FOUND; return convertIfNeeded( _scriptable.get( i ) ); }
public Object get( int i, Scriptable scriptable ) { Object result = super.get( i, scriptable ); if (result != NOT_FOUND) return result; if (_scriptable == null) return NOT_FOUND; return convertIfNeeded( _scriptable.get( i ) ); }
public Object get( String propertyName, Scriptable scriptable ) { Object result = super.get( propertyName, scriptable ); if (result != NOT_FOUND) return result; if (_scriptable == null) return NOT_FOUND; return convertIfNeeded( _scriptable.get( propertyName ) ); }
public void put( String propertyName, Scriptable scriptable, Object value ) { if (_scriptable == null || _scriptable.get( propertyName ) == null) { super.put( propertyName, scriptable, value ); } else { _scriptable.set( propertyName, value ); } }
public void put( String propertyName, Scriptable scriptable, Object value ) { if (_scriptable == null || _scriptable.get( propertyName ) == null) { super.put( propertyName, scriptable, value ); } else { _scriptable.set( propertyName, value ); } }
public Object get( int i, Scriptable scriptable ) { Object result = super.get( i, scriptable ); if (result != NOT_FOUND) return result; if (_scriptable == null) return NOT_FOUND; return convertIfNeeded( _scriptable.get( i ) ); }
/** * get the property with the given name * @param propertyName - the name of the property to get */ public Object get( String propertyName ) { if (propertyName.equals( "nodeName" )) { return _element.getTagName(); } else if (propertyName.equals( "tagName" )) { return _element.getTagName(); } else if (propertyName.equalsIgnoreCase( "title" )) { return _element.getTitle(); } else if (_element.isSupportedAttribute( propertyName )) { return _element.getAttribute( propertyName ); } else { return super.get( propertyName ); } }
/** * get the property with the given name * @param propertyName - the name of the property to get */ public Object get( String propertyName ) { if (propertyName.equals( "nodeName" )) { return _element.getTagName(); } else if (propertyName.equals( "tagName" )) { return _element.getTagName(); } else if (propertyName.equalsIgnoreCase( "title" )) { return _element.getTitle(); } else if (_element.isSupportedAttribute( propertyName )) { return _element.getAttribute( propertyName ); } else { return super.get( propertyName ); } }