Java 类ims.core.vo.enums.ChartingEvents 实例源码

项目:AvoinApotti    文件:Logic.java   
protected void onDyngrdCellValueChanged(DynamicGridCell cell)
{
    DynamicGridCellItemCollection items = cell.getItems();

    if (items != null && items.size() > 0)
    {
        for (int i = 0; i < items.size(); i++)
        {
            DynamicGridCellItem item = items.get(i);

            if (ENABLE_CLOSE.equals(item.getIdentifier()))
            {
                if (item.isChecked())
                    form.getLocalContext().setCustomEvent(ChartingEvents.ENABLE_CLOSE);
                else
                    form.getLocalContext().setCustomEvent(ChartingEvents.DISABLE_CLOSE);

                form.fireCustomControlValueChanged();
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onDyngrdCellValueChanged(DynamicGridCell cell)
{
    DynamicGridCellItemCollection items = cell.getItems();

    if (items != null && items.size() > 0)
    {
        for (int i = 0; i < items.size(); i++)
        {
            DynamicGridCellItem item = items.get(i);

            if (ENABLE_CLOSE.equals(item.getIdentifier()))
            {
                if (item.isChecked())
                    form.getLocalContext().setCustomEvent(ChartingEvents.ENABLE_CLOSE);
                else
                    form.getLocalContext().setCustomEvent(ChartingEvents.DISABLE_CLOSE);

                form.fireCustomControlValueChanged();
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onDyngrdCellValueChanged(DynamicGridCell cell)
{
    DynamicGridCellItemCollection items = cell.getItems();

    if (items != null && items.size() > 0)
    {
        for (int i = 0; i < items.size(); i++)
        {
            DynamicGridCellItem item = items.get(i);

            if (ENABLE_CLOSE.equals(item.getIdentifier()))
            {
                if (item.isChecked())
                    form.getLocalContext().setCustomEvent(ChartingEvents.ENABLE_CLOSE);
                else
                    form.getLocalContext().setCustomEvent(ChartingEvents.DISABLE_CLOSE);

                form.fireCustomControlValueChanged();
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onDyngrdCellValueChanged(DynamicGridCell cell)
{
    DynamicGridCellItemCollection items = cell.getItems();

    if (items != null && items.size() > 0)
    {
        for (int i = 0; i < items.size(); i++)
        {
            DynamicGridCellItem item = items.get(i);

            if (ENABLE_CLOSE.equals(item.getIdentifier()))
            {
                if (item.isChecked())
                    form.getLocalContext().setCustomEvent(ChartingEvents.ENABLE_CLOSE);
                else
                    form.getLocalContext().setCustomEvent(ChartingEvents.DISABLE_CLOSE);

                form.fireCustomControlValueChanged();
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onCustomControlValueChanged() throws PresentationLogicException 
{
    if (ChartingEvents.ENABLE_CLOSE.equals(form.customControl().getCustomEvent()))
    {
        form.btnClose().setEnabled(true);
        form.customControl().clearCustomEvent();
    }
    else if (ChartingEvents.DISABLE_CLOSE.equals(form.customControl().getCustomEvent()))
    {
        form.btnClose().setEnabled(false);
        form.customControl().clearCustomEvent();
    }   

    form.imbConfigureChart().setEnabled(form.customControl().canSelectGroups().booleanValue());
}
项目:openMAXIMS    文件:Logic.java   
protected void onCustomControlValueChanged() throws PresentationLogicException 
{
    if (ChartingEvents.ENABLE_CLOSE.equals(form.customControl().getCustomEvent()))
    {
        form.btnClose().setEnabled(true);
        form.customControl().clearCustomEvent();
    }
    else if (ChartingEvents.DISABLE_CLOSE.equals(form.customControl().getCustomEvent()))
    {
        form.btnClose().setEnabled(false);
        form.customControl().clearCustomEvent();
    }   

    form.imbConfigureChart().setEnabled(form.customControl().canSelectGroups().booleanValue());
}
项目:openMAXIMS    文件:Logic.java   
protected void onCustomControlValueChanged() throws PresentationLogicException 
{
    if (ChartingEvents.ENABLE_CLOSE.equals(form.customControl().getCustomEvent()))
    {
        form.btnClose().setEnabled(true);
        form.customControl().clearCustomEvent();
    }
    else if (ChartingEvents.DISABLE_CLOSE.equals(form.customControl().getCustomEvent()))
    {
        form.btnClose().setEnabled(false);
        form.customControl().clearCustomEvent();
    }   

    form.imbConfigureChart().setEnabled(form.customControl().canSelectGroups().booleanValue());
}
项目:openmaxims-linux    文件:Logic.java   
protected void onCustomControlValueChanged() throws PresentationLogicException 
{
    if (ChartingEvents.ENABLE_CLOSE.equals(form.customControl().getCustomEvent()))
    {
        form.btnClose().setEnabled(true);
        form.customControl().clearCustomEvent();
    }
    else if (ChartingEvents.DISABLE_CLOSE.equals(form.customControl().getCustomEvent()))
    {
        form.btnClose().setEnabled(false);
        form.customControl().clearCustomEvent();
    }   

    form.imbConfigureChart().setEnabled(form.customControl().canSelectGroups().booleanValue());
}
项目:AvoinApotti    文件:Logic.java   
public ChartingEvents getCustomEvent()
{
    return form.getLocalContext().getCustomEvent();
}
项目:AvoinApotti    文件:Logic.java   
/**
* Sets the value
*/
public void setValue(IChartValueSet value)
{
    if(!validate(value))
        return;

    sortAfterGroups(value); //  WDEV-12548

    populate(value);


    if (Boolean.TRUE.equals(ConfigFlag.UI.DISPLAY_INVESTIGATION_COMMENTS_ON_CUMULATE_RESULTS.getValue()))
    {
        if (VIEW_TABULAR.equals(form.getLocalContext().getViewingStyle()))
        {
            //WDEV-15801 - starts here
            IChartValueAnalyte[] analytesComments = getAnalytesComments(value);
            IChartValueInvestigation[] investigationComments = getInvestigationComments(value);

            if ((analytesComments != null && analytesComments.length > 0) || (investigationComments != null && investigationComments.length > 0))
            {
                // Add two empty rows
                form.dyngrd().getRows().newRow();
                form.dyngrd().getRows().newRow();

                populateAnalytesComments(analytesComments);

                populateInvestigationComments(investigationComments);
            }
            //WDEV-15801 - ends here

            // Add check box for enabling the "Close" button
            if (Boolean.TRUE.equals(form.getLocalContext().getUsedInDialog()))
            {
                createCloseCombobox();
            }
        }

        form.getLocalContext().setCustomEvent(ChartingEvents.DISABLE_CLOSE);

        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
public ChartingEvents getCustomEvent()
{
    return form.getLocalContext().getCustomEvent();
}
项目:openMAXIMS    文件:Logic.java   
/**
* Sets the value
*/
public void setValue(IChartValueSet value)
{
    if(!validate(value))
        return;

    sortAfterGroups(value); //  WDEV-12548

    populate(value);


    if (Boolean.TRUE.equals(ConfigFlag.UI.DISPLAY_INVESTIGATION_COMMENTS_ON_CUMULATE_RESULTS.getValue()))
    {
        if (VIEW_TABULAR.equals(form.getLocalContext().getViewingStyle()))
        {
            //WDEV-15801 - starts here
            IChartValueAnalyte[] analytesComments = getAnalytesComments(value);
            IChartValueInvestigation[] investigationComments = getInvestigationComments(value);

            if ((analytesComments != null && analytesComments.length > 0) || (investigationComments != null && investigationComments.length > 0))
            {
                // Add two empty rows
                form.dyngrd().getRows().newRow();
                form.dyngrd().getRows().newRow();

                populateAnalytesComments(analytesComments);

                populateInvestigationComments(investigationComments);
            }
            //WDEV-15801 - ends here

            // Add check box for enabling the "Close" button
            if (Boolean.TRUE.equals(form.getLocalContext().getUsedInDialog()))
            {
                createCloseCombobox();
            }
        }

        form.getLocalContext().setCustomEvent(ChartingEvents.DISABLE_CLOSE);

        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
public ChartingEvents getCustomEvent()
{
    return form.getLocalContext().getCustomEvent();
}
项目:openMAXIMS    文件:Logic.java   
/**
* Sets the value
*/
public void setValue(IChartValueSet value)
{
    if(!validate(value))
        return;

    sortAfterGroups(value); //  WDEV-12548

    populate(value);


    if (Boolean.TRUE.equals(ConfigFlag.UI.DISPLAY_INVESTIGATION_COMMENTS_ON_CUMULATE_RESULTS.getValue()))
    {
        if (VIEW_TABULAR.equals(form.getLocalContext().getViewingStyle()))
        {
            //WDEV-15801 - starts here
            IChartValueAnalyte[] analytesComments = getAnalytesComments(value);
            IChartValueInvestigation[] investigationComments = getInvestigationComments(value);

            if ((analytesComments != null && analytesComments.length > 0) || (investigationComments != null && investigationComments.length > 0))
            {
                // Add two empty rows
                form.dyngrd().getRows().newRow();
                form.dyngrd().getRows().newRow();

                populateAnalytesComments(analytesComments);

                populateInvestigationComments(investigationComments);
            }
            //WDEV-15801 - ends here

            // Add check box for enabling the "Close" button
            if (Boolean.TRUE.equals(form.getLocalContext().getUsedInDialog()))
            {
                createCloseCombobox();
            }
        }

        form.getLocalContext().setCustomEvent(ChartingEvents.DISABLE_CLOSE);

        form.fireCustomControlValueChanged();
    }
}
项目:openmaxims-linux    文件:Logic.java   
public ChartingEvents getCustomEvent()
{
    return form.getLocalContext().getCustomEvent();
}
项目:openmaxims-linux    文件:Logic.java   
/**
* Sets the value
*/
public void setValue(IChartValueSet value)
{
    if(!validate(value))
        return;

    sortAfterGroups(value); //  WDEV-12548

    populate(value);


    if (Boolean.TRUE.equals(ConfigFlag.UI.DISPLAY_INVESTIGATION_COMMENTS_ON_CUMULATE_RESULTS.getValue()))
    {
        if (VIEW_TABULAR.equals(form.getLocalContext().getViewingStyle()))
        {
            //WDEV-15801 - starts here
            IChartValueAnalyte[] analytesComments = getAnalytesComments(value);
            IChartValueInvestigation[] investigationComments = getInvestigationComments(value);

            if ((analytesComments != null && analytesComments.length > 0) || (investigationComments != null && investigationComments.length > 0))
            {
                // Add two empty rows
                form.dyngrd().getRows().newRow();
                form.dyngrd().getRows().newRow();

                populateAnalytesComments(analytesComments);

                populateInvestigationComments(investigationComments);
            }
            //WDEV-15801 - ends here

            // Add check box for enabling the "Close" button
            if (Boolean.TRUE.equals(form.getLocalContext().getUsedInDialog()))
            {
                createCloseCombobox();
            }
        }

        form.getLocalContext().setCustomEvent(ChartingEvents.DISABLE_CLOSE);

        form.fireCustomControlValueChanged();
    }
}