Package org.eclipse.swt.internal.cocoa
Class NSControl
- java.lang.Object
-
- org.eclipse.swt.internal.cocoa.id
-
- org.eclipse.swt.internal.cocoa.NSObject
-
- org.eclipse.swt.internal.cocoa.NSResponder
-
- org.eclipse.swt.internal.cocoa.NSView
-
- org.eclipse.swt.internal.cocoa.NSControl
-
- Direct Known Subclasses:
NSButton
,NSDatePicker
,NSImageView
,NSScroller
,NSSlider
,NSStepper
,NSTableView
,NSTextField
public class NSControl extends NSView
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
abortEditing()
long
action()
NSCell
cell()
static long
cellClass()
NSText
currentEditor()
double
doubleValue()
NSFont
font()
boolean
isEnabled()
boolean
isHighlighted()
boolean
sendAction(long theAction, id theTarget)
void
setAction(long action)
void
setAlignment(long alignment)
void
setBaseWritingDirection(long baseWritingDirection)
void
setCell(NSCell cell)
static void
setCellClass(long factoryId)
void
setDoubleValue(double doubleValue)
void
setEnabled(boolean enabled)
void
setFont(NSFont font)
void
setFormatter(NSFormatter formatter)
void
setStringValue(NSString stringValue)
void
setTarget(id target)
void
sizeToFit()
NSString
stringValue()
id
target()
-
Methods inherited from class org.eclipse.swt.internal.cocoa.NSView
acceptsFirstMouse, addSubview, addSubview, addToolTipRect, beginDocument, beginPageInRect, bitmapImageRepForCachingDisplayInRect, bounds, cacheDisplayInRect, canBecomeKeyView, convertPoint_fromView_, convertPoint_toView_, convertRect_fromView_, convertRect_toView_, discardCursorRects, display, displayIfNeeded, displayRectIgnoringOpacity, dragImage, drawRect, endDocument, endPage, frame, hitTest, initWithFrame, isDescendantOf, isFlipped, isHidden, isHiddenOrHasHiddenAncestor, isOpaque, layer, lockFocus, lockFocusIfCanDraw, menuForEvent, mouse, mouseDownCanMoveWindow, needsPanelToBecomeKey, registerForDraggedTypes, removeFromSuperview, removeToolTip, removeTrackingArea, resetCursorRects, scrollClipView, scrollPoint, scrollRect, setAcceptsTouchEvents, setAutoresizesSubviews, setAutoresizingMask, setBoundsRotation, setBoundsSize, setFocusRingType, setFrame, setFrameOrigin, setFrameSize, setHidden, setNeedsDisplay, setNeedsDisplayInRect, setToolTip, setWantsRestingTouches, shouldDelayWindowOrderingForEvent, subviews, superview, trackingAreas, unlockFocus, unregisterDraggedTypes, updateTrackingAreas, viewDidMoveToWindow, viewWillMoveToWindow, visibleRect, window
-
Methods inherited from class org.eclipse.swt.internal.cocoa.NSResponder
acceptsFirstResponder, becomeFirstResponder, cancelOperation, cursorUpdate, doCommandBySelector, flagsChanged, helpRequested, interpretKeyEvents, keyDown, keyUp, magnifyWithEvent, mouseDown, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseUp, noResponderFor, otherMouseDown, otherMouseDragged, otherMouseUp, pageDown, pageUp, performKeyEquivalent, resignFirstResponder, rightMouseDown, rightMouseDragged, rightMouseUp, rotateWithEvent, scrollWheel, swipeWithEvent, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesMovedWithEvent, undoManager, validRequestorForSendType
-
Methods inherited from class org.eclipse.swt.internal.cocoa.NSObject
accessibilityAttributeValue, accessibilitySetOverrideValue, addEventListener, alloc, autorelease, cancelAuthenticationChallenge, className, conformsToProtocol, copy, description, draggedImage, draggingDestinationWindow, draggingLocation, draggingPasteboard, draggingSourceOperationMask, handleEvent, init, isEqual, isKindOfClass, mutableCopy, outlineView, outlineView, outlineView, performSelector, performSelectorOnMainThread, readSelectionFromPasteboard, release, respondsToSelector, retain, retainCount, setValue, superclass, tableView, tableView, useCredential, valueForKey, writeSelectionToPasteboard
-
Methods inherited from class org.eclipse.swt.internal.cocoa.id
equals, hashCode, objc_getClass, toString
-
-
-
-
Constructor Detail
-
NSControl
public NSControl()
-
NSControl
public NSControl(long id)
-
NSControl
public NSControl(id id)
-
-
Method Detail
-
abortEditing
public boolean abortEditing()
-
action
public long action()
-
cell
public NSCell cell()
-
cellClass
public static long cellClass()
-
currentEditor
public NSText currentEditor()
-
doubleValue
public double doubleValue()
-
font
public NSFont font()
-
isEnabled
public boolean isEnabled()
-
isHighlighted
public boolean isHighlighted()
-
sendAction
public boolean sendAction(long theAction, id theTarget)
-
setAction
public void setAction(long action)
-
setAlignment
public void setAlignment(long alignment)
-
setBaseWritingDirection
public void setBaseWritingDirection(long baseWritingDirection)
-
setCell
public void setCell(NSCell cell)
-
setCellClass
public static void setCellClass(long factoryId)
-
setDoubleValue
public void setDoubleValue(double doubleValue)
-
setEnabled
public void setEnabled(boolean enabled)
-
setFont
public void setFont(NSFont font)
-
setFormatter
public void setFormatter(NSFormatter formatter)
-
setStringValue
public void setStringValue(NSString stringValue)
-
setTarget
public void setTarget(id target)
-
sizeToFit
public void sizeToFit()
-
stringValue
public NSString stringValue()
-
target
public id target()
-
-