Package org.zkoss.zss.app.zul.ctrl

Examples of org.zkoss.zss.app.zul.ctrl.StyleModification


    Components.addForwards(this, this, '$');
  }
 
  public void onFontFamilySelect(ForwardEvent event) {
    final String fontFamily = (String)event.getData();
    getDesktopCellStyleContext().modifyStyle(new StyleModification() {
      public void modify(org.zkoss.zss.app.zul.ctrl.CellStyle style,
          CellStyleContextEvent candidteEvt) {
        style.setFontFamily(fontFamily);
      }
    });
View Full Code Here


  }
 
  public void onChange$backgroundColorMenu(ForwardEvent event) {
    InputEvent evt = (InputEvent)event.getOrigin();
    final String color = (String)evt.getValue();
    getDesktopCellStyleContext().modifyStyle(new StyleModification() {
      public void modify(org.zkoss.zss.app.zul.ctrl.CellStyle style,
          CellStyleContextEvent candidteEvt) {
        style.setCellColor(color);
      }
    });
View Full Code Here

  }
 
  public void onAlignHorizontalClick(ForwardEvent event) {
    final String alignStr = (String) event.getData();

    getDesktopCellStyleContext().modifyStyle(new StyleModification() {
      public void modify(org.zkoss.zss.app.zul.ctrl.CellStyle style,
          CellStyleContextEvent candidteEvt) {
        short align = CellStyle.ALIGN_GENERAL;
        if (alignStr.equals("left")) {
          align = CellStyle.ALIGN_LEFT;
View Full Code Here

TOP

Related Classes of org.zkoss.zss.app.zul.ctrl.StyleModification

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.