本文整理汇总了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);
}
示例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");
}
示例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);
}
示例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");
}
示例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");
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
示例10: afterCompose
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
Selectors.wireComponents(view, this, false);
init(gridster);
}
示例11: afterCompose
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
Selectors.wireComponents(view, this, false);
}
示例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");
}
示例13: init
@Init
public void init(@ContextParam(ContextType.VIEW) Component view, @ExecutionArgParam("activum") Activum activum) {
Selectors.wireComponents(view, this, false);
this.activum = activum;
}
示例14: afterCompose
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
Selectors.wireComponents(view, this, false);
}
示例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);
}