Java 类ims.admin.vo.enums.TopButtonSelectionType 实例源码

项目:AvoinApotti    文件:Logic.java   
private void selectAndLoadType()
{
    if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.PREDEFINEDBUTTON)
    {
        form.lyrSelection().showtabPredefinedButtons();
        loadPredefinedButtons();            

        if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() != null)
        {
            form.lyrSelection().tabPredefinedButtons().chklistPredefinedButtons().setMaxCheckedItems(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount());
            if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() == 1)
                form.lblNote().setValue("NOTE: Only one predefined button can be selected.");
            else
                form.lblNote().setValue("NOTE: A maximum of " + form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() + " predefined buttons can be selected.");
        }
    }
    else if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.FORM)
    {
        form.lyrSelection().showtabForms();
        loadAvailableForms();

        if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() != null)
        {
            form.lyrSelection().tabForms().chkAvailableForms().setMaxCheckedItems(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount());
            if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() == 1)
                form.lblNote().setValue("NOTE: Only one form can be selected.");
            else
                form.lblNote().setValue("NOTE: A maximum of " + form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() + " forms can be selected.");
        }
    }       
    else if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.URL)
    {
        form.lyrSelection().showtabUrl();
        form.lyrSelection().tabUrl().txtUrlName().setFocus();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void selectPredefinedButton()
{       
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.PREDEFINEDBUTTON);
    form.getGlobalContext().Admin.setTopButtonExcludedButtons(getAlreadySelectedButtons());

    if(form.treItems().getSelectedNode() != null && form.treItems().getSelectedNode().getValue() != null && form.treItems().getSelectedNode().getValue().equals(BUTTONS_NODE_TAG))
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(getMaxNoOfTopItemsThatCanBeAdded());
    else
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(null);

    openSelection();
}
项目:AvoinApotti    文件:Logic.java   
private void selectForm()
{   
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.FORM);

    if(form.treItems().getSelectedNode() != null && form.treItems().getSelectedNode().getValue() != null && form.treItems().getSelectedNode().getValue().equals(BUTTONS_NODE_TAG))
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(getMaxNoOfTopItemsThatCanBeAdded());
    else
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(null);

    openSelection();
}
项目:openMAXIMS    文件:Logic.java   
private void selectAndLoadType()
{
    if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.PREDEFINEDBUTTON)
    {
        form.lyrSelection().showtabPredefinedButtons();
        loadPredefinedButtons();            

        if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() != null)
        {
            form.lyrSelection().tabPredefinedButtons().chklistPredefinedButtons().setMaxCheckedItems(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount());
            if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() == 1)
                form.lblNote().setValue("NOTE: Only one predefined button can be selected.");
            else
                form.lblNote().setValue("NOTE: A maximum of " + form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() + " predefined buttons can be selected.");
        }
    }
    else if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.FORM)
    {
        form.lyrSelection().showtabForms();
        loadAvailableForms();

        if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() != null)
        {
            form.lyrSelection().tabForms().chkAvailableForms().setMaxCheckedItems(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount());
            if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() == 1)
                form.lblNote().setValue("NOTE: Only one form can be selected.");
            else
                form.lblNote().setValue("NOTE: A maximum of " + form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() + " forms can be selected.");
        }
    }       
    else if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.URL)
    {
        form.lyrSelection().showtabUrl();
        form.lyrSelection().tabUrl().txtUrlName().setFocus();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void selectPredefinedButton()
{       
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.PREDEFINEDBUTTON);
    form.getGlobalContext().Admin.setTopButtonExcludedButtons(getAlreadySelectedButtons());

    if(form.treItems().getSelectedNode() != null && form.treItems().getSelectedNode().getValue() != null && form.treItems().getSelectedNode().getValue().equals(BUTTONS_NODE_TAG))
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(getMaxNoOfTopItemsThatCanBeAdded());
    else
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(null);

    openSelection();
}
项目:openMAXIMS    文件:Logic.java   
private void selectForm()
{   
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.FORM);

    if(form.treItems().getSelectedNode() != null && form.treItems().getSelectedNode().getValue() != null && form.treItems().getSelectedNode().getValue().equals(BUTTONS_NODE_TAG))
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(getMaxNoOfTopItemsThatCanBeAdded());
    else
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(null);

    openSelection();
}
项目:openMAXIMS    文件:Logic.java   
private void selectAndLoadType()
{
    if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.PREDEFINEDBUTTON)
    {
        form.lyrSelection().showtabPredefinedButtons();
        loadPredefinedButtons();            

        if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() != null)
        {
            form.lyrSelection().tabPredefinedButtons().chklistPredefinedButtons().setMaxCheckedItems(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount());
            if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() == 1)
                form.lblNote().setValue("NOTE: Only one predefined button can be selected.");
            else
                form.lblNote().setValue("NOTE: A maximum of " + form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() + " predefined buttons can be selected.");
        }
    }
    else if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.FORM)
    {
        form.lyrSelection().showtabForms();
        loadAvailableForms();

        if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() != null)
        {
            form.lyrSelection().tabForms().chkAvailableForms().setMaxCheckedItems(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount());
            if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() == 1)
                form.lblNote().setValue("NOTE: Only one form can be selected.");
            else
                form.lblNote().setValue("NOTE: A maximum of " + form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() + " forms can be selected.");
        }
    }       
    else if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.URL)
    {
        form.lyrSelection().showtabUrl();
        form.lyrSelection().tabUrl().txtUrlName().setFocus();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void selectPredefinedButton()
{       
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.PREDEFINEDBUTTON);
    form.getGlobalContext().Admin.setTopButtonExcludedButtons(getAlreadySelectedButtons());

    if(form.treItems().getSelectedNode() != null && form.treItems().getSelectedNode().getValue() != null && form.treItems().getSelectedNode().getValue().equals(BUTTONS_NODE_TAG))
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(getMaxNoOfTopItemsThatCanBeAdded());
    else
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(null);

    openSelection();
}
项目:openMAXIMS    文件:Logic.java   
private void selectForm()
{   
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.FORM);

    if(form.treItems().getSelectedNode() != null && form.treItems().getSelectedNode().getValue() != null && form.treItems().getSelectedNode().getValue().equals(BUTTONS_NODE_TAG))
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(getMaxNoOfTopItemsThatCanBeAdded());
    else
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(null);

    openSelection();
}
项目:openmaxims-linux    文件:Logic.java   
private void selectAndLoadType()
{
    if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.PREDEFINEDBUTTON)
    {
        form.lyrSelection().showtabPredefinedButtons();
        loadPredefinedButtons();            

        if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() != null)
        {
            form.lyrSelection().tabPredefinedButtons().chklistPredefinedButtons().setMaxCheckedItems(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount());
            if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() == 1)
                form.lblNote().setValue("NOTE: Only one predefined button can be selected.");
            else
                form.lblNote().setValue("NOTE: A maximum of " + form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() + " predefined buttons can be selected.");
        }
    }
    else if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.FORM)
    {
        form.lyrSelection().showtabForms();
        loadAvailableForms();

        if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() != null)
        {
            form.lyrSelection().tabForms().chkAvailableForms().setMaxCheckedItems(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount());
            if(form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() == 1)
                form.lblNote().setValue("NOTE: Only one form can be selected.");
            else
                form.lblNote().setValue("NOTE: A maximum of " + form.getGlobalContext().Admin.getTopButtonMaxSelectionCount() + " forms can be selected.");
        }
    }       
    else if(form.getGlobalContext().Admin.getTopButtonSelectionType() == TopButtonSelectionType.URL)
    {
        form.lyrSelection().showtabUrl();
        form.lyrSelection().tabUrl().txtUrlName().setFocus();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void selectPredefinedButton()
{       
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.PREDEFINEDBUTTON);
    form.getGlobalContext().Admin.setTopButtonExcludedButtons(getAlreadySelectedButtons());

    if(form.treItems().getSelectedNode() != null && form.treItems().getSelectedNode().getValue() != null && form.treItems().getSelectedNode().getValue().equals(BUTTONS_NODE_TAG))
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(getMaxNoOfTopItemsThatCanBeAdded());
    else
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(null);

    openSelection();
}
项目:openmaxims-linux    文件:Logic.java   
private void selectForm()
{   
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.FORM);

    if(form.treItems().getSelectedNode() != null && form.treItems().getSelectedNode().getValue() != null && form.treItems().getSelectedNode().getValue().equals(BUTTONS_NODE_TAG))
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(getMaxNoOfTopItemsThatCanBeAdded());
    else
        form.getGlobalContext().Admin.setTopButtonMaxSelectionCount(null);

    openSelection();
}
项目:AvoinApotti    文件:Logic.java   
private void selectUrl()
{       
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.URL);
    openSelection();
}
项目:openMAXIMS    文件:Logic.java   
private void selectUrl()
{       
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.URL);
    openSelection();
}
项目:openMAXIMS    文件:Logic.java   
private void selectUrl()
{       
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.URL);
    openSelection();
}
项目:openmaxims-linux    文件:Logic.java   
private void selectUrl()
{       
    form.getGlobalContext().Admin.setTopButtonSelectionType(TopButtonSelectionType.URL);
    openSelection();
}