Package org.zkoss.zss.ui.event

Examples of org.zkoss.zss.ui.event.HeaderEvent


      int newsize = Integer.parseInt(data[4]);
      int id = Integer.parseInt(data[5]);
      ((SpreadsheetInCtrl)spreadsheet.getExtraCtrl()).setColumnSize(sheetId, index, newsize,id);
     
      if(Events.isListened(spreadsheet,org.zkoss.zss.ui.event.Events.ON_HEADER_SIZE,true)){
        HeaderEvent he = new HeaderEvent(org.zkoss.zss.ui.event.Events.ON_HEADER_SIZE, spreadsheet,sheet,HeaderEvent.TOP_HEADER,index,new Integer(newsize));
        Events.postEvent(he);
      }
    }else{
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
          new Object[] {"Event:"+event, this});
View Full Code Here


    if("size".equals(event)){
      int newsize = Integer.parseInt(data[4]);
      int id = Integer.parseInt(data[5]);
      ((SpreadsheetInCtrl)spreadsheet.getExtraCtrl()).setRowSize(sheetId, index, newsize,id);
      if(Events.isListened(spreadsheet,org.zkoss.zss.ui.event.Events.ON_HEADER_SIZE,true)){
        HeaderEvent he = new HeaderEvent(org.zkoss.zss.ui.event.Events.ON_HEADER_SIZE, spreadsheet,sheet,HeaderEvent.LEFT_HEADER,index,new Integer(newsize));
        Events.postEvent(he);
      }
    }else{
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
          new Object[] {"Event:"+event, this});
View Full Code Here

      int id = (Integer) data.get("id");
      boolean hidden = (Boolean) data.get("hidden");
      ((SpreadsheetInCtrl)spreadsheet.getExtraCtrl()).setColumnSize(sheetId, index, newsize,id, hidden);
     
      if (Events.isListened(spreadsheet, org.zkoss.zss.ui.event.Events.ON_HEADER_SIZE, true)){
        HeaderEvent he = new HeaderEvent(org.zkoss.zss.ui.event.Events.ON_HEADER_SIZE, spreadsheet, sheet, HeaderEvent.TOP_HEADER,index, Integer.valueOf(newsize), hidden);
        Events.postEvent(he);
      }
    }else{
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] {"Event:"+event, this});
    }
View Full Code Here

      int newsize = (Integer) data.get("newsize");
      int id = (Integer) data.get("id");
      boolean hidden = (Boolean) data.get("hidden");
      ((SpreadsheetInCtrl)spreadsheet.getExtraCtrl()).setRowSize(sheetId, index, newsize,id, hidden);
      if (Events.isListened(spreadsheet,org.zkoss.zss.ui.event.Events.ON_HEADER_SIZE, true)){
        HeaderEvent he = new HeaderEvent(org.zkoss.zss.ui.event.Events.ON_HEADER_SIZE, spreadsheet, sheet, HeaderEvent.LEFT_HEADER,index, Integer.valueOf(newsize), hidden);
        Events.postEvent(he);
      }
    } else {
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] {"Event:"+event, this});
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.ui.event.HeaderEvent

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.