Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.Component


   */
 
  @SuppressWarnings("unchecked")
  public void addForward(Method md, Annotation a, Component comp) {
    String mdname = md.getName();
    Component xcomp = comp;
    String annotationValue = ((Events) a).value();
    List<String> annotationValueTokens = (List<String>) CollectionsX.parse(
        new ArrayList<String>(), annotationValue, ',');
    for (String annotationValueToken : annotationValueTokens) {
      String srccompid = annotationValueToken.substring(0,
          annotationValueToken.indexOf('.'));
      String srcevt = annotationValueToken.substring(annotationValueToken
          .indexOf('.') + 1, annotationValueToken.length());

      // TODO: get component instance from bean manager
      // try EL resolver or check any api/spi interface
      Object srccomp = xcomp.getAttributeOrFellow(srccompid, true);
      if (srccomp == null) {
        Page page = xcomp.getPage();
        if (page != null)
          srccomp = page.getXelVariable(null, null, srccompid, true);
      }
      if (srccomp == null || !(srccomp instanceof Component)) {
        log.debug("Cannot find the associated component to forward event: "
View Full Code Here


    super(evtnm, flags);
  }

  //-- super --//
  protected void process(AuRequest request) {
    final Component comp = request.getComponent();
    if (comp == null)
      throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
    final String[] data = request.getData();
   
    String type = data[1];
View Full Code Here

    super(evtnm, flags);
  }

  //-- super --//
  protected void process(AuRequest request) {
    final Component comp = request.getComponent();
    if (comp == null)
      throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
    final String[] data = request.getData();
    if (data == null || data.length != 5)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
View Full Code Here

    super(evtnm, flags);
  }

  //-- super --//
  protected void process(AuRequest request) {
    final Component comp = request.getComponent();
    if (comp == null)
      throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
    final String[] data = request.getData();
    if (data == null || data.length != 6)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
View Full Code Here

    super(evtnm, flags);
  }

  //-- super --//
  protected void process(AuRequest request) {
    final Component comp = request.getComponent();
    if (comp == null)
      throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
    final String[] data = request.getData();
    if (data == null || data.length != 5)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
View Full Code Here

    super(evtnm, flags);
  }

  //-- super --//
  protected void process(AuRequest request) {
    final Component comp = request.getComponent();
    if (comp == null)
      throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
    final String[] data = request.getData();
    if (data == null || data.length != 3)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
View Full Code Here

    super(evtnm, flags);
  }

  //-- super --//
  protected void process(AuRequest request) {
    final Component comp = request.getComponent();
    if (comp == null)
      throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
    final String[] data = request.getData();
    if (data == null || data.length != 10)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
View Full Code Here

    super(evtnm, flags);
  }

  //-- super --//
  protected void process(AuRequest request) {
    final Component comp = request.getComponent();
    if (comp == null)
      throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
    final String[] data = request.getData();
    if (data == null || data.length != 9)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
View Full Code Here

   
  }
 
  //-- super --//
  protected void process(AuRequest request) {
    final Component comp = request.getComponent();
    if (comp == null)
      throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
    final String[] data = request.getData();
    if (data == null || data.length != 20)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
View Full Code Here

    super(evtnm, flags);
  }

  //-- super --//
  protected void process(AuRequest request) {
    final Component comp = request.getComponent();
    if (comp == null)
      throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
    final String[] data = request.getData();
    if (data == null || data.length != 17)
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
View Full Code Here

TOP

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

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.