Package org.zkoss.zk.au.out

Examples of org.zkoss.zk.au.out.AuInvoke


  }

  /** Invokes the function of the applet running at the client.
   */
  public void invoke(String function) {
    response(new AuInvoke(this, "invoke", function));
  }
View Full Code Here


  }
  /** Invokes the function of the applet running at the client with
   * one argument.
   */
  public void invoke(String function, String argument) {
    response(new AuInvoke(this, "invoke", function, argument));
  }
View Full Code Here

    final int len = arguments != null ? arguments.length: 0;
    final String[] args = new String[len + 1];
    args[0] = function;
    for (int j = 0; j < len; ++j)
      args[j + 1] = arguments[j];
    response(new AuInvoke(this, "invoke", args));
  }
View Full Code Here

  }

  /** Sets the value of the specified filed.
   */
  public void setField(String field, String value) {
    response(new AuInvoke(this, "setField", field, value));
  }
View Full Code Here

*/ 
  /**
   * Remove editor's focus on specified name
   */
  public void removeEditorFocus(String id){
    response("removeEditorFocus" + _focusId.next(), new AuInvoke((Component)this, "removeEditorFocus", id));
    _focuses.remove(id);
  }
View Full Code Here

  /**
   *  Add and move other editor's focus
   */
  public void moveEditorFocus(String id, String name, String color, int row ,int col){
    if (_focus != null && !_focus.id.equals(id)) {
      response("moveEditorFocus" + _focusId.next(), new AuInvoke((Component)this, "moveEditorFocus", new String[]{id, name, color,""+row,""+col}));
      _focuses.put(id, new Focus(id, name, color, row, col, null));
    }
  }
View Full Code Here

    row=col=sL=sT=sR=sB=hL=hT=hR=hB=-1;
    Position pos = this.getCellFocus();
    if(pos!=null){
      row=pos.getRow();
      col=pos.getColumn();
      response("updateSelfFocus", new AuInvoke((Component)this,"updateSelfFocus", new String[]{""+row,""+col}));
    }
    Rect rect = this.getSelection();
    if(rect!=null){
      sL=rect.getLeft();
      sT=rect.getTop();
      sR=rect.getRight();
      sB=rect.getBottom()
      response("updateSelfSelection", new AuInvoke((Component)this,"updateSelfSelection", new String[]{""+sL,""+sT,""+sR,""+sB}));
    }
   
    rect=this.getHighlight();
    if(rect!=null){
      hL=rect.getLeft();
      hT=rect.getTop();
      hR=rect.getRight();
      hB=rect.getBottom();
     
      response("updateSelfHightlight", new AuInvoke((Component)this,"updateSelfHighlight", new String[]{""+hL,""+hT,""+hR,""+hB}));
     
    }
  }
View Full Code Here

    private IZoomLevelChangedListener adjustTimeTrackerSizeListener() {
        return new IZoomLevelChangedListener() {

            @Override
            public void zoomLevelChanged(ZoomLevel detailLevel) {
                response(null, new AuInvoke(QueueListComponent.this,
                        "adjustTimeTrackerSize"));
                response(null, new AuInvoke(QueueListComponent.this,
                        "adjustResourceLoadRows"));
            }
        };
    }
View Full Code Here

    private TimeTrackerComponent timeTrackerForLimitingResourcesPanel(
            TimeTracker timeTracker) {
        return new TimeTrackerComponent(timeTracker) {
            @Override
            protected void scrollHorizontalPercentage(int daysDisplacement) {
                response("", new AuInvoke(queueListComponent,
                        "scroll_horizontal", daysDisplacement + ""));
                moveCurrentPositionScroll();
            }

            @Override
            protected void moveCurrentPositionScroll() {
                // get the previous data.
                LocalDate previousStart = getPreviousStart();

                // get the current data
                int diffDays = getTimeTrackerComponent().getDiffDays(
                        previousStart);
                double pixelPerDay = getTimeTrackerComponent().getPixelPerDay();

                response("move_scroll", new AuInvoke(queueListComponent,
                        "move_scroll", "" + diffDays, "" + pixelPerDay));
            }

            @Override
            protected void updateCurrentDayScroll() {
                System.out.println("updateCurrentDayScroll");
                double previousPixelPerDay = getTimeTracker().getMapper()
                        .getPixelsPerDay().doubleValue();

                response("update_day_scroll", new AuInvoke(queueListComponent,
                        "update_day_scroll", "" + previousPixelPerDay));

            }
        };
    }
View Full Code Here

    @SuppressWarnings("serial")
    private TimeTrackerComponent createTimeTrackerComponent() {
        return new TimeTrackerComponent(timeTracker) {
            @Override
            protected void scrollHorizontalPercentage(int pixelsDisplacement) {
                response("", new AuInvoke(queueListComponent,
                        "adjustScrollHorizontalPosition", pixelsDisplacement
                                + ""));
            }

            @Override
View Full Code Here

TOP

Related Classes of org.zkoss.zk.au.out.AuInvoke

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.