org.rococoa.cocoa.appkit
Class NSSegmentedCell

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSCell
          extended by org.rococoa.cocoa.appkit.NSActionCell
              extended by org.rococoa.cocoa.appkit.NSSegmentedCell
All Implemented Interfaces:
NSCoding, NSCopying, NSObject, ObjCObject

public abstract class NSSegmentedCell
extends NSActionCell

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSSegmentedCell._class_
           
static class NSSegmentedCell._seFlags_struct
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
NSCopying._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
NSCoding._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSSegmentedCell()
           
 
Method Summary
static NSSegmentedCell alloc()
           
 NSSegmentBackgroundStyle as_NSSegmentedCell_NSSegmentBackgroundStyle()
           
abstract  void drawSegment_inFrame_withView(NSInteger segment, NSRect.ByValue frame, NSView controlView)
          For custom content drawing. frame has been adjusted to content area
Original signature : -(void)drawSegment:(NSInteger) inFrame:(NSRect) withView:(NSView*)
native declaration : NSSegmentedCell.h:114
static NSSegmentedCell._class_ getNSClass()
           
abstract  NSImage imageForSegment(NSInteger segment)
          Original signature : -(NSImage*)imageForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:79
abstract  NSObject imageScalingForSegment(NSInteger segment)
          Original signature : -(id)imageScalingForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:84
abstract  boolean isEnabledForSegment(NSInteger segment)
          Original signature : -(BOOL)isEnabledForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:95
abstract  boolean isSelectedForSegment(NSInteger segment)
          Original signature : -(BOOL)isSelectedForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:92
abstract  NSString labelForSegment(NSInteger segment)
          Original signature : -(NSString*)labelForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:89
abstract  void makeNextSegmentKey()
          For keyboard UI.
abstract  void makePreviousSegmentKey()
          Original signature : -(void)makePreviousSegmentKey
native declaration : NSSegmentedCell.h:65
abstract  NSMenu menuForSegment(NSInteger segment)
          Original signature : -(NSMenu*)menuForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:98
static NSSegmentedCell new_()
           
abstract  NSInteger segmentCount()
          Original signature : -(NSInteger)segmentCount
native declaration : NSSegmentedCell.h:51
abstract  NSObject segmentStyle()
          Original signature : -(id)segmentStyle
native declaration : NSSegmentedCell.h:109
abstract  NSInteger selectedSegment()
          Original signature : -(NSInteger)selectedSegment
native declaration : NSSegmentedCell.h:56
abstract  boolean selectSegmentWithTag(NSInteger tag)
          Original signature : -(BOOL)selectSegmentWithTag:(NSInteger)
native declaration : NSSegmentedCell.h:59
abstract  void setEnabled_forSegment(boolean enabled, NSInteger segment)
          Original signature : -(void)setEnabled:(BOOL) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:94
abstract  void setImage_forSegment(NSImage image, NSInteger segment)
          Original signature : -(void)setImage:(NSImage*) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:78
abstract  void setLabel_forSegment(NSString label, NSInteger segment)
          Original signature : -(void)setLabel:(NSString*) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:88
abstract  void setMenu_forSegment(NSMenu menu, NSInteger segment)
          Original signature : -(void)setMenu:(NSMenu*) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:97
abstract  void setSegmentCount(NSInteger count)
          Number of segments
Original signature : -(void)setSegmentCount:(NSInteger)
native declaration : NSSegmentedCell.h:50
abstract  void setSelected_forSegment(boolean selected, NSInteger segment)
          Original signature : -(void)setSelected:(BOOL) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:91
abstract  void setSelectedSegment(NSInteger selectedSegment)
          Which button is active.
abstract  void setTag_forSegment(NSInteger tag, NSInteger segment)
          Original signature : -(void)setTag:(NSInteger) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:103
abstract  void setToolTip_forSegment(NSString toolTip, NSInteger segment)
          Original signature : -(void)setToolTip:(NSString*) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:100
abstract  void setTrackingMode(int trackingMode)
          Original signature : -(void)setTrackingMode:(NSSegmentSwitchTracking)
native declaration : NSSegmentedCell.h:67
abstract  void setWidth_forSegment(org.rococoa.cocoa.CGFloat width, NSInteger segment)
          Width of 0 means autosize to fit
