|
||||||||||
| 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.Box
org.zkoss.zul.Vbox
net.codescore.ui.components.dnd.DnDVbox
public class DnDVbox
A Vbox that acts as a column for DnDObjects
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
HtmlBasedComponent.ExtraCtrl |
| Field Summary | |
|---|---|
protected int |
col
|
private List<DnDObject> |
objects
The list of objects that this column has |
private static long |
serialVersionUID
|
| 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 | |
|---|---|
DnDVbox(int col)
|
|
| Method Summary | |
|---|---|
void |
addWindow(DnDObject win)
Adds a DnDObject to the end of this column |
int |
compareTo(DnDColumn o)
|
void |
fixRowNums()
Each DnDObject has a 'row number' which is an index of where the
item is vertically in the column. |
int |
getColumnNumber()
Returns the column index for this column. |
void |
onDrop(DropEvent event)
This method handles the drop event for the column |
void |
reBuildList()
Fixes the row numbers ( DnDColumn.fixRowNums()) and then redraws the
column. |
void |
removeWindow(DnDObject win)
Removed a DnDObject from this column |
void |
sortList()
Sorts the internal column list according to the DnDObject's
comparator |
String |
toString()
|
| Methods inherited from class org.zkoss.zul.Box |
|---|
getAlign, getCaveAttrs, getChildInnerAttrs, getChildOuterAttrs, getHeights, getOrient, getOuterAttrs, getPack, getSpacing, getValign, getWidths, insertBefore, isHorizontal, isVertical, onChildRemoved, onDrawNewChild, setAlign, setHeights, setOrient, setPack, setSpacing, setValign, setWidths |
| 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, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, newExtraCtrl, setClass, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private final List<DnDObject> objects
protected final int col
| Constructor Detail |
|---|
public DnDVbox(int col)
col - This column's number. Columns are 1-indexed: the column to the
far left is 1 the next one to the right is 2, etc.| Method Detail |
|---|
public void addWindow(DnDObject win)
DnDColumnDnDObject to the end of this column
addWindow in interface DnDColumnwin - The object to be addedpublic int compareTo(DnDColumn o)
compareTo in interface Comparable<DnDColumn>public void fixRowNums()
DnDColumnDnDObject has a 'row number' which is an index of where the
item is vertically in the column. This method will iterate over each
DnDObject in the column and ensure that its row number is one
more than the previous element.
fixRowNums in interface DnDColumnpublic int getColumnNumber()
DnDColumn
getColumnNumber in interface DnDColumnpublic void onDrop(DropEvent event)
DnDColumn
onDrop in interface DnDColumnevent - The event object passed from ZKpublic void reBuildList()
DnDColumnDnDColumn.fixRowNums()) and then redraws the
column.
reBuildList in interface DnDColumnpublic void removeWindow(DnDObject win)
DnDColumnDnDObject from this column
removeWindow in interface DnDColumnwin - The object to be removedpublic void sortList()
DnDColumnDnDObject's
comparator
sortList in interface DnDColumnpublic String toString()
toString in class AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||