Class
zebkit.ui.Window
extends <zebkit.ui.Panel> |
<zebkit.ui> |
Window UI component class. Implements window like UI component. The window component has a header, status bar and content areas. The header component is usually placed at the top of window, the status bar component is placed at the bottom and the content component at places the central part of the window. Also the window defines corner UI component that is supposed to be used to resize the window. The window implementation provides the following possibilities:
- Move window by dragging the window on its header
- Resize window by dragging the window corner element
- Place buttons in the header to maximize, minimize, close, etc the window
- Indicates state of window (active or inactive) by changing
the widow header style
- Define a window icon component
- Define a window status bar component
zebkit.ui.Window
([s], [c]
)
Parameters:
-
[s]
<String>a window title
-
[c]
<zebkit.ui.Panel>a window content
public | void | close ( ) |
protected
|
<zebkit.ui.Panel> | createCaptionPan ( ) |
protected
|
<zebkit.ui.Panel> | createContentPan ( ) |
protected
|
<zebkit.ui.Label> | createTitle ( ) |
protected
|
<Boolean> | insideCorner (px, py) |
public | <Boolean> | isActive ( ) |
public | <Boolean> | isMaximized ( ) |
public | void | maximize ( ) |
public | void | restore ( ) |
public | void | setButtons (buttons) |
public | void | setSizeable (b) |
public
chainable
close ( )
Close the window |
protected
<zebkit.ui.Panel>
createCaptionPan ( )
Create a caption component
Returns:
<zebkit.ui.Panel>
a zebkit caption component |
protected
<zebkit.ui.Panel>
createContentPan ( )
Create a content component
Returns:
<zebkit.ui.Panel>
a content component |
protected
<zebkit.ui.Label>
createTitle ( )
Create a caption title label
Returns:
<zebkit.ui.Label>
a caption title label |
public
chainable
maximize ( )
Maximize the window |
public
chainable
restore ( )
Restore the window size |
public
void
setButtons (buttons )
Set the window buttons set. Parameters:
|
public
chainable
setSizeable (b )
Make the window sizable or not sizeable Parameters:
|












public
![]() buttons
Window buttons panel. The panel can contain number of window buttons |
public
![]() caption
Window caption panel. The panel contains window icons, button and title label |
public
<Integer>
minSize
Minimal possible size of the window |
public
![]() root
Root window panel. The root panel has to be used to add any UI components |