当前位置: 首页>>代码示例>>Java>>正文


Java ContextParam类代码示例

本文整理汇总了Java中org.zkoss.bind.annotation.ContextParam的典型用法代码示例。如果您正苦于以下问题:Java ContextParam类的具体用法?Java ContextParam怎么用?Java ContextParam使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ContextParam类属于org.zkoss.bind.annotation包,在下文中一共展示了ContextParam类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onChanging

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@Command
@NotifyChange("comboList")
public void onChanging(
		@ContextParam(ContextType.TRIGGER_EVENT) InputEvent event)
		throws SearchLibException {
	if (selectedItem == null)
		return;
	String[] resultArray = new String[0];
	AbstractResultSearch<?> result = selectedItem.search(event.getValue(),
			selectedItem.getRows());
	if (result != null) {
		if (result.getDocumentCount() > 0) {
			resultArray = new String[result.getDocumentCount()];
			int i = 0;
			for (ResultDocument resDoc : result) {
				resultArray[i++] = resDoc
						.getValueContent(
								AutoCompletionItem.autoCompletionSchemaFieldTerm,
								0);
			}
		}
	}
	comboList = new ListModelArray<String>(resultArray);
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:25,代码来源:AutoCompletionComposer.java

示例2: afterCompose

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    Selectors.wireComponents(view, this, false);
    Gridster gridster = new Gridster();
    gridster.setParent(wrapper);
    init(gridster);
}
 
开发者ID:connollyst,项目名称:zkgridster,代码行数:8,代码来源:JavaDemoViewModel.java

