|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DnDColumn
A column is a vertical layout element that can hold an arbitrary number of
DnDObjects.
| 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 |
| Method Summary | |
|---|---|
void |
addWindow(DnDObject win)
Adds a DnDObject to the end of this column |
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 ( 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 |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
void addWindow(DnDObject win)
DnDObject to the end of this column
win - The object to be addedvoid fixRowNums()
DnDObject 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.
int getColumnNumber()
void onDrop(DropEvent event)
event - The event object passed from ZKvoid reBuildList()
fixRowNums()) and then redraws the
column.
void removeWindow(DnDObject win)
DnDObject from this column
win - The object to be removedvoid sortList()
DnDObject's
comparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||