Original signature : -(void)setWidth:(CGFloat) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:75
abstract  NSInteger tagForSegment(NSInteger segment)
          Original signature : -(NSInteger)tagForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:104
abstract  NSString toolTipForSegment(NSInteger segment)
          Original signature : -(NSString*)toolTipForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:101
abstract  int trackingMode()
          Original signature : -(NSSegmentSwitchTracking)trackingMode
native declaration : NSSegmentedCell.h:68
abstract  org.rococoa.cocoa.CGFloat widthForSegment(NSInteger segment)
          Original signature : -(CGFloat)widthForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:76
 
Methods inherited from class org.rococoa.cocoa.appkit.NSActionCell
action, setAction, setTag, setTarget, tag, target
 
Methods inherited from class org.rococoa.cocoa.appkit.NSCell
alignment, allowsUndo, as_NSCell_NSCellAttributedStringMethods, as_NSCell_NSCellBackgroundStyle, as_NSCell_NSCellExpansion, as_NSCell_NSCellHitTest, as_NSCell_NSCellMixedState, as_NSCell_NSDeprecated, as_NSCell_NSKeyboardUI, baseWritingDirection, cellAttribute, cellSize, compare, controlSize, controlTint, controlView, createImageCell, createTextCell, defaultMenu, doubleValue, endEditing, fieldEditorForView, floatValue, font, formatter, getPeriodicDelay_interval, getPeriodicDelay_interval, hasValidObjectValue, image, initImageCell, initTextCell, integerValue, intValue, isBezeled, isBordered, isContinuous, isEditable, isEnabled, isEntryAcceptable, isHighlighted, isOpaque, isScrollable, isSelectable, keyEquivalent, lineBreakMode, menu, mouseDownFlags, objectValue, prefersTrackingUntilMouseUp, representedObject, sendActionOn, sendsActionOnEndEditing, setAllowsUndo, setBezeled, setBordered, setCellAttribute_to, setContinuous, setControlSize, setControlTint, setControlView, setDoubleValue, setEditable, setEnabled, setFloatValue, setFont, setFormatter, setHighlighted, setImage, setIntegerValue, setIntValue, setMenu, setObjectValue, setRepresentedObject, setScrollable, setSelectable, setSendsActionOnEndEditing, setState, setStringValue, setTitle, setTruncatesLastVisibleLine, setType, setUpFieldEditorAttributes, setUsesSingleLineMode, setWraps, state, stringValue, takeDoubleValueFrom, takeFloatValueFrom, takeIntegerValueFrom, takeIntValueFrom, takeObjectValueFrom, takeStringValueFrom, title, truncatesLastVisibleLine, type, userInterfaceLayoutDirection, usesSingleLineMode, wraps
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
copyWithZone
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
encodeWithCoder, initWithCoder
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSSegmentedCell

public NSSegmentedCell()
Method Detail

as_NSSegmentedCell_NSSegmentBackgroundStyle

public NSSegmentBackgroundStyle as_NSSegmentedCell_NSSegmentBackgroundStyle()

setSegmentCount

public abstract void setSegmentCount(NSInteger count)
Number of segments
Original signature : -(void)setSegmentCount:(NSInteger)
native declaration : NSSegmentedCell.h:50


segmentCount

public abstract NSInteger segmentCount()
Original signature : -(NSInteger)segmentCount
native declaration : NSSegmentedCell.h:51


setSelectedSegment

public abstract void setSelectedSegment(NSInteger selectedSegment)
Which button is active. May turn off other segments depending on mode.
Original signature : -(void)setSelectedSegment:(NSInteger)
native declaration : NSSegmentedCell.h:55


selectedSegment

public abstract NSInteger selectedSegment()
Original signature : -(NSInteger)selectedSegment
native declaration : NSSegmentedCell.h:56


selectSegmentWithTag

public abstract boolean selectSegmentWithTag(NSInteger tag)
Original signature : -(BOOL)selectSegmentWithTag:(NSInteger)
native declaration : NSSegmentedCell.h:59


makeNextSegmentKey

public abstract void makeNextSegmentKey()
For keyboard UI. Wraps.
Original signature : -(void)makeNextSegmentKey
native declaration : NSSegmentedCell.h:64


