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


Java ContextType.VIEW属性代码示例

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


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

示例1: afterCompose

@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,代码行数:7,代码来源:JavaDemoViewModel.java

示例2: init

@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,代码行数:9,代码来源:ModelWindowVM.java

示例3: init

@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,代码行数:7,代码来源:ModelWindowVM.java

示例4: init

@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,代码行数:7,代码来源:EditProjectVM.java

示例5: init

@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,代码行数:11,代码来源:EditCustomerVM.java

示例6: afterCompose

@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,代码行数:7,代码来源:PrincipalCtl.java

示例7: afterCompose

@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,代码行数:13,代码来源:RuntimeController.java

示例8: afterCompose

/**
 * Это нужно чтоб делать 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,代码行数:9,代码来源:Form.java

示例9: afterCompose

/**
 * Это нужно чтоб делать 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,代码行数:49,代码来源:QBoard.java

示例10: afterCompose

@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    Selectors.wireComponents(view, this, false);
    init(gridster);
}
 
开发者ID:connollyst,项目名称:zkgridster,代码行数:5,代码来源:DemoViewModel.java

示例11: afterCompose

@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
    Selectors.wireComponents(view, this, false);
}
 
开发者ID:connollyst,项目名称:zkgooglecharts,代码行数:4,代码来源:DemoComposer.java

示例12: initSetup

@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,代码行数:6,代码来源:LoginModel.java

示例13: init

@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,代码行数:5,代码来源:EditActivumVM.java

示例14: afterCompose

@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
	Selectors.wireComponents(view, this, false);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:4,代码来源:XbrlVM.java

示例15: init

@Init
public void init(@ContextParam(ContextType.VIEW) Component view, @ExecutionArgParam("customers") List<Customer> customers) {
	Selectors.wireComponents(view, this, false);
	this.customersModel = new ListModelList<>(customers);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:5,代码来源:SelectCustomerVM.java


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