Package org.zkoss.zss.ui.impl

Examples of org.zkoss.zss.ui.impl.CellVisitor


 
  protected void setVerticalAlign(final short alignment, Rect selection) {
    Worksheet sheet = _spreadsheet.getSelectedSheet();
    if (sheet != null && isValidSelection(selection)) {
      if (!sheet.getProtect()) {
        Utils.visitCells(sheet, selection, new CellVisitor(){
          @Override
          public void handle(CellVisitorContext context) {
            final short srcAlign = context.getVerticalAlignment();

            if (srcAlign != alignment) {
View Full Code Here


 
  protected void setHorizontalAlign(final short alignment, Rect selection) {
    Worksheet sheet = _spreadsheet.getSelectedSheet();
    if (sheet != null && isValidSelection(selection)) {
      if (!sheet.getProtect()) {
        Utils.visitCells(sheet, selection, new CellVisitor(){
          @Override
          public void handle(CellVisitorContext context) {
            final short srcAlign = context.getAlignment();

            if (srcAlign != alignment) {
View Full Code Here

    resetFont();
  }
 

  public void setVerticalAlignment(final int alignment) {
    Utils.visitCells(spreadsheet.getSelectedSheet(), SheetHelper.getSpreadsheetMaxSelection(spreadsheet), new CellVisitor(){
      @Override
      public void handle(CellVisitorContext context) {
        final short srcAlign = context.getVerticalAlignment();

        if (srcAlign != alignment) {
View Full Code Here

  }

  public static void clearContent(Spreadsheet spreadsheet, Rect rect) {
    Utils.visitCells(spreadsheet.getSelectedSheet(),
        rect,
        new CellVisitor() {
          @Override
          public void handle(CellVisitorContext context) {
            Cell cell = context.getCell();
            if (cell != null) {
              context.getRange().setEditText(null);
View Full Code Here

TOP

Related Classes of org.zkoss.zss.ui.impl.CellVisitor

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.