makePreviousSegmentKey

public abstract void makePreviousSegmentKey()
Original signature : -(void)makePreviousSegmentKey
native declaration : NSSegmentedCell.h:65


setTrackingMode

public abstract void setTrackingMode(int trackingMode)
Original signature : -(void)setTrackingMode:(NSSegmentSwitchTracking)
native declaration : NSSegmentedCell.h:67

Parameters:
trackingMode - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSSegmentSwitchTracking

trackingMode

public abstract int trackingMode()
Original signature : -(NSSegmentSwitchTracking)trackingMode
native declaration : NSSegmentedCell.h:68


setWidth_forSegment

public abstract void setWidth_forSegment(org.rococoa.cocoa.CGFloat width,
                                         NSInteger segment)
Width of 0 means autosize to fit
Original signature : -(void)setWidth:(CGFloat) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:75


widthForSegment

public abstract org.rococoa.cocoa.CGFloat widthForSegment(NSInteger segment)
Original signature : -(CGFloat)widthForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:76


setImage_forSegment

public abstract void setImage_forSegment(NSImage image,
                                         NSInteger segment)
Original signature : -(void)setImage:(NSImage*) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:78


imageForSegment

public abstract NSImage imageForSegment(NSInteger segment)
Original signature : -(NSImage*)imageForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:79


imageScalingForSegment

public abstract NSObject imageScalingForSegment(NSInteger segment)
Original signature : -(id)imageScalingForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:84


setLabel_forSegment

public abstract void setLabel_forSegment(NSString label,
                                         NSInteger segment)
Original signature : -(void)setLabel:(NSString*) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:88


labelForSegment

public abstract NSString labelForSegment(NSInteger segment)
Original signature : -(NSString*)labelForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:89


setSelected_forSegment

public abstract void setSelected_forSegment(boolean selected,
                                            NSInteger segment)
Original signature : -(void)setSelected:(BOOL) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:91


isSelectedForSegment

public abstract boolean isSelectedForSegment(NSInteger segment)
Original signature : -(BOOL)isSelectedForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:92


setEnabled_forSegment

public abstract void setEnabled_forSegment(boolean enabled,
                                           NSInteger segment)
Original signature : -(void)setEnabled:(BOOL) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:94


isEnabledForSegment

public abstract boolean isEnabledForSegment(NSInteger segment)
Original signature : -(BOOL)isEnabledForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:95


setMenu_forSegment

public abstract void setMenu_forSegment(NSMenu menu,
                                        NSInteger segment)
Original signature : -(void)setMenu:(NSMenu*) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:97


menuForSegment

public abstract NSMenu menuForSegment(NSInteger segment)
Original signature : -(NSMenu*)menuForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:98


setToolTip_forSegment

public abstract void setToolTip_forSegment(NSString toolTip,
                                           NSInteger segment)
Original signature : -(void)setToolTip:(NSString*) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:100


toolTipForSegment

public abstract NSString toolTipForSegment(NSInteger segment)
Original signature : -(NSString*)toolTipForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:101


setTag_forSegment

public abstract void setTag_forSegment(NSInteger tag,
                                       NSInteger segment)
Original signature : -(void)setTag:(NSInteger) forSegment:(NSInteger)
native declaration : NSSegmentedCell.h:103


tagForSegment

public abstract NSInteger tagForSegment(NSInteger segment)
Original signature : -(NSInteger)tagForSegment:(NSInteger)
native declaration : NSSegmentedCell.h:104


segmentStyle

public abstract NSObject segmentStyle()
Original signature : -(id)segmentStyle
native declaration : NSSegmentedCell.h:109


drawSegment_inFrame_withView

public abstract void drawSegment_inFrame_withView(NSInteger segment,
                                                  NSRect.ByValue frame,
                                                  NSView controlView)
For custom content drawing. frame has been adjusted to content area
Original signature : -(void)drawSegment:(NSInteger) inFrame:(NSRect) withView:(NSView*)
native declaration : NSSegmentedCell.h:114


alloc

public static NSSegmentedCell alloc()

new_

public static NSSegmentedCell new_()

getNSClass

public static NSSegmentedCell._class_ getNSClass()


Copyright © 2009. All Rights Reserved.