CPObjectCPResponder
CPWindow
CPPanel
@implementation CPPanel : CPWindow
The CPPanel
class defines objects that manage the panels of the Cappuccino user interface. A panel is a window that serves an auxiliary function within an application. It generally displays controls that the user can act on to give instructions to the application or to modify the contents of a standard window.
Panels behave differently from standard windows in only a small number of ways, but the ways are important to the user interface:
To aid in their auxiliary role, panels can be assigned special behaviors:
Method Summary | |
---|---|
-(BOOL) | becomesKeyOnlyIfNeeded Returns YES if the window only becomes key
if needed. |
-(BOOL) | canBecomeMainWindow Returns YES if the window can become the main window. |
-(BOOL) | isFloatingPanel Returns YES if the receiver is a floating panel (like a palette). |
-(void) | setBecomesKeyOnlyIfNeeded:(BOOL)shouldBecomeKeyOnlyIfNeeded Sets whether the the window becomes key only if needed. |
-(void) | setFloatingPanel:(BOOL)isFloatingPanel Sets the receiver to be a floating panel. |
-(void) | setWorksWhenModal:(BOOL)shouldWorkWhenModal Sets whether this window can receive input while another window is running modally. |
-(BOOL) | worksWhenModal Returns YES if the receiver is able to receive input events
even when a modal session is active. |
Method Detail |
---|
-(BOOL)becomesKeyOnlyIfNeeded
YES
if the window only becomes key
if needed. NO
means it behaves just like other windows.-(BOOL)canBecomeMainWindow
YES
if the window can become the main window.-(BOOL)isFloatingPanel
YES
if the receiver is a floating panel (like a palette).-(void)setBecomesKeyOnlyIfNeeded:(BOOL)shouldBecomeKeyOnlyIfNeeded
shouldBecomeKeyOnlyIfNeeded
- YES
makes the window become key only if needed-(void)setFloatingPanel:(BOOL)isFloatingPanel
YES
makes the window a floating panel. NO
makes it a normal window.isFloatingPanel
- specifies whether to make it floating-(void)setWorksWhenModal:(BOOL)shouldWorkWhenModal
shouldWorkWhenModal
- whether to receive input while another window is modal-(BOOL)worksWhenModal
YES
if the receiver is able to receive input events
even when a modal session is active.Created on Sat Sep 13 14:15:43 PDT 2008