示例3: init

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@Init
public void init(@ContextParam(ContextType.VIEW) Component view, @ExecutionArgParam("cost") Cost cost) {
	Selectors.wireComponents(view, this, false);
	this.cost = cost;
	if (cost == null) {
		Executions.sendRedirect("login.zul");
	}
	activumDao = (ActivumDao) SpringUtil.getBean("activumDao");
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:10,代码来源:ModelWindowVM.java

示例4: init

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@Init
public void init(@ContextParam(ContextType.VIEW) Component view, @ExecutionArgParam("bookValue") BookValue bookValue) {
	Selectors.wireComponents(view, this, false);
	this.bookValue = bookValue;
	this.yearsList = DateHelper.getLatestSevenYears();
	this.selectedYear = yearsList.get(0);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:8,代码来源:ModelWindowVM.java

示例5: init

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@Init
public void init(@ContextParam(ContextType.VIEW) Component view, @ExecutionArgParam("project") Project project) {
	Selectors.wireComponents(view, this, false);
	this.project = project;
	setSelectedVatType(project.getVatType().name());
	customerDao = (CustomerDao) SpringUtil.getBean("customerDao");
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:8,代码来源:EditProjectVM.java

示例6: init

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@Init
public void init(@ContextParam(ContextType.VIEW) Component view, @ExecutionArgParam("customer") Customer customer) throws IOException {
	Selectors.wireComponents(view, this, false);
	this.customer = customer;
	if (customer == null) {
		Executions.sendRedirect("login.zul");
	}
	environment = SpringUtil.getApplicationContext().getEnvironment();
	postalCodeCheckerKey = environment.getProperty("postalcode.checker.key");
	postalCodeCheckerSecret = environment.getProperty("postalcode.checker.secret");
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:12,代码来源:EditCustomerVM.java

示例7: afterCompose

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view){
	Selectors.wireComponents(view, this, false);
	//Se agrega referencia del tb_tabbox contenedor de la app
	Sessions.getCurrent().setAttribute("tb_tabboxCtl", tb_tabbox);
	Sessions.getCurrent().setAttribute("textboxUsuario", nombreUsuario);
}
 
开发者ID:zerstoren1234567,项目名称:PruebaDesarrollo,代码行数:8,代码来源:PrincipalCtl.java

示例8: afterCompose

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@Override
@AfterCompose
public void afterCompose(
		@ContextParam(ContextType.COMPONENT) Component component,
		@ContextParam(ContextType.VIEW) Component view) {
	super.afterCompose(component, view);
	Selectors.wireComponents(view, this, false);
	try {
		selectedTabIndex = isInstanceValid() ? 0 : 5;
	} catch (SearchLibException e) {
		Logging.warn(e);
	}
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:14,代码来源:RuntimeController.java

示例9: afterCompose

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
/**
 * Это нужно чтоб делать include во view и потом связывать @Wire("#incClientDashboard #incChangePriorityDialog #changePriorityDlg") This is necessary to do
 * include in the view and then bind
 */
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    QLog.l().logQUser().debug("Loding page: afterCompose");
    Selectors.wireComponents(view, this, false);
}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:10,代码来源:Form.java

示例10: afterCompose

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
/**
 * Это нужно чтоб делать include во view и потом связывать @Wire("#incClientDashboard
 * #incChangePriorityDialog #changePriorityDlg")
 */
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    String office_id = Executions.getCurrent().getParameter("office_id");
    Sessions.getCurrent().setAttribute("office_id", office_id);
    /*
     <!--div class="lineDivOdd" width="100%" height="14%" >
     <vbox id="str1a" width="100%" height="100%" pack="center" align="center">  </vbox>
     </div>
     */
    Selectors.wireComponents(view, this, false);
    final int he = ((100 - 16) / getLinesCount());
    final int lhe = 100 - 16 - he * (getLinesCount() - 1);
    for (int i = 1; i <= getLinesCount(); i++) {

        final Div da = new Div();
        da.setClass("lineDiv" + (i % 2 == 1 ? "Odd" : ""));
        da.setWidth("100%");
        da.setHeight((i == getLinesCount() ? lhe : he) + "%");
        final Vbox va = new Vbox();
        va.setId("str" + i + "a");
        va.setWidth("100%");
        va.setHeight("100%");
        va.setPack("center");
        va.setAlign("center");
        da.appendChild(va);
        left.appendChild(da);

        final Div db = new Div();
        db.setClass("lineDiv" + (i % 2 == 1 ? "Odd" : ""));
        db.setWidth("100%");
        db.setHeight((i == getLinesCount() ? lhe : he) + "%");
        final Vbox vb = new Vbox();
        vb.setId("str" + i + "b");
        vb.setWidth("100%");
        vb.setHeight("100%");
        vb.setPack("center");
        vb.setAlign("center");
        db.appendChild(vb);
        right.appendChild(db);

        lines.put(i, new Str(va, vb));
    }

    Selectors.wireComponents(view, this, false);
}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:50,代码来源:QBoard.java

示例11: afterCompose

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    Selectors.wireComponents(view, this, false);
    init(gridster);
}
 
开发者ID:connollyst,项目名称:zkgridster,代码行数:6,代码来源:DemoViewModel.java

示例12: afterCompose

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    Selectors.wireComponents(view, this, false);
}
 
开发者ID:connollyst,项目名称:zkgooglecharts,代码行数:5,代码来源:DemoComposer.java

示例13: initSetup

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@AfterCompose
public void initSetup(@ContextParam(ContextType.VIEW) Component view) {
	securityService = (SecurityService) SpringUtil.getBean("securityService");
	vatDeclarationDao = (VatDeclarationDao) SpringUtil.getBean("vatDeclarationDao");
	auditLogger = (AuditLogger) SpringUtil.getBean("auditLogger");
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:7,代码来源:LoginModel.java

示例14: init

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@Init
public void init(@ContextParam(ContextType.VIEW) Component view, @ExecutionArgParam("activum") Activum activum) {
	Selectors.wireComponents(view, this, false);
	this.activum = activum;
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:6,代码来源:EditActivumVM.java

示例15: afterCompose

import org.zkoss.bind.annotation.ContextParam; //导入依赖的package包/类
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
	Selectors.wireComponents(view, this, false);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:5,代码来源:XbrlVM.java


注:本文中的org.zkoss.bind.annotation.ContextParam类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。