congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NSTabView.tabViewItemAtIndex
Code IndexAdd Tabnine to your IDE (free)

How to use
tabViewItemAtIndex
method
in
ch.cyberduck.binding.application.NSTabView

Best Java code snippets using ch.cyberduck.binding.application.NSTabView.tabViewItemAtIndex (Showing top 2 results out of 315)

origin: iterate-ch/cyberduck

/**
 * Change the toolbar selection and display the tab index.
 *
 * @param selected The index of the tab to be selected
 */
protected void setSelectedPanel(final int selected) {
  int tab = selected;
  if(-1 == tab) {
    tab = 0;
  }
  String identifier = tabView.tabViewItemAtIndex(tab).identifier();
  if(!this.validateTabWithIdentifier(identifier)) {
    tab = 0;
    identifier = tabView.tabViewItemAtIndex(tab).identifier();
  }
  tabView.selectTabViewItemAtIndex(tab);
  NSTabViewItem page = tabView.selectedTabViewItem();
  if(page == null) {
    page = tabView.tabViewItemAtIndex(0);
  }
  toolbar.setSelectedItemIdentifier(page.identifier());
  this.initializePanel(identifier);
}
origin: iterate-ch/cyberduck

@Override
public NSToolbarItem toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar(final NSToolbar toolbar,
                                       final String itemIdentifier,
                                       final boolean flag) {
  if(!cache.containsKey(itemIdentifier)) {
    cache.put(itemIdentifier, NSToolbarItem.itemWithIdentifier(itemIdentifier));
  }
  final NSToolbarItem toolbarItem = cache.get(itemIdentifier);
  final NSTabViewItem tab = tabView.tabViewItemAtIndex(tabView.indexOfTabViewItemWithIdentifier(itemIdentifier));
  if(null == tab) {
    log.warn(String.format("No tab for toolbar item %s", itemIdentifier));
    return null;
  }
  toolbarItem.setLabel(tab.label());
  toolbarItem.setPaletteLabel(tab.label());
  toolbarItem.setToolTip(tab.label());
  toolbarItem.setImage(IconCacheFactory.<NSImage>get().iconNamed(String.format("%s.tiff", itemIdentifier), 32));
  toolbarItem.setTarget(this.id());
  toolbarItem.setAction(Foundation.selector("toolbarItemSelected:"));
  return toolbarItem;
}
ch.cyberduck.binding.applicationNSTabViewtabViewItemAtIndex

Javadoc

Original signature : NSTabViewItem* tabViewItemAtIndex(NSInteger)
May raise an NSRangeException
native declaration : :130

Popular methods of NSTabView

  • indexOfTabViewItem
    Original signature : NSInteger indexOfTabViewItem(NSTabViewItem*) NSNotFound if not found native dec
  • selectTabViewItemAtIndex
    Original signature : void selectTabViewItemAtIndex(NSInteger) May raise an NSRangeException native d
  • selectedTabViewItem
    Original signature : NSTabViewItem* selectedTabViewItem() return nil if none are selected native dec
  • addTabViewItem
    Original signature : void addTabViewItem(NSTabViewItem*) Add tab at the end. native declaration : :1
  • indexOfTabViewItemWithIdentifier
    Original signature : NSInteger indexOfTabViewItemWithIdentifier(id) NSNotFound if not found native d
  • removeTabViewItem
    Original signature : void removeTabViewItem(NSTabViewItem*) tabViewItem must be an existing tabViewI
  • setAutoresizingMask
  • setDelegate
    Original signature : void setDelegate(id) native declaration : :115
  • tabViewItems
    Original signature : NSArray* tabViewItems() native declaration : :91

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now