org.rococoa.cocoa.webkit
Class WebView
java.lang.Object
org.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.appkit.NSResponder
org.rococoa.cocoa.appkit.NSView
org.rococoa.cocoa.webkit.WebView
- All Implemented Interfaces:
- NSClipViewSuperview, NSErrorPresentation, NSInterfaceStyle, NSKeyboardUI, NSRulerMarkerClientViewDelegation, NSStandardKeyBindingMethods, NSUndoSupport, NSViewEnclosingMenuItem, NSAnimatablePropertyContainer, NSUserInterfaceValidations, ABActionDelegate, AMWorkflowControllerDelegate, IMVideoDataSource, NSAccessibility, NSAccessibilityAdditions, NSAnimationDelegate, NSApplicationScriptingDelegation, NSArchiverCallback, NSBrowserDelegate, NSClassDescriptionPrimitives, NSCoderMethods, NSColorPanelResponderMethod, NSComboBoxCellDataSource, NSComboBoxDataSource, NSComboBoxNotifications, NSComparisonMethods, NSConnectionDelegateMethods, NSControlSubclassDelegate, NSControlSubclassNotifications, NSCopyLinkMoveHandler, NSDatePickerCellDelegate, NSDelayedPerforming, NSDeprecatedKeyValueCoding, NSDeprecatedKeyValueObservingCustomization, NSDeprecatedMethods, NSDictionaryControllerKeyValuePair, NSDistantObjectRequestMethods, NSDistributedObjects, NSDraggingDestination, NSDraggingSource, NSDrawerDelegate, NSDrawerNotifications, NSEditor, NSEditorRegistration, NSErrorRecoveryAttempting, NSExceptionHandlerDelegate, NSFileManagerFileOperationAdditions, NSFontManagerDelegate, NSFontManagerResponderMethod, NSFontPanelValidationAdditions, NSImageDelegate, NSKeyedArchiverDelegate, NSKeyedArchiverObjectSubstitution, NSKeyedUnarchiverDelegate, NSKeyedUnarchiverObjectSubstitution, NSKeyValueBindingCreation, NSKeyValueCoding, NSKeyValueObserverNotification, NSKeyValueObserverRegistration, NSKeyValueObserving, NSKeyValueObservingCustomization, NSLayoutManagerDelegate, NSMenuDelegate, NSMenuValidation, NSMetadataQueryDelegate, NSNetServiceBrowserDelegateMethods, NSNetServiceDelegateMethods, NSNibAwaking, NSOutlineViewDataSource, NSOutlineViewDelegate, NSOutlineViewNotifications, NSPasteboardOwner, NSPlaceholders, NSPortDelegateMethods, NSRuleEditorDelegateMethods, NSSavePanelDelegate, NSScriptClassDescription, NSScripting, NSScriptingComparisonMethods, NSScriptKeyValueCoding, NSScriptObjectSpecifiers, NSSoundDelegateMethods, NSSpeechRecognizerDelegate, NSSpeechSynthesizerDelegate, NSSpellServerDelegate, NSSplitViewDelegate, NSStreamDelegateEventExtensions, NSTabViewDelegate, NSTextDelegate, NSTextViewDelegate, NSThreadPerformAdditions, NSTokenFieldCellDelegate, NSTokenFieldDelegate, NSToolbarDelegate, NSToolbarNotifications, NSURLClient, NSURLConnectionDelegate, NSURLDownloadDelegate, NSWindowDelegate, NSWindowNotifications, NSXMLParserDelegateEventAdditions, QTCaptureDecompressedVideoOutputDelegate, QTCaptureFileOutputDelegate, QTCaptureVideoPreviewOutputDelegate, QTCaptureViewDelegate, QTMovieDelegate, QTMovieViewDelegate, SFAuthorizationViewDelegate, SFCertificatePanelDelegate, SFChooseIdentityPanelDelegate, WebDownloadDelegate, WebFrameLoadDelegate, WebJavaPlugIn, WebPlugIn, WebPlugInContainer, WebPolicyDelegate, WebResourceLoadDelegate, WebScripting, WebUIDelegate, WebViewEditingDelegate, NSCoding, NSObject, WebIBActions, WebViewCSS, WebViewEditing, WebViewEditingActions, WebViewUndoableEditing
public abstract class WebView
- extends NSView
- implements WebViewEditingActions, WebViewUndoableEditing, WebViewEditing, WebViewCSS, WebIBActions
Methods inherited from class org.rococoa.cocoa.appkit.NSView |
addSubview, ancestorSharedWithView, createWithFrame, getRectsBeingDrawn_count, getRectsBeingDrawn_count, initWithFrame, isDescendantOf, isHidden, isHiddenOrHasHiddenAncestor, needsToDrawRect, opaqueAncestor, setHidden, setSubviews, subviews, superview, viewDidHide, viewDidUnhide, wantsDefaultClipping, window |
Methods inherited from class org.rococoa.cocoa.appkit.NSResponder |
acceptsFirstResponder, becomeFirstResponder, cursorUpdate, flagsChanged, flushBufferedKeyEvents, helpRequested, interpretKeyEvents, keyDown, keyUp, menu, mouseDown, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseUp, nextResponder, noResponderFor, otherMouseDown, otherMouseDragged, otherMouseUp, performKeyEquivalent, resignFirstResponder, rightMouseDown, rightMouseDragged, rightMouseUp, scrollWheel, setMenu, setNextResponder, shouldBeTreatedAsInkEvent, showContextHelp, tabletPoint, tabletProximity, tryToPerform_with, validRequestorForSendType_returnType |
Methods inherited from class org.rococoa.cocoa.foundation.NSObject |
copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardInvocation, id, init, isKindOfClass, isKindOfClass, methodSignatureForSelector, mutableCopy, release, retain, retainCount |
Methods inherited from interface org.rococoa.cocoa.webkit.categories.WebViewEditingActions |
alignCenter, alignJustified, alignLeft, alignRight, changeAttributes, changeColor, changeDocumentBackgroundColor, changeFont, checkSpelling, copy, copyFont, cut, delete, moveToBeginningOfSentence, moveToBeginningOfSentenceAndModifySelection, moveToEndOfSentence, moveToEndOfSentenceAndModifySelection, paste, pasteAsPlainText, pasteAsRichText, pasteFont, performFindPanelAction, selectSentence, showGuessPanel, startSpeaking, stopSpeaking |
Methods inherited from interface org.rococoa.cocoa.webkit.categories.WebViewEditing |
editingDelegate, isContinuousSpellCheckingEnabled, isEditable, maintainsInactiveSelection, selectedDOMRange, selectionAffinity, setContinuousSpellCheckingEnabled, setEditable, setEditingDelegate, setSmartInsertDeleteEnabled, setTypingStyle, smartInsertDeleteEnabled, spellCheckerDocumentTag, styleDeclarationWithText, typingStyle, undoManager |
Methods inherited from interface org.rococoa.cocoa.webkit.categories.WebIBActions |
canGoBack, canGoForward, canMakeTextLarger, canMakeTextSmaller, canMakeTextStandardSize, goBack, goForward, makeTextLarger, makeTextSmaller, makeTextStandardSize, reload, stopLoading, takeStringURLFrom, toggleContinuousSpellChecking, toggleSmartInsertDelete |
Methods inherited from interface org.rococoa.cocoa.appkit.categories.NSStandardKeyBindingMethods |
cancelOperation, capitalizeWord, centerSelectionInVisibleArea, changeCaseOfLetter, complete, deleteBackward, deleteBackwardByDecomposingPreviousCharacter, deleteForward, deleteToBeginningOfLine, deleteToBeginningOfParagraph, deleteToEndOfLine, deleteToEndOfParagraph, deleteToMark, deleteWordBackward, deleteWordForward, doCommandBySelector, indent, insertBacktab, insertContainerBreak, insertLineBreak, insertNewline, insertNewlineIgnoringFieldEditor, insertParagraphSeparator, insertTab, insertTabIgnoringFieldEditor, insertText, lowercaseWord, moveBackward, moveBackwardAndModifySelection, moveDown, moveDownAndModifySelection, moveForward, moveForwardAndModifySelection, moveLeft, moveLeftAndModifySelection, moveRight, moveRightAndModifySelection, moveToBeginningOfDocument, moveToBeginningOfLine, moveToBeginningOfParagraph, moveToEndOfDocument, moveToEndOfLine, moveToEndOfParagraph, moveUp, moveUpAndModifySelection, moveWordBackward, moveWordBackwardAndModifySelection, moveWordForward, moveWordForwardAndModifySelection, moveWordLeft, moveWordLeftAndModifySelection, moveWordRight, moveWordRightAndModifySelection, pageDown, pageUp, scrollLineDown, scrollLineUp, scrollPageDown, scrollPageUp, selectAll, selectLine, selectParagraph, selectToMark, selectWord, setMark, swapWithMark, transpose, transposeWords, uppercaseWord, yank |
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
autorelease, class_, conformsToProtocol, hash, isEqual, isKindOfClass, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebUIDelegate |
webView_contextMenuItemsForElement_defaultMenuItems, webView_createWebViewModalDialogWithRequest, webView_createWebViewWithRequest, webView_dragDestinationActionMaskForDraggingInfo, webView_dragDestinationActionMaskForDraggingInfo, webView_makeFirstResponder, webView_mouseDidMoveOverElement_modifierFlags, webView_printFrameView, webView_runBeforeUnloadConfirmPanelWithMessage_initiatedByFrame, webView_runJavaScriptAlertPanelWithMessage_initiatedByFrame, webView_runJavaScriptAlertPanelWithMessage, webView_runJavaScriptConfirmPanelWithMessage_initiatedByFrame, webView_runJavaScriptConfirmPanelWithMessage, webView_runJavaScriptTextInputPanelWithPrompt_defaultText_initiatedByFrame, webView_runJavaScriptTextInputPanelWithPrompt_defaultText, webView_runOpenPanelForFileButtonWithResultListener, webView_runOpenPanelForFileButtonWithResultListener, webView_setResizable, webView_setStatusBarVisible, webView_setStatusText, webView_setToolbarsVisible, webView_shouldPerformAction_fromSender, webView_validateUserInterfaceItem_defaultValidation, webView_validateUserInterfaceItem_defaultValidation, webView_willPerformDragDestinationAction_forDraggingInfo, webView_willPerformDragDestinationAction_forDraggingInfo, webViewAreToolbarsVisible, webViewClose, webViewContentRect, webViewFirstResponder, webViewFocus, webViewFooterHeight, webViewFrame, webViewHeaderHeight, webViewIsResizable, webViewIsStatusBarVisible, webViewRunModal, webViewShow, webViewStatusText, webViewUnfocus |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSBrowserDelegate |
browser_acceptDrop_atRow_column_dropOperation, browser_acceptDrop_atRow_column_dropOperation, browser_canDragRowsWithIndexes_inColumn_withEvent, browser_createRowsForColumn_inMatrix, browser_isColumnValid, browser_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes_inColumn, browser_nextTypeSelectMatchFromRow_toRow_inColumn_forString, browser_numberOfRowsInColumn, browser_selectCellWithString_inColumn, browser_selectRow_inColumn, browser_shouldShowCellExpansionForRow_column, browser_shouldSizeColumn_forUserResize_toWidth, browser_shouldTypeSelectForEvent_withCurrentSearchString, browser_sizeToFitWidthOfColumn, browser_titleOfColumn, browser_typeSelectStringForRow_inColumn, browser_validateDrop_proposedRow_column_dropOperation, browser_validateDrop_proposedRow_column_dropOperation, browser_willDisplayCell_atRow_column, browser_writeRowsWithIndexes_inColumn_toPasteboard, browserColumnConfigurationDidChange, browserDidScroll, browserWillScroll |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyValueCoding |
dictionaryWithValuesForKeys, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, setNilValueForKey, setValue_forKey, setValue_forKeyPath, setValue_forUndefinedKey, setValuesForKeysWithDictionary, validateValue_forKey_error, validateValue_forKeyPath_error, valueForKey, valueForKeyPath, valueForUndefinedKey |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSOutlineViewDelegate |
outlineView_dataCellForTableColumn_item, outlineView_didClickTableColumn, outlineView_didDragTableColumn, outlineView_heightOfRowByItem, outlineView_isGroupItem, outlineView_mouseDownInHeaderOfTableColumn, outlineView_nextTypeSelectMatchFromItem_toItem_forString, outlineView_selectionIndexesForProposedSelection, outlineView_shouldCollapseItem, outlineView_shouldEditTableColumn_item, outlineView_shouldExpandItem, outlineView_shouldSelectItem, outlineView_shouldSelectTableColumn, outlineView_shouldShowCellExpansionForTableColumn_item, outlineView_shouldTrackCell_forTableColumn_item, outlineView_shouldTypeSelectForEvent_withCurrentSearchString, outlineView_typeSelectStringForTableColumn_item, outlineView_willDisplayCell_forTableColumn_item, outlineView_willDisplayOutlineCell_forTableColumn_item, selectionShouldChangeInOutlineView |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebViewEditingDelegate |
undoManagerForWebView, webView_doCommandBySelector, webView_shouldApplyStyle_toElementsInDOMRange, webView_shouldBeginEditingInDOMRange, webView_shouldChangeTypingStyle_toStyle, webView_shouldDeleteDOMRange, webView_shouldEndEditingInDOMRange, webView_shouldInsertNode_replacingDOMRange_givenAction, webView_shouldInsertText_replacingDOMRange_givenAction, webViewDidBeginEditing, webViewDidChange, webViewDidChangeSelection, webViewDidChangeTypingStyle, webViewDidEndEditing |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebFrameLoadDelegate |
webView_didCancelClientRedirectForFrame, webView_didChangeLocationWithinPageForFrame, webView_didClearWindowObject_forFrame, webView_didCommitLoadForFrame, webView_didFailLoadWithError_forFrame, webView_didFailProvisionalLoadWithError_forFrame, webView_didFinishLoadForFrame, webView_didReceiveIcon_forFrame, webView_didReceiveServerRedirectForProvisionalLoadForFrame, webView_didReceiveTitle_forFrame, webView_didStartProvisionalLoadForFrame, webView_willCloseFrame, webView_windowScriptObjectAvailable |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTokenFieldDelegate |
tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenField_displayStringForRepresentedObject, tokenField_editingStringForRepresentedObject, tokenField_hasMenuForRepresentedObject, tokenField_menuForRepresentedObject, tokenField_readFromPasteboard, tokenField_representedObjectForEditingString, tokenField_shouldAddObjects_atIndex, tokenField_styleForRepresentedObject, tokenField_writeRepresentedObjects_toPasteboard |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSXMLParserDelegateEventAdditions |
parser_didEndElement_namespaceURI_qualifiedName, parser_didEndMappingPrefix, parser_didStartElement_namespaceURI_qualifiedName_attributes, parser_didStartMappingPrefix_toURI, parser_foundAttributeDeclarationWithName_forElement_type_defaultValue, parser_foundCDATA, parser_foundCharacters, parser_foundComment, parser_foundElementDeclarationWithName_model, parser_foundExternalEntityDeclarationWithName_publicID_systemID, parser_foundIgnorableWhitespace, parser_foundInternalEntityDeclarationWithName_value, parser_foundNotationDeclarationWithName_publicID_systemID, parser_foundProcessingInstructionWithTarget_data, parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName, parser_parseErrorOccurred, parser_resolveExternalEntityName_systemID, parser_validationErrorOccurred, parserDidEndDocument, parserDidStartDocument |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDraggingDestination |
concludeDragOperation, concludeDragOperation, draggingEnded, draggingEnded, draggingEntered, draggingEntered, draggingExited, draggingExited, draggingUpdated, draggingUpdated, performDragOperation, performDragOperation, prepareForDragOperation, prepareForDragOperation, wantsPeriodicDraggingUpdates |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSOutlineViewDataSource |
outlineView_acceptDrop_item_childIndex, outlineView_acceptDrop_item_childIndex, outlineView_child_ofItem, outlineView_isItemExpandable, outlineView_itemForPersistentObject, outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems, outlineView_numberOfChildrenOfItem, outlineView_objectValueForTableColumn_byItem, outlineView_persistentObjectForItem, outlineView_setObjectValue_forTableColumn_byItem, outlineView_sortDescriptorsDidChange, outlineView_validateDrop_proposedItem_proposedChildIndex, outlineView_validateDrop_proposedItem_proposedChildIndex, outlineView_writeItems_toPasteboard |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSURLDownloadDelegate |
download_decideDestinationWithSuggestedFilename, download_didCancelAuthenticationChallenge, download_didCreateDestination, download_didFailWithError, download_didReceiveAuthenticationChallenge, download_didReceiveDataOfLength, download_didReceiveResponse, download_shouldDecodeSourceDataOfMIMEType, download_willResumeWithResponse_fromByte, download_willSendRequest_redirectResponse, downloadDidBegin, downloadDidFinish |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSAccessibility |
accessibilityActionDescription, accessibilityActionNames, accessibilityAttributeNames, accessibilityAttributeValue_forParameter, accessibilityAttributeValue, accessibilityFocusedUIElement, accessibilityIsAttributeSettable, accessibilityIsIgnored, accessibilityParameterizedAttributeNames, accessibilityPerformAction, accessibilitySetValue_forAttribute |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTextViewDelegate |
textView_clickedOnLink_atIndex, textView_clickedOnLink, textView_doCommandBySelector, textView_menu_forEvent_atIndex, textView_shouldChangeTextInRanges_replacementStrings, textView_shouldChangeTypingAttributes_toAttributes, textView_willChangeSelectionFromCharacterRanges_toCharacterRanges, textView_willDisplayToolTip_forCharacterAtIndex, textView_writablePasteboardTypesForCell_atIndex, textView_writablePasteboardTypesForCell_atIndex, textView_writeCell_atIndex_toPasteboard_type, textView_writeCell_atIndex_toPasteboard_type, textViewDidChangeSelection, textViewDidChangeTypingAttributes, undoManagerForTextView |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTokenFieldCellDelegate |
tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenFieldCell_displayStringForRepresentedObject, tokenFieldCell_editingStringForRepresentedObject, tokenFieldCell_hasMenuForRepresentedObject, tokenFieldCell_menuForRepresentedObject, tokenFieldCell_readFromPasteboard, tokenFieldCell_representedObjectForEditingString, tokenFieldCell_shouldAddObjects_atIndex, tokenFieldCell_styleForRepresentedObject, tokenFieldCell_writeRepresentedObjects_toPasteboard |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSWindowNotifications |
windowDidBecomeKey, windowDidBecomeMain, windowDidChangeScreen, windowDidChangeScreenProfile, windowDidDeminiaturize, windowDidEndSheet, windowDidExpose, windowDidMiniaturize, windowDidMove, windowDidResignKey, windowDidResignMain, windowDidResize, windowDidUpdate, windowWillBeginSheet, windowWillClose, windowWillMiniaturize, windowWillMove |
WebView
public WebView()
canShowMIMEType
public static boolean canShowMIMEType(NSString MIMEType)
- Parameters:
MIMEType
- The MIME type to check.
canShowMIMETypeAsHTML
public static boolean canShowMIMETypeAsHTML(NSString MIMEType)
- Parameters:
MIMEType
- The MIME type to check.
MIMETypesShownAsHTML
public static NSArray MIMETypesShownAsHTML()
setMIMETypesShownAsHTML
public static void setMIMETypesShownAsHTML(NSArray MIMETypes)
URLFromPasteboard
public static NSURL URLFromPasteboard(NSPasteboard pasteboard)
- Parameters:
pasteboard
- The pasteboard with a URL
URLTitleFromPasteboard
public static NSString URLTitleFromPasteboard(NSPasteboard pasteboard)
- Parameters:
pasteboard
- The pasteboard with a URL title
registerURLSchemeAsLocal
public static void registerURLSchemeAsLocal(NSString scheme)
- Parameters:
scheme
- The scheme to register
Original signature : +(void)registerURLSchemeAsLocal:(NSString*)
close
public abstract void close()
setShouldCloseWithWindow
public abstract void setShouldCloseWithWindow(boolean close)
- Parameters:
close
- YES if the receiver should close when either it's window or hostWindow closes, otherwise NO.
Original signature : -(void)setShouldCloseWithWindow:(BOOL)
shouldCloseWithWindow
public abstract boolean shouldCloseWithWindow()
setUIDelegate
public abstract void setUIDelegate(org.rococoa.ID delegate)
- Parameters:
delegate
- The WebUIDelegate to set as the delegate.
Original signature : -(void)setUIDelegate:(id)
UIDelegate
public abstract NSObject UIDelegate()
setResourceLoadDelegate
public abstract void setResourceLoadDelegate(org.rococoa.ID delegate)
- Parameters:
delegate
- The WebResourceLoadDelegate to set as the load delegate.
Original signature : -(void)setResourceLoadDelegate:(id)
resourceLoadDelegate
public abstract NSObject resourceLoadDelegate()
setDownloadDelegate
public abstract void setDownloadDelegate(org.rococoa.ID delegate)
- Parameters:
delegate
- The WebDownloadDelegate to set as the download delegate.
Original signature : -(void)setDownloadDelegate:(id)
downloadDelegate
public abstract NSObject downloadDelegate()
setFrameLoadDelegate
public abstract void setFrameLoadDelegate(org.rococoa.ID delegate)
- Parameters:
delegate
- The WebFrameLoadDelegate to set as the delegate.
Original signature : -(void)setFrameLoadDelegate:(id)
frameLoadDelegate
public abstract NSObject frameLoadDelegate()
setPolicyDelegate
public abstract void setPolicyDelegate(org.rococoa.ID delegate)
- Parameters:
delegate
- The WebPolicyDelegate to set as the delegate.
Original signature : -(void)setPolicyDelegate:(id)
policyDelegate
public abstract NSObject policyDelegate()
mainFrame
public abstract WebFrame mainFrame()
selectedFrame
public abstract WebFrame selectedFrame()
backForwardList
public abstract WebBackForwardList backForwardList()
setMaintainsBackForwardList
public abstract void setMaintainsBackForwardList(boolean flag)
- Parameters:
flag
- Turns use of the back forward list on or off
Original signature : -(void)setMaintainsBackForwardList:(BOOL)
goBack
public abstract boolean goBack()
goForward
public abstract boolean goForward()
goToBackForwardItem
public abstract boolean goToBackForwardItem(WebHistoryItem item)
setTextSizeMultiplier
public abstract void setTextSizeMultiplier(float multiplier)
- Parameters:
multiplier
- A fractional percentage value, 1.0 is 100%.
Original signature : -(void)setTextSizeMultiplier:(float)
textSizeMultiplier
public abstract float textSizeMultiplier()
setApplicationNameForUserAgent
public abstract void setApplicationNameForUserAgent(NSString applicationName)
- Parameters:
applicationName
- The application name
Original signature : -(void)setApplicationNameForUserAgent:(NSString*)
applicationNameForUserAgent
public abstract NSString applicationNameForUserAgent()
setCustomUserAgent
public abstract void setCustomUserAgent(NSString userAgentString)
- Parameters:
userAgentString
- The user agent description
Original signature : -(void)setCustomUserAgent:(NSString*)
customUserAgent
public abstract NSString customUserAgent()
userAgentForURL
public abstract NSString userAgentForURL(NSURL URL)
- Parameters:
URL
- The URL.
supportsTextEncoding
public abstract boolean supportsTextEncoding()
setCustomTextEncodingName
public abstract void setCustomTextEncodingName(NSString encodingName)
- Parameters:
encoding
- The text encoding name to use to display a page or nil.
Original signature : -(void)setCustomTextEncodingName:(NSString*)
customTextEncodingName
public abstract NSString customTextEncodingName()
setMediaStyle
public abstract void setMediaStyle(NSString mediaStyle)
- Parameters:
mediaStyle
- The value to use for the CSS media property.
Original signature : -(void)setMediaStyle:(NSString*)
mediaStyle
public abstract NSString mediaStyle()
stringByEvaluatingJavaScriptFromString
public abstract NSString stringByEvaluatingJavaScriptFromString(NSString script)
- Parameters:
script
- The text of the JavaScript.
windowScriptObject
public abstract WebScriptObject windowScriptObject()
setPreferences
public abstract void setPreferences(WebPreferences prefs)
- Parameters:
preferences
- The preferences to use for the webView.
preferences
public abstract WebPreferences preferences()
setPreferencesIdentifier
public abstract void setPreferencesIdentifier(NSString anIdentifier)
- Parameters:
anIdentifier
- The string to use a prefix for storing values for this WebView in the user
defaults database.
preferencesIdentifier
public abstract NSString preferencesIdentifier()
setHostWindow
public abstract void setHostWindow(NSWindow hostWindow)
- Parameters:
hostWindow
- The host window for the web view.
hostWindow
public abstract NSWindow hostWindow()
searchFor_direction_caseSensitive_wrap
public abstract boolean searchFor_direction_caseSensitive_wrap(NSString string,
boolean forward,
boolean caseFlag,
boolean wrapFlag)
- Parameters:
string
- The string to search for.
forward
- YES to search forward, NO to seach backwards.
caseFlag
- YES to for case-sensitive search, NO for case-insensitive search.
registerViewClass_representationClass_forMIMEType
public static void registerViewClass_representationClass_forMIMEType(Pointer viewClass,
Pointer representationClass,
NSString MIMEType)
- Parameters:
viewClass
- The WebDocumentView class to use to render data for a given MIME type.
representationClass
- The WebDocumentRepresentation class to use to represent data of the given MIME type.
MIMEType
- The MIME type to represent with an object of the given class.
Original signature : +(void)registerViewClass:(Class) representationClass:(Class) forMIMEType:(NSString*)
setGroupName
public abstract void setGroupName(NSString groupName)
- Parameters:
groupName
- The name of the group for this WebView.
groupName
public abstract NSString groupName()
estimatedProgress
public abstract double estimatedProgress()
isLoading
public abstract boolean isLoading()
pasteboardTypesForSelection
public abstract NSArray pasteboardTypesForSelection()
writeSelectionWithPasteboardTypes_toPasteboard
public abstract void writeSelectionWithPasteboardTypes_toPasteboard(NSArray types,
NSPasteboard pasteboard)
- Parameters:
types
- The types that WebView will write to the pasteboard
pasteboard
- The pasteboard to write to
Original signature : -(void)writeSelectionWithPasteboardTypes:(NSArray*) toPasteboard:(NSPasteboard*)
pasteboardTypesForElement
public abstract NSArray pasteboardTypesForElement(NSDictionary element)
- Parameters:
element
- The element
Original signature : -(NSArray*)pasteboardTypesForElement:(NSDictionary*)
writeElement_withPasteboardTypes_toPasteboard
public abstract void writeElement_withPasteboardTypes_toPasteboard(NSDictionary element,
NSArray types,
NSPasteboard pasteboard)
- Parameters:
element
- The element to write to the pasteboard
types
- The types that WebView will write to the pasteboard
pasteboard
- The pasteboard to write to
Original signature : -(void)writeElement:(NSDictionary*) withPasteboardTypes:(NSArray*) toPasteboard:(NSPasteboard*)
removeDragCaret
public abstract void removeDragCaret()
setDrawsBackground
public abstract void setDrawsBackground(boolean drawsBackround)
- Parameters:
drawsBackround
- YES to cause the receiver to draw a default white background, NO otherwise.
drawsBackground
public abstract boolean drawsBackground()
setMainFrameURL
public abstract void setMainFrameURL(NSString URLString)
- Parameters:
URLString
- The URL to load in the mainFrame.
Original signature : -(void)setMainFrameURL:(NSString*)
mainFrameURL
public abstract NSString mainFrameURL()
mainFrameDocument
public abstract DOMDocument mainFrameDocument()
mainFrameTitle
public abstract NSString mainFrameTitle()
mainFrameIcon
public abstract NSImage mainFrameIcon()
alloc
public static WebView alloc()