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


Java Checkbox类代码示例

本文整理汇总了Java中org.zkoss.zul.Checkbox的典型用法代码示例。如果您正苦于以下问题:Java Checkbox类的具体用法?Java Checkbox怎么用?Java Checkbox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: disableButtons

import org.zkoss.zul.Checkbox; //导入依赖的package包/类
@Command
public void disableButtons() {
    // addWindowButtons[0] = false;
    // addWindowButtons[1] = false;
    // addWindowButtons[2] = false;
    // addWindowButtons[3] = false;
    // addWindowButtons[4] = false;
    // addWindowButtons[5] = false;
    // addWindowButtons[6] = false;
    // addWindowButtons[7] = false;
    // addWindowButtons[8] = false;
    boolean[] inaccurateChecked = new boolean[] { true, true, true, true, true, false, true,
            true,
            true };
    if (((Checkbox) serveCustomerDialogWindow.getFellow("inaccurateTimeCheckBox"))
            .isChecked()) {
        setBtnsDisabled(inaccurateChecked);
    }
    else {
        setKeyRegim(KEYS_STARTED);
    }

    // setBtnsDisabled(inaccurateChecked);
    // QLog.l().logQUser().debug("\n\n\n\n DISABLE BUTTON");
    BindUtils.postNotifyChange(null, null, Form.this, "*");
}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:27,代码来源:Form.java

示例2: addServeScreen

import org.zkoss.zul.Checkbox; //导入依赖的package包/类
@Command
public void addServeScreen() {
    ((Checkbox) serveCustomerDialogWindow.getFellow("inaccurateTimeCheckBox"))
            .setChecked(false);
    serveCustomerDialogWindow.setVisible(true);
    serveCustomerDialogWindow.doModal();
}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:8,代码来源:Form.java

示例3: finish

import org.zkoss.zul.Checkbox; //导入依赖的package包/类
@Command
@NotifyChange(value = { "btnsDisabled", "customer" })
public void finish() {
    QLog.l().logQUser()
            .debug("Finish by " + user.getName() + " customer " + customer.getFullNumber());
    final CmdParams params = new CmdParams();
    params.userId = user.getUser().getId();

    params.resultId = -1L;
    params.textData = "";
    params.inAccurateFinish = ((Checkbox) serveCustomerDialogWindow
            .getFellow("inaccurateTimeCheckBox")).isChecked();

    final RpcStandInService res = (RpcStandInService) Executer.getInstance().getTasks()
            .get(Uses.TASK_FINISH_CUSTOMER).process(params, "", new byte[4]);
    // вернется кастомер и возможно он еще не домой а по списку услуг. Список определяется при старте кастомера в обработку специяльным юзером в
    // регистратуре
    if (res.getResult() != null && res.getResult().getService() != null
            && res.getResult().getState() == CustomerState.STATE_WAIT_COMPLEX_SERVICE) {
        Messagebox.show(
                l("next_service") + " \"" + res.getResult().getService().getName() + "\". " + l(
                        "customer_number") + " \"" + res.getResult().getPrefix()
                        + res.getResult()
                                .getNumber()
                        + "\"." + "\n\n" + res.getResult().getService().getDescription(),
                l("contumie_complex_service"), Messagebox.OK, Messagebox.INFORMATION);
    }

    customer.refreshPrevious();
    customer = null;

    // Set the current working service to be empty
    QUser quser = QUserList.getInstance().getById(params.userId);
    quser.setCurrentService("");

    setKeyRegim(KEYS_MAY_INVITE);
    service_list.setModel(service_list.getModel());
    refreshListServices();
    service_list.invalidate();

    BindUtils.postNotifyChange(null, null, Form.this, "*");
    serveCustomerDialogWindow.setVisible(false);

}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:45,代码来源:Form.java

示例4: addTicketScreen

