Package com.tensegrity.palo.gwt.core.client.models.cubeviews

Examples of com.tensegrity.palo.gwt.core.client.models.cubeviews.XPrintConfiguration


    final PrintDialog pd = new PrintDialog(view);
    pd.addButtonListener(PrintDialog.BUTTON_OK,
        new Listener<BaseEvent>() {
          public void handleEvent(BaseEvent be) {
            showWaitDialog(constants.printingView());
            final XPrintConfiguration config = pd.getPrintConfiguration();
            view.setHideEmptyCells(hideEmptyCells.isPressed());
            view.setColumnsReversed(reverseColumns.isPressed());
            view.setRowsReversed(reverseRows.isPressed());
            updateView(new Callback<Void>() {
              public void onFailure(Throwable t) {
View Full Code Here


   
    return XPrintConfiguration.FORMAT_A4;
  }
 
  public XPrintConfiguration getPrintConfiguration() {
    XPrintConfiguration config = new XPrintConfiguration();
   
    config.setPaperFormat(translateFormat(paperFormat.getValue().getValue()));
    config.setPaperOrientation(paperOrientation.getValue().getValue().equals(constants.portrait()) ? XPrintConfiguration.PORTRAIT : XPrintConfiguration.LANDSCAPE);
    config.setShowTitle(printTitle.getValue());
    config.setTitle(titleField.getValue());
    config.setShowPOV(showPOV.getValue());
    config.setShowExpansionStateIcons(showExpansionStates.getValue());   
    config.setIndent(indent.getValue());
    config.setPrintPageNumbers(printPageNumbers.getValue());
   
    paperFormatDefault = paperFormat.getValue().getValue();
    paperOrientationDefault = paperOrientation.getValue().getValue();
    showTitleDefault = printTitle.getValue();
    if (printTitle.getValue()) {
View Full Code Here

TOP

Related Classes of com.tensegrity.palo.gwt.core.client.models.cubeviews.XPrintConfiguration

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.