to.etc.domui.dom.html
Class Div

java.lang.Object
  extended by to.etc.domui.dom.css.CssBase
      extended by to.etc.domui.dom.html.NodeBase
          extended by to.etc.domui.dom.html.NodeContainer
              extended by to.etc.domui.dom.html.Div
All Implemented Interfaces:
java.lang.Iterable<NodeBase>, IModelBinding, INodeErrorDelegate, IDraggable, IDropTargetable
Direct Known Subclasses:
AbstractDivControl, AsyncContainer, BorderLayoutPanel, BreadCrumb, CaptionedPanel, ColorPicker, ColorPickerButton, DataPager, DisplayHtml, ErrorMessageDiv, Explanation, FileUpload, FloatingWindow, InfoPanel, InternalParentTree, ListShuttle, LookupForm, LookupInput, ModificationFenceDiv, MonthPanel, PercentageCompleteRuler, PollingDiv, PopInPanel, RadioGroup, ShelveBreadCrumb, SimplePopupMenu, SplitLine, SplitterPanel, TableModelTableBase, TabPanelBase, Tree, UrlPage, VerticalSpacer, WeekAgendaComponent

public class Div
extends NodeContainer
implements IDropTargetable, IDraggable


Constructor Summary
Div()
           
Div(NodeBase... children)
           
Div(java.lang.String txt)
           
 
Method Summary
protected  void afterCreateContent()
           
 void componentHandleWebAction(RequestContextImpl ctx, java.lang.String action)
          Handle the action sent by the return pressed Javascript thingerydoo.
 void fadeIn()
          Redisplay a display: fadeIn thing slowly.
 void fadeOut()
          Effect: hide this div by fading out.
protected static java.lang.String getCustomUpdatesCallJS()
          Returns Domui internal javascript call: WebUI.doCustomUpdates();
 IDragHandler getDragHandler()
          Returns the current handler for dragging.
 TBody getDropBody()
           
 IDropHandler getDropHandler()
          Return the current drop handler for a node.
 DropMode getDropMode()
           
 IReturnPressed getReturnPressed()
           
 void setDragHandler(IDragHandler dragHandler)
          Set the drag handler to use for this thingy.
 void setDropBody(TBody body, DropMode dropMode)
          Sets this DIV in table-drop mode.
 void setDropHandler(IDropHandler dropHandler)
          Make this node acceptable for dropping dragged items into.
 void setReturnPressed(IReturnPressed returnPressed)
           
 void slideDown()
          Redisplay a display: slideDown thing slowly.
 void slideUp()
          Effect: hide this div by adjusting it's height, ending as a display: none.
 MiniTableBuilder tb()
           
 void visit(INodeVisitor v)
          This must visit the appropriate method in the node visitor.
 
Methods inherited from class to.etc.domui.dom.html.NodeContainer
add, add, add, addTable, canContain, delegateTo, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChild, getDeepChildren, getErrorFence, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalGetOldChildren, internalShelve, internalUnshelve, iterator, moveControlToModel, moveModelToControl, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setControlsEnabled, setErrorFence, setErrorFence, setText, setValue
 
Methods inherited from class to.etc.domui.dom.html.NodeBase
$, acceptRequestParameter, addCssClass, addGlobalMessage, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, build, changed, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, clearMessage, createContent, findComponentBundle, getActualID, getAllocationTracepoint, getClicked, getComponentBundle, getCreateJS, getCssClass, getErrorDelegate, getErrorLocation, getMessage, getOnClickJS, getOnMouseDownJS, getPage, getParent, getParent, getParent, getSharedContext, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getTitle, getUserObject, handleDrop, hasCssClass, hasError, internalGetOldParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnClicked, internalOnValueChanged, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetLogAllocations, internalSetTag, isBuilt, isFocusRequested, isStretchHeight, onAddedToPage, onBeforeFullRender, onForceRebuild, onHeaderContributors, onRemoveFromPage, onShelve, onUnshelve, refresh, remove, removeCssClass, renderJavascriptState, replaceWith, setClicked, setComponentBundle, setCssClass, setErrorDelegate, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setSpecialAttribute, setStretchHeight, setTestID, setTitle, setUserObject, toString
 
