/** * Wire variables and events. * * @throws Exception Unspecified exception. */ public void onCreate() throws Exception { log.trace("onCreate"); ZKUtil.wireController(this, this); init(); }
private void init(List<ESigItem> items) { ZKUtil.wireController(this, this); this.items = items; for (ESigItem item : items) { addItem(item); } updateControls(); }
public void onCreate() { ZKUtil.wireController(this, this); lstAllProviders.setItemRenderer(providerRenderer); lstAllProviders.setModel(modelProviders); lstEncounterProviders.setItemRenderer(providerRenderer); }
/** * Create the dialog. * * @param parent The parent component. * @param dataObject The data object. * @param title The dialog title. */ public DrillDownDisplay(Component parent, Object dataObject, String title) { super(parent, title); setDataObject(dataObject); setWidth("600px"); try { Executions.createComponents(ZKUtil.loadCachedPageDefinition(Constants.RESOURCE_PREFIX + "drillDownDisplay.zul"), this, null); ZKUtil.wireController(this); adjustGrid(); } catch (Exception e) { log.error("Error creating drilldown display dialog.", e); } }
@Test public void wireArgumentMapTest() { Map<Object, Object> map = new HashMap<Object, Object>(); map.put("test1Variable", 123); map.put("test2Variable", "testing"); ArgumentMapTest controller = new ArgumentMapTest() { public int test1Variable; public String test2; @Override public void setTest2Variable(String value) { test2 = value; } @Override public void doAssertions() { assertEquals(123, test1Variable); assertEquals("testing", test2); } }; ZKUtil.wireController(map, controller); controller.doAssertions(); } }
/** * Initialize the dialog, adding the signature items to the list. * * @param esigService The electronic signature service. * @param items List of items to add. */ private void init(IESigService esigService, Iterable<ESigItem> items) { this.esigService = esigService; ZKUtil.wireController(this, this); for (ESigItem item : items) { addItem(item); } updateControls(); if (grid.getRowCount() > 20) { grid.setHeight("600px"); } FrameworkUtil.getAppFramework().registerObject(this); }
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); ZKUtil.wireController(ZKUtil.loadZulPage(PARTICIPANT_SELECTOR, comp), this); broker = VistAUtil.getBrokerSession(); lstAllParticipants.setItemRenderer(new ParticipantRenderer()); lstAllParticipants.setModel(allParticipantsModel); lstEncounterParticipants.setItemRenderer(encounterParticipantRenderer); lstEncounterParticipants.setModel(encounterParticipantsModel); }
log.trace("onCreate"); FrameworkUtil.getAppFramework().registerObject(this); ZKUtil.wireController(this, this); lstInpatient.setItemRenderer(encounterRenderer); lstOutpatient.setItemRenderer(encounterRenderer);