zul.wgt
Class Separator

java.lang.Object
  extended by zk.Object
      extended by zk.Widget
          extended by zul.Widget
              extended by zul.wgt.Separator
Direct Known Subclasses:
Space

public class Separator
extends Widget

A separator.

Default Widget.getZclass() as follows:

  1. Case 1: If getOrient() is vertical and isBar() is false, "z-separator-ver" is assumed
  2. Case 2: If getOrient() is vertical and isBar() is true, "z-separator-ver-bar" is assumed
  3. Case 3: If getOrient() is horizontal and isBar() is false, "z-separator-hor" is assumed
  4. Case 4: If getOrient() is horizontal and isBar() is true, "z-separator-hor-bar" is assumed


Field Summary
 
Fields inherited from class zk.Widget
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName
 
Fields inherited from class zk.Object
$class, $oid
 
Method Summary
 String getOrient()
          Returns the orient.
 String getSpacing()
          Returns the spacing.
 boolean isBar()
          Returns whether to display a visual bar as the separator.
 boolean isVertical()
          Returns whether it is a vertical separator.
 void setBar(boolean bar)
          Sets whether to display a visual bar as the separator.
 void setOrient(String orient)
          Sets the orient.
 void setSpacing(String spacing)
          Sets the spacing.
 
Methods inherited from class zul.Widget
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from class zk.Widget
$, $f, $f, $f, $init, $n, $n, $o, afterAnima_, afterParentChanged_, appendChild, appendChild, beforeParentChanged_, beforeSendAU_, bind_, bind, bindChildren_, bindDoubleTap_, bindSwipe_, canActivate, cleanDrag_, clear, clearCache, cloneDrag_, deferRedrawHTML_, detach, doBlur_, doClick_, doDoubleClick_, doFocus_, doKeyDown_, doKeyPress_, doKeyUp_, domAttrs_, domClass_, domListen_, doMouseDown_, doMouseMove_, doMouseOut_, doMouseOver_, doMouseUp_, domStyle_, domTextStyleAttr_, domTooltiptext_, domUnlisten_, doRightClick_, doSelect_, doSwipe_, doTooltipOut_, doTooltipOver_, dropEffect_, extraBind_, fire, fireX, focus_, focus, forcerender, fromPageCoord, get, getAction, getCaveNode, getChildAt, getChildIndex, getClass, getDraggable, getDragMessage_, getDragNode, getDragOptions_, getDrop_, getDroppable, getElementsById, getElementsByName, getFirstNode_, getFloatZIndex_, getHeight, getHflex, getId, getLeft, getMold, getOldWidget_, getPage, getRenderdefer, getSclass, getScrollLeft, getScrollTop, getStyle, getTextNode, getTooltiptext, getTop, getTopWidget, getVflex, getWidth, getZclass, getZIndex, hide, ignoreDescendantFloatUp_, ignoreDrag_, initDrag_, insertBefore, insertChildHTML_, isAutoId, isBinding, isFloating_, isListen, isRealVisible, isRealVisible, isVisible, isVisible, isWatchable_, listen, listenOnFitSize_, mimicMouseDown_, newInstance, nextUuid, onChildAdded_, onChildRemoved_, onChildReplaced_, onChildVisible_, onDrop_, redraw, redrawHTML_, register, removeChild, removeChild, removeChildHTML_, removeHTML_, replaceCavedChildren_, replaceChildHTML_, replaceHTML, replaceWidget, rerender, rerender, scrollIntoView, sendAU_, set, set, setAction, setChildren, setDomVisible_, setDraggable, setDroppable, setFloating_, setFloatZIndex_, setHeight, setHflex, setId, setLeft, setListener, setListener, setListeners, setMold, setRenderdefer, setSclass, setScrollLeft, setScrollTop, setStyle, setTooltiptext, setTop, setTopmost, setVflex, setVisible, setWidth, setZclass, setZIndex, shallChildROD_, shallIgnoreClick_, show, smartUpdate, unbind_, unbind, unbindChildren_, unbindDoubleTap_, unbindSwipe_, uncloneDrag_, unlisten, unlistenOnFitSize_, updateDomClass_, updateDomStyle_, uuid, zsync
 
Methods inherited from class zk.Object
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setOrient

public void setOrient(String orient)
Sets the orient.

Parameters:
orient - either "horizontal" or "vertical".

getOrient

public String getOrient()
Returns the orient.

Default: "horizontal".

Returns:
String

setBar

public void setBar(boolean bar)
Sets whether to display a visual bar as the separator.

Parameters:
bar -

isBar

public boolean isBar()
Returns whether to display a visual bar as the separator.

Default: false

Returns:
boolean

setSpacing

public void setSpacing(String spacing)
Sets the spacing.

Parameters:
spacing - the spacing (such as "0", "5px", "3pt" or "1em")

getSpacing

public String getSpacing()
Returns the spacing.

Default: null (depending on CSS).

Returns:
String

isVertical

public boolean isVertical()
Returns whether it is a vertical separator.

Returns:
boolean


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo