19 package org.turro.zul.voteit;
21 import org.turro.elephant.context.Application;
22 import org.turro.elephant.context.IConstructor;
23 import org.turro.entities.Entities;
24 import org.turro.plugin.contacts.ContactList;
25 import org.zkoss.zk.ui.ext.AfterCompose;
26 import org.zkoss.zul.Div;
27 import org.zkoss.zul.Html;
33 public class VoteItCtrl extends Div implements AfterCompose {
35 private Object entity;
36 private String entityPath;
37 private boolean forbiden, forbid;
49 this.entityPath = entityPath;
53 this.forbiden = forbiden;
57 this.allowed = allowed;
71 org.turro.www.voteit.VoteItCtrl voteIt =
72 new org.turro.www.voteit.VoteItCtrl(constructor);
73 voteIt.setEntityPath(entityPath);
74 voteIt.setForbiden(forbiden);
75 voteIt.setForbid(forbid);
76 voteIt.setAllowed(allowed);
77 voteIt.setForceInternalRender(
true);
79 voteIt.renderVotes(
true);
IConstructor getConstructor()
static Application getApplication()
static IElephantEntity getController(String path)
void setEntity(Object entity)
void setForbid(boolean forbid)
void setAllowed(ContactList allowed)
void setEntityPath(String entityPath)
void setForbiden(boolean forbiden)