import org.zkoss.zul.Checkbox; //导入依赖的package包/类
@Command
public void addTicketScreen() {

    //  Debugging
    QLog.l().logQUser().debug("==> Start: addTicketScreen");

    //  Get quick transaction check box.
    Checkbox QuickTxn = (Checkbox) addTicketDailogWindow.getFellow("QuickTxnCust");

    // Remove previous comments and categories searched
    this.refreshAddWindow();
    this.refreshChannels();

    //  You are (???) pulling an existing customer, in queue or on hold.
    if (customer != null) {
        QLog.l().logQUser()
                .debug("    --> Customer channel index not null: Set addTicket combo box. Index: "
                        + customer.getChannelsIndex());

        //  You are dealing with a reception office.
        if (getCFMSType()) {
            ((Combobox) addTicketDailogWindow.getFellow("reception_Channels_options"))
                    .setSelectedIndex(customer.getChannelsIndex() - 1);
        }

        //  Dealing with a non-reception office.
        else {
            ((Combobox) addTicketDailogWindow.getFellow("general_Channels_options"))
                    .setSelectedIndex(customer.getChannelsIndex() - 1);
        }

        //  Make sure you found the checkbox.            
        if (QuickTxn != null) {
            //  *** NOTE: Temporarily, set quicktxn to false. Set to be customer value.
            //  MUST change this to set it to the Quick trans flag of the customer 
            QuickTxn.setChecked(false);
        }
    }

    //  You are starting a new transaction.
    else {
        QLog.l().logQUser().debug("    -->  Customer of channel index is null");

        //  If no customer, set default quick txn to be false.            
        if (QuickTxn != null) {
            QuickTxn.setChecked(false);
        }
    }

    //  Debug.
    if (QuickTxn != null) {
        boolean isQuick = QuickTxn.isChecked();
        QLog.l().logQUser()
                .debug("    --> Checkbox is: " + (isQuick ? "Checked" : "Not checked"));
    }
    else {
        QLog.l().logQUser().debug("    --> Bad news!  Could not find QuickTxn checkbox.");
    }

    addTicketDailogWindow.setVisible(true);
    addTicketDailogWindow.doModal();

    //  Debugging.
    QLog.l().logQUser().debug("==> End: addTicketScreen");
}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:66,代码来源:Form.java

示例5: paramsForAddingInQueue

import org.zkoss.zul.Checkbox; //导入依赖的package包/类
public CmdParams paramsForAddingInQueue(Integer priority, Boolean isMine) {

        final CmdParams params = new CmdParams();

        //  Debug
        QLog.l().logQUser().debug("==> Start: paramsForAddingInQueue");

        params.userId = user.getUser().getId();
        params.serviceId = pickedRedirectServ.getId();
        params.resultId = -1L;
        params.priority = priority;
        params.isMine = isMine;
        if (getCFMSType()) {
            params.comments = ((Textbox) addTicketDailogWindow
                    .getFellow("reception_ticket_comments")).getText();
            params.channelsIndex = ((Combobox) addTicketDailogWindow
                    .getFellow("reception_Channels_options")).getSelectedIndex() + 1;
            params.channels = ((Combobox) addTicketDailogWindow
                    .getFellow("reception_Channels_options")).getSelectedItem().getValue()
                            .toString();
        }
        else {
            params.comments = ((Textbox) addTicketDailogWindow.getFellow("general_ticket_comments"))
                    .getText();
            params.channelsIndex = ((Combobox) addTicketDailogWindow
                    .getFellow("general_Channels_options")).getSelectedIndex() + 1;
            params.channels = ((Combobox) addTicketDailogWindow
                    .getFellow("general_Channels_options")).getSelectedItem().getValue().toString();
        }

        //  Add whether the transaction is a quick transaction or not.
        Checkbox QuickTxn = (Checkbox) addTicketDailogWindow
                .getFellow("QuickTxnCust");

        if (QuickTxn == null) {
            QLog.l().logQUser().debug("    --> Bad news.  Checkbox could not be found");
            params.custQtxn = false;
        }
        else {
            QLog.l().logQUser().debug("    --> Yea!  Checkbox is not null");
            boolean Quick = QuickTxn.isChecked();
            QLog.l().logQUser()
                    .debug("    --> Checkbox found. It is: " + (Quick ? "Checked" : "Not checked"));
            params.custQtxn = Quick;
        }

        // params.channelsIndex = ((Combobox) addTicketDailogWindow.getFellow("Channels_options")).getSelectedIndex() + 1;
        // params.channels = ((Combobox) addTicketDailogWindow.getFellow("Channels_options")).getSelectedItem().getValue().toString();
        params.welcomeTime = user.getCustomerWelcomeTime();

        //  Debug
        QLog.l().logQUser().debug("==> End: paramsForAddingInQueue");

        return params;
    }
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:56,代码来源:Form.java


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