/** * Returns date range from picker. * * @return The date range. */ protected DateRange getDateRange() { return dateRangePicker == null ? null : dateRangePicker.getSelectedRange(); }
/** * Prompts user for input, returning the response. * * @param prompt Text prompt. * @param responses Valid responses. * @return Selected response. */ private Response getResponse(String prompt, Response... responses) { return PromptDialog.show(prompt, null, responses); }
public void setColor(String color) { this.color = color; ZKUtil.updateStyle(lblCurrentTime, "color", color); }
/** * Display the location selection dialog. */ static public void execute() { PopupDialog.popup(Constants.RESOURCE_PREFIX + "locationSelection.zul"); }
public void onTest() throws Exception { PopupDialog popup = new PopupDialog(null, "Test Popup"); setSizable(false); ZKUtil.loadZulPage(ZKUtil.getResourcePath(PopupTest.class) + "testPopup2.zul", popup); popup.addForward("onTest", this, null); popup.show(); } }
public void onDateChange(Event event) { event = ZKUtil.getEventOrigin(event); }
/** * Called when a patient context change has been requested. * * @param silent = If true, user interaction is not permitted. */ @Override public String pending(boolean silent) { if (modified && !warned) { if (silent || !PromptDialog.confirm(TX_PROMPT)) { return "Vital entry in progress."; } } return null; }
@Override protected void autowireColumns() { RowComparator.autowireColumnComparators(listBox); }
/** * Initialize the date ranges to be used for filtering lists. */ private void initDateRanges() { drpDateRange.loadChoices(dateRanges); defaultDateRange = drpDateRange.getSelectedRange(); }
@Override protected void activate(boolean activate) { rngDateRange.setVisible(activate); }
private void selectItem(Combobox cbo, String label) { if (label != null) { ListUtil.selectComboboxItem(cbo, label); } }
public void setMultiple(boolean multiple) { listModel.setMultiple(multiple); }
public boolean isMultiple() { return listModel.isMultiple(); }
/** * Submits a data fetch request in the background. */ @Override protected void fetchData() { listModel.clear(); super.fetchData(); }
/** * Displays the scheduling controller modally. */ public static void show() { PopupDialog.popup(DIALOG, true, false); }
public void onDataChange(Event event) { event = ZKUtil.getEventOrigin(event); }
@Override protected void autowireColumns() { RowComparator.autowireColumnComparators(grid); }
/** * Display the location selection dialog. */ static public void execute() { PopupDialog.popup(Constants.RESOURCE_PREFIX + "locationSelection.zul"); }
/** * Create an amodal instance of the viewer dialog. * * @param actionListener Listener to respond to viewer action events. * @return The controller associated with the viewer dialog. */ protected static ViewerController create(EventListener<ActionEvent> actionListener) { Window dlg = PopupDialog.popup(DIALOG, false, false, false); ViewerController infoOnlyController = (ViewerController) FrameworkController.getController(dlg); infoOnlyController.actionListener = actionListener; return infoOnlyController; }