Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.UiException


    if (tasks == null) {
      tasks = new ArrayList(13);
      _taskMap.put(series, tasks);
    }
    if (task.getSeries() != null) {
      throw new UiException("A GanttTask in a series cannot be added again: "+ task.getSeries()+":"+task.getDescription());
    }
    task.setSeries(series);
    task.setOwner(this);
    tasks.add(task);
    fireEvent(ChartDataEvent.ADDED, series, task);
View Full Code Here


      }
    }

    public void addSubtask(GanttTask task) {
      if (task.getSeries() != null) {
        throw new UiException("A GanttTask in a series cannot be added again: "+ task.getSeries()+":"+task.getDescription());
      }
      task.setSeries(_series);
      task.setOwner(_owner);
      _subtasks.add(task);
      if (_owner != null)
View Full Code Here

      return getWebManager()
        .getClassWebResource().getResource(path.substring(2));
    try {
      return _ctx.getResource(path);
    } catch (MalformedURLException ex) {
      throw new UiException("Failed to retrieve "+path, ex);
    }
  }
View Full Code Here

  }

  //-- Component --//
  public void beforeParentChanged(Component parent) {
    if (parent != null && !(parent instanceof Treecols))
      throw new UiException("Wrong parent: "+parent);
    super.beforeParentChanged(parent);
  }
View Full Code Here

          if (media != null)
            sb.append("\" media=\"").append(media);
          sb.append("\"/>");
        }
      } catch (javax.servlet.ServletException ex) {
        throw new UiException(ex);
      }
    } else {
      sb.append("\n<style");
      if (ss.getType() != null)
        sb.append(" type=\"").append(ss.getType()).append('"');
View Full Code Here

    if (js.getSrc() != null) {
      String url;
      try {
        url = ServletFns.encodeURL(js.getSrc());
      } catch (javax.servlet.ServletException ex) {
        throw new UiException(ex);
      }

      sb.append(" src=\"").append(url).append('"');
      final String charset = js.getCharset();
      if (charset != null)
View Full Code Here

  //-- Component --//
  public void beforeParentChanged(Component parent) {
    if (parent != null && !(parent instanceof Tree)
    && !(parent instanceof Treeitem))
      throw new UiException("Wrong parent: "+parent);
    super.beforeParentChanged(parent);
  }
View Full Code Here

      if (tree != null) tree.onTreechildrenAdded(this);
    }
  }
  public void beforeChildAdded(Component child, Component refChild) {
    if (!(child instanceof Treeitem))
      throw new UiException("Unsupported child for treechildren: "+child);
    super.beforeChildAdded(child, refChild);
  }
View Full Code Here

   * @param nullAsMax whether to consider null as the maximum value.
   * If false, null is considered as the minimum value.
   */
  public FieldComparator(String orderBy, boolean ascending, boolean nullAsMax) {
    if (Strings.isBlank(orderBy)) {
      throw new UiException("Empty fieldnames: "+ orderBy);
    }
    _fieldnames = parseFieldNames(orderBy, ascending);
    _maxnull = nullAsMax;
  }
View Full Code Here

    }
    CollectionItem decorName = (CollectionItem)_collectionItemMap.get(name);
    if(decorName != null){
      return decorName;
    }else{
      throw new UiException("Cannot find associated CollectionItem:"+comp);
    }   
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.UiException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.