Package org.eclipse.swt.internal.cocoa
Class NSPopUpButton
- java.lang.Object
-
- Direct Known Subclasses:
SWTPopUpButton
public class NSPopUpButton extends NSButton
-
-
Constructor Summary
Constructors Constructor Description NSPopUpButton()
NSPopUpButton(long id)
NSPopUpButton(id id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static long
cellClass()
long
indexOfSelectedItem()
NSPopUpButton
initWithFrame(NSRect buttonFrame, boolean flag)
NSMenuItem
itemAtIndex(long index)
NSString
itemTitleAtIndex(long index)
NSMenu
menu()
long
numberOfItems()
void
removeAllItems()
void
removeItemAtIndex(long index)
void
selectItem(NSMenuItem item)
void
selectItemAtIndex(long index)
void
setAutoenablesItems(boolean autoenablesItems)
static void
setCellClass(long factoryId)
void
setPullsDown(boolean pullsDown)
NSString
titleOfSelectedItem()
-
Methods inherited from class org.eclipse.swt.internal.cocoa.NSButton
attributedTitle, bezelStyle, setAllowsMixedState, setAttributedTitle, setBezelStyle, setBordered, setButtonType, setImage, setImagePosition, setKeyEquivalent, setState, setTitle, state
-
Methods inherited from class org.eclipse.swt.internal.cocoa.NSControl
abortEditing, action, cell, currentEditor, doubleValue, font, isEnabled, isHighlighted, sendAction, setAction, setAlignment, setBaseWritingDirection, setCell, setDoubleValue, setEnabled, setFont, setFormatter, setStringValue, setTarget, sizeToFit, stringValue, 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
-
NSPopUpButton
public NSPopUpButton()
-
NSPopUpButton
public NSPopUpButton(long id)
-
NSPopUpButton
public NSPopUpButton(id id)
-
-
Method Detail
-
indexOfSelectedItem
public long indexOfSelectedItem()
-
initWithFrame
public NSPopUpButton initWithFrame(NSRect buttonFrame, boolean flag)
-
itemAtIndex
public NSMenuItem itemAtIndex(long index)
-
itemTitleAtIndex
public NSString itemTitleAtIndex(long index)
-
menu
public NSMenu menu()
-
numberOfItems
public long numberOfItems()
-
removeAllItems
public void removeAllItems()
-
removeItemAtIndex
public void removeItemAtIndex(long index)
-
selectItem
public void selectItem(NSMenuItem item)
-
selectItemAtIndex
public void selectItemAtIndex(long index)
-
setAutoenablesItems
public void setAutoenablesItems(boolean autoenablesItems)
-
setPullsDown
public void setPullsDown(boolean pullsDown)
-
titleOfSelectedItem
public NSString titleOfSelectedItem()
-
cellClass
public static long cellClass()
-
setCellClass
public static void setCellClass(long factoryId)
-
-