|
CS 1705 Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Window
cs1705.web.Window
public class Window
A generic window.
This is a slightly enhanced subclass of Window.
The main change is that this version provides for a "smart" border
property. An org.zkoss.zul.Window defaults to having no border, all
the time. This subclass defaults to having no border if there is
no title or caption, but defaults to including a border if you provide
a title or caption. As always, this is just the default--if you
specify a border property yourself, that setting is always respected.
See Window for the real details on using
Windows.
| Field Summary |
|---|
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Window()
Creates a new Window object. |
|
Window(String title,
String border,
boolean closable)
Creates a new Window object. |
|
| Method Summary | |
|---|---|
boolean |
insertBefore(Component newChild,
Component refChild)
Inserts a child before the reference child. |
void |
setBorder(String border)
Sets the border (either "none" or "normal"). |
void |
setTitle(String title)
Sets the title. |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getContext, getCtrlKeys, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
focus, getDraggable, getDroppable, getHeight, getLeft, getMoldSclass, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZindex, getZIndex, redraw, setClass, setDroppable, setFocus, setHeight, setLeft, setMoldSclass, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.zkoss.zk.ui.IdSpace |
|---|
getFellow, getFellowIfAny, getFellows, hasFellow |
| Methods inherited from interface org.zkoss.zul.impl.api.XulElement |
|---|
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
|---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZindex, getZIndex, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
| Constructor Detail |
|---|
public Window()
public Window(String title,
String border,
boolean closable)
title - the window title (see setTitle(java.lang.String)).border - the border (see setBorder(java.lang.String)).closable - whether it is closable (see Window.setClosable(boolean)).| Method Detail |
|---|
public void setBorder(String border)
setBorder in interface WindowsetBorder in class Windowborder - the border. If null or "0", "none" is assumed.public void setTitle(String title)
setTitle in interface WindowsetTitle in class Windowtitle - the new title
public boolean insertBefore(Component newChild,
Component refChild)
You could use Component.setParent(org.zkoss.zk.ui.Component) or
Component.appendChild(org.zkoss.zk.ui.Component)
instead of this method, unless
you want to control where to put the child.
insertBefore in interface ComponentinsertBefore in class WindownewChild - the new child to be inserted.refChild - the child before which you want the new child
being inserted. If null, the new child is append to the end.
|
Last updated: Wed, Apr 1, 2009 12:29 AM EDT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||