Methods inherited from class to.etc.domui.dom.css.CssBase
getBackgroundAttachment, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorderBottomColor, getBorderBottomStyle, getBorderBottomWidth, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderTopColor, getBorderTopStyle, getBorderTopWidth, getBottom, getCachedStyle, getClear, getColor, getDisplay, getFloat, getFontFamily, getFontSize, getFontSizeAdjust, getFontStyle, getFontVariant, getFontWeight, getHeight, getLeft, getLineHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverflow, getPosition, getRight, getTextAlign, getTop, getTransform, getVerticalAlign, getVisibility, getWidth, getZIndex, internalSetDisplay, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorder, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBottom, setCachedStyle, setClear, setColor, setDisplay, setFloat, setFontFamily, setFontSize, setFontSizeAdjust, setFontStyle, setFontVariant, setFontWeight, setHeight, setLeft, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Div

public Div()

Div

public Div(java.lang.String txt)

Div

public Div(NodeBase... children)
Method Detail

visit

public void visit(INodeVisitor v)
           throws java.lang.Exception
Description copied from class: NodeBase
This must visit the appropriate method in the node visitor. It should NOT recurse it's children.

Specified by:
visit in class NodeBase
Throws:
java.lang.Exception

getReturnPressed

public IReturnPressed getReturnPressed()

setReturnPressed

public void setReturnPressed(IReturnPressed returnPressed)

afterCreateContent

protected void afterCreateContent()
                           throws java.lang.Exception
Overrides:
afterCreateContent in class NodeBase
Throws:
java.lang.Exception

componentHandleWebAction

public void componentHandleWebAction(RequestContextImpl ctx,
                                     java.lang.String action)
                              throws java.lang.Exception
Handle the action sent by the return pressed Javascript thingerydoo.

Overrides:
componentHandleWebAction in class NodeBase
Throws:
java.lang.Exception
See Also:
NodeBase.componentHandleWebAction(to.etc.domui.server.RequestContextImpl, java.lang.String)

tb

public MiniTableBuilder tb()

setDragHandler

public void setDragHandler(IDragHandler dragHandler)
Set the drag handler to use for this thingy. When set (no an actual instance) this means the associated class can be dragged. When set to null the instance is undraggable.

Specified by:
setDragHandler in interface IDraggable
See Also:
IDraggable.setDragHandler(to.etc.domui.util.IDragHandler)

getDragHandler

public IDragHandler getDragHandler()
Returns the current handler for dragging. If null this node cannot be dragged.

Specified by:
getDragHandler in interface IDraggable
Returns:
See Also:
IDraggable.getDragHandler()

getDropHandler

public IDropHandler getDropHandler()
Return the current drop handler for a node. If null the node does not accept dropped thingerydoo's.

Specified by:
getDropHandler in interface IDropTargetable
Returns:
See Also:
IDropTargetable.getDropHandler()

setDropHandler

public void setDropHandler(IDropHandler dropHandler)
Make this node acceptable for dropping dragged items into. The handler specified handles the actual drop events and drop accept events. When set to null this node will no longer accept dropped thingerydoo's.

Specified by:
setDropHandler in interface IDropTargetable
See Also:
IDropTargetable.setDropHandler(to.etc.domui.util.IDropHandler)

setDropBody

public void setDropBody(TBody body,
                        DropMode dropMode)
Sets this DIV in table-drop mode. This assigns the TBody where droppings are to be done and the mode to use when dropping.

Parameters:
body -
dropMode -

getDropBody

public TBody getDropBody()

getDropMode

public DropMode getDropMode()

slideUp

public void slideUp()
Effect: hide this div by adjusting it's height, ending as a display: none. Additional callback javascript is executed after animation is done. @See getCustomUpdatesCallJS() callback.


slideDown

public void slideDown()
Redisplay a display: slideDown thing slowly. Additional callback javascript is executed after animation is done. @See getCustomUpdatesCallJS() callback.


fadeOut

public void fadeOut()
Effect: hide this div by fading out. Additional callback javascript is executed after animation is done. @See getCustomUpdatesCallJS() callback.


fadeIn

public void fadeIn()
Redisplay a display: fadeIn thing slowly. Additional callback javascript is executed after animation is done. @See getCustomUpdatesCallJS() callback.


getCustomUpdatesCallJS

protected static java.lang.String getCustomUpdatesCallJS()
Returns Domui internal javascript call: WebUI.doCustomUpdates();

Returns: