1 package ch
.cyberduck
.binding
.application
;
4 * Copyright (c) 2002-2015 David Kocher. All rights reserved.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * Bug fixes, suggestions and comments should be sent to feedback@cyberduck.ch
20 import ch
.cyberduck
.binding
.foundation
.NSObject
;
22 import org
.rococoa
.ObjCClass
;
23 import org
.rococoa
.cocoa
.CGFloat
;
28 public abstract class NSStatusBar
extends NSObject
{
29 private static final _Class CLASS
= org
.rococoa
.Rococoa
.createClass("NSStatusBar", _Class
.class);
31 public static final CGFloat NSVariableStatusItemLength
= new CGFloat(-1.0d
);
32 public static final CGFloat NSSquareStatusItemLength
= new CGFloat(-2.0d
);
34 public interface _Class
extends ObjCClass
{
35 NSStatusBar
systemStatusBar();
38 public static NSStatusBar
systemStatusBar() {
39 return CLASS
.systemStatusBar();
43 * @param length A constant that specifies whether the status item is of fixed width, or variable width.
44 * The valid constants are described in Status Bar Item Length.
45 * @return An NSStatusItem object or nil if the item could not be created.
47 public abstract NSStatusItem
statusItemWithLength(CGFloat length
);
50 * Removes the specified status item from the receiver
52 * @param item The NSStatusItem object to remove.
54 public abstract void removeStatusItem(NSStatusItem item
);