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

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

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

origin: iterate-ch/cyberduck

@Override
public void awakeFromNib() {
  // Reset
  NSEnumerator items = this.tabView.tabViewItems().objectEnumerator();
  NSObject object;
  while(((object = items.nextObject()) != null)) {
    this.tabView.removeTabViewItem(Rococoa.cast(object, NSTabViewItem.class));
  }
  // Insert all panels into tab view
  for(Map.Entry<Label, NSView> tab : this.getPanels().entrySet()) {
    final NSTabViewItem item = NSTabViewItem.itemWithIdentifier(tab.getKey().identifier);
    item.setView(tab.getValue());
    item.setLabel(tab.getKey().label);
    this.tabView.addTabViewItem(item);
  }
  // Set up toolbar properties: Allow customization, give a default display mode, and remember state in user defaults
  toolbar.setAllowsUserCustomization(false);
  toolbar.setSizeMode(this.getToolbarSize());
  toolbar.setDisplayMode(this.getToolbarMode());
  toolbar.setDelegate(this.id());
  window.setToolbar(toolbar);
  // Change selection to last selected item in preferences
  final int index = preferences.getInteger(String.format("%s.selected", this.getToolbarName()));
  this.setSelectedPanel(index < this.getPanels().size() ? index : 0);
  this.setTitle(this.getTitle(tabView.selectedTabViewItem()));
  super.awakeFromNib();
}
ch.cyberduck.binding.applicationNSTabViewremoveTabViewItem

Javadoc

Original signature : void removeTabViewItem(NSTabViewItem*)
tabViewItem must be an existing tabViewItem
native declaration : :111

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
  • setAutoresizingMask
  • setDelegate
    Original signature : void setDelegate(id) native declaration : :115
  • tabViewItemAtIndex
    Original signature : NSTabViewItem* tabViewItemAtIndex(NSInteger) May raise an NSRangeException nati
  • tabViewItems
    Original signature : NSArray* tabViewItems() native declaration : :91

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • Path (java.nio.file)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JLabel (javax.swing)
  • Top 12 Jupyter Notebook extensions
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