partbuilder.java

来自「OLAP 的客户端代码」· Java 代码 · 共 55 行

JAVA
55
字号
/*
 * ====================================================================
 * This software is subject to the terms of the Common Public License
 * Agreement, available at the following URL:
 *   http://www.opensource.org/licenses/cpl.html .
 * Copyright (C) 2003-2004 TONBELLER AG.
 * All Rights Reserved.
 * You must accept the terms of that agreement to use this software.
 * ====================================================================
 *
 * 
 */
package com.tonbeller.jpivot.table;

import javax.servlet.http.HttpSession;

import com.tonbeller.jpivot.ui.Available;
import com.tonbeller.wcf.bookmarks.Bookmarkable;
import com.tonbeller.wcf.controller.RequestContext;

/**
 * Builds a part of the table
 * 
 * @author av
 */
public interface PartBuilder extends Bookmarkable, Available {

  /**
   * deferred ctor, called once after creation
   */
  void initialize(RequestContext context, TableComponent table) throws Exception;
  
  /**
   * destructor, called once after session timeout
   * @param session
   */
  void destroy(HttpSession session) throws Exception;

  /**
   * called before the DOM is built after the TableRenderer has been fully initialized
   */
  void startBuild(RequestContext context);

  /**
   * called after the DOM has been built.
   */
  void stopBuild();
  
  /**
   * true, if the current olapModel supports all extensions that are required
   * by this partBuilder. If false, a GUI will not show related items.
   */
  boolean isAvailable();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?