|
||||||||||
| 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
net.codescore.ui.components.windows.AppWindow
net.codescore.ui.components.windows.DnDWindow
public class DnDWindow
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zul.Window |
|---|
Window.ExtraCtrl |
| Field Summary | |
|---|---|
private List<DnDVbox> |
columns
|
private static long |
serialVersionUID
|
private Hbox |
topHBox
|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| 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 | |
|---|---|
DnDWindow()
|
|
| Method Summary | |
|---|---|
void |
addColumn(DnDVbox newCol)
Adds a column to this container |
void |
addWindow(int col,
DnDObject win)
Add A DnDObject to a column |
DnDColumn |
getCol(int col)
|
boolean |
load()
Load this DnD containers saved settings |
void |
rebuildCols()
Re-builds each column and then re-parents each column, this will also fix any column number errors |
void |
save()
Save the current layout |
void |
setColHeightPer(int percent)
Sets the column height as a percentage |
void |
setColHeightPx(int pixels)
Sets the column height in pixels |
void |
setColWidthPer(int percent)
Sets the width of the columns as a percent |
void |
setColWidthPx(int pixels)
Sets the width of the columns |
void |
setNumCols(int num_cols)
Sets the number of columns in this container. |
void |
setTopHBoxParent(Component c)
Sets the parent for the Hbox containing the columns |
| Methods inherited from class net.codescore.ui.components.windows.AppWindow |
|---|
getRequest, getSession, getUserName, userHasRole |
| Methods inherited from class org.zkoss.zul.Window |
|---|
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getCtrlKeys, getDefaultActionOnShow, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitle, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentSclass, setContentStyle, setCtrlKeys, setDefaultActionOnShow, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSclass, setSizable, setTitle, setVisible |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, setClass, setDroppable, setFocus, setHeight, setLeft, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.zkoss.zk.ui.IdSpace |
|---|
getFellow, getFellowIfAny |
| Field Detail |
|---|
private static final long serialVersionUID
private final List<DnDVbox> columns
private final Hbox topHBox
| Constructor Detail |
|---|
public DnDWindow()
| Method Detail |
|---|
public void addColumn(DnDVbox newCol)
addColumn in interface DnDContainernewCol - the new column to be added
public void addWindow(int col,
DnDObject win)
addWindow in interface DnDContainercol - The column number of the column to put the object inwin - the Object to be addedDnDColumn.addWindow(DnDObject)public DnDColumn getCol(int col)
getCol in interface DnDContainerpublic boolean load()
load in interface PersistantDnDContainertrue if the settings were sucessfully loaded from
the database. false if the settings could not be
loaded.public void rebuildCols()
rebuildCols in interface DnDContainerDnDColumn.reBuildList()public void save()
save in interface PersistantDnDContainerpublic void setColHeightPer(int percent)
setColHeightPer in interface DnDContainerpercent - a number between 1 and 100public void setColHeightPx(int pixels)
setColHeightPx in interface DnDContainerpublic void setColWidthPer(int percent)
setColWidthPer in interface DnDContainerpercent - a value between 0 and 100/number of columnspublic void setColWidthPx(int pixels)
setColWidthPx in interface DnDContainerpixels - the width in pixelspublic void setNumCols(int num_cols)
setNumCols in interface DnDContainernum_cols - A number greater than the current number of columnspublic void setTopHBoxParent(Component c)
Hbox containing the columns
c - The component which will be the parent of the columns
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||