net.codescore.ui.components.dnd
Interface DnDContainer

All Superinterfaces:
Cloneable, Component, Serializable
All Known Subinterfaces:
PersistantDnDContainer
All Known Implementing Classes:
DnDContextWin, DnDWindow

public interface DnDContainer
extends Component

A Container for DnDColumns.

Author:
Adam Cornett

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 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)
           
 void rebuildCols()
          Re-builds each column and then re-parents each column, this will also fix any column number errors
 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.
 
Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getFellow, getFellowIfAny, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, setAttribute, setAttribute, setId, setMold, setPage, setPageBefore, setParent, setVariable, setVisible, smartUpdate, smartUpdateDeferred, smartUpdateValues, unsetVariable
 

Method Detail

addColumn

void addColumn(DnDVbox newCol)
Adds a column to this container

Parameters:
newCol - the new column to be added

addWindow

void addWindow(int col,
               DnDObject win)
Add A DnDObject to a column

Parameters:
col - The column number of the column to put the object in
win - the Object to be added
See Also:
DnDColumn.addWindow(DnDObject)

getCol

DnDColumn getCol(int col)
Parameters:
col -
Returns:

rebuildCols

void rebuildCols()
Re-builds each column and then re-parents each column, this will also fix any column number errors

See Also:
DnDColumn.reBuildList()

setColHeightPer

void setColHeightPer(int percent)
Sets the column height as a percentage

Parameters:
percent - a number between 1 and 100

setColHeightPx

void setColHeightPx(int pixels)
Sets the column height in pixels

Parameters:
pixels -

setColWidthPer

void setColWidthPer(int percent)
Sets the width of the columns as a percent

Parameters:
percent - a value between 0 and 100/number of columns

setColWidthPx

void setColWidthPx(int pixels)
Sets the width of the columns

Parameters:
pixels - the width in pixels

setNumCols

void setNumCols(int num_cols)
Sets the number of columns in this container. If num_cols is greater than the current number of columns, this method will add columns, if it is less than the current number of columns, it will throw and error, if it is equal to the current number of columns, the method will not make any changes.

Parameters:
num_cols - A number greater than the current number of columns


Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.