Space.java :  » Ajax » zk » org » zkoss » zul » Java Open Source

Java Open Source » Ajax » zk 
zk » org » zkoss » zul » Space.java
/* Space.java

  Purpose:
    
  Description:
    
  History:
    Sat Jan 14 00:40:57     2006, Created by tomyeh

Copyright (C) 2006 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
  This program is distributed under LGPL Version 3.0 in the hope that
  it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zkoss.zul;

import org.zkoss.zk.ui.WrongValueException;

/**
 * Space is a {@link Separator} with the orient default to "horizontal".
 *
 * <p>In other words, &lt;space&gt; is equivalent to &lt;separator orient="horizontal"&gt;
 *
 * @author tomyeh
 */
public class Space extends Separator implements org.zkoss.zul.api.Space {
  public Space() {
    try {
      setOrient("vertical");
    } catch (WrongValueException ex) {
      throw new InternalError(); //impossible
    }
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.