Java 类ims.admin.vo.lookups.ClearSpanEventLevel 实例源码

项目:AvoinApotti    文件:Logic.java   
private void initializeLevel()
{   
    form.cmbLevel().clear();                
    ClearSpanEventLevelCollection levels=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    for(int x = 0; x < levels.size(); x++)
    {
        form.cmbLevel().newRow(levels.get(x), levels.get(x).getText(), levels.get(x).getImage());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populate(ClearSpanAuditVo entry) 
{
    if(entry == null)
        return;

    GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow();
    row.setValue(entry);

    ClearSpanEventLevelCollection levs=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    try
    {
        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.INFORMATION, levs)))
            row.setcolImage(form.getImages().Admin.LogInformation);

        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.WARNING, levs)))
            row.setcolImage(form.getImages().Admin.LogWarning); 

    } catch (DomainInterfaceException e)
    {
        engine.showMessage("Cannot get the Event Levels");
        return;
    }


    row.setcolDateTime(entry.getTimeGenerated().toString());
    row.setcolLevel(entry.getEvenLevel().getText());
    row.setcolType(entry.getEventType().getText());

    String message = entry.getMessage();
    if(message.length() > 120)
        message = message.substring(0, 120) + "...";                
    row.setcolMessage(message);         

    String data = entry.getData()==null?" ": entry.getData();
    if(data.length() > 120)
        data = data.substring(0, 120) + "...";                      
    row.setcolData(data);

}
项目:openMAXIMS    文件:Logic.java   
private void initializeLevel()
{   
    form.cmbLevel().clear();                
    ClearSpanEventLevelCollection levels=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    for(int x = 0; x < levels.size(); x++)
    {
        form.cmbLevel().newRow(levels.get(x), levels.get(x).getText(), levels.get(x).getImage());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populate(ClearSpanAuditVo entry) 
{
    if(entry == null)
        return;

    GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow();
    row.setValue(entry);

    ClearSpanEventLevelCollection levs=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    try
    {
        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.INFORMATION, levs)))
            row.setcolImage(form.getImages().Admin.LogInformation);

        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.WARNING, levs)))
            row.setcolImage(form.getImages().Admin.LogWarning); 

    } catch (DomainInterfaceException e)
    {
        engine.showMessage("Cannot get the Event Levels");
        return;
    }


    row.setcolDateTime(entry.getTimeGenerated().toString());
    row.setcolLevel(entry.getEvenLevel().getText());
    row.setcolType(entry.getEventType().getText());

    String message = entry.getMessage();
    if(message.length() > 120)
        message = message.substring(0, 120) + "...";                
    row.setcolMessage(message);         

    String data = entry.getData()==null?" ": entry.getData();
    if(data.length() > 120)
        data = data.substring(0, 120) + "...";                      
    row.setcolData(data);

}
项目:openMAXIMS    文件:Logic.java   
private void initializeLevel()
{   
    form.cmbLevel().clear();                
    ClearSpanEventLevelCollection levels=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    for(int x = 0; x < levels.size(); x++)
    {
        form.cmbLevel().newRow(levels.get(x), levels.get(x).getText(), levels.get(x).getImage());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populate(ClearSpanAuditVo entry) 
{
    if(entry == null)
        return;

    GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow();
    row.setValue(entry);

    ClearSpanEventLevelCollection levs=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    try
    {
        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.INFORMATION, levs)))
            row.setcolImage(form.getImages().Admin.LogInformation);

        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.WARNING, levs)))
            row.setcolImage(form.getImages().Admin.LogWarning); 

    } catch (DomainInterfaceException e)
    {
        engine.showMessage("Cannot get the Event Levels");
        return;
    }


    row.setcolDateTime(entry.getTimeGenerated().toString());
    row.setcolLevel(entry.getEvenLevel().getText());
    row.setcolType(entry.getEventType().getText());

    String message = entry.getMessage();
    if(message.length() > 120)
        message = message.substring(0, 120) + "...";                
    row.setcolMessage(message);         

    String data = entry.getData()==null?" ": entry.getData();
    if(data.length() > 120)
        data = data.substring(0, 120) + "...";                      
    row.setcolData(data);

}
项目:openmaxims-linux    文件:Logic.java   
private void initializeLevel()
{   
    form.cmbLevel().clear();                
    ClearSpanEventLevelCollection levels=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    for(int x = 0; x < levels.size(); x++)
    {
        form.cmbLevel().newRow(levels.get(x), levels.get(x).getText(), levels.get(x).getImage());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populate(ClearSpanAuditVo entry) 
{
    if(entry == null)
        return;

    GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow();
    row.setValue(entry);

    ClearSpanEventLevelCollection levs=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    try
    {
        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.INFORMATION, levs)))
            row.setcolImage(form.getImages().Admin.LogInformation);

        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.WARNING, levs)))
            row.setcolImage(form.getImages().Admin.LogWarning); 

    } catch (DomainInterfaceException e)
    {
        engine.showMessage("Cannot get the Event Levels");
        return;
    }


    row.setcolDateTime(entry.getTimeGenerated().toString());
    row.setcolLevel(entry.getEvenLevel().getText());
    row.setcolType(entry.getEventType().getText());

    String message = entry.getMessage();
    if(message.length() > 120)
        message = message.substring(0, 120) + "...";                
    row.setcolMessage(message);         

    String data = entry.getData()==null?" ": entry.getData();
    if(data.length() > 120)
        data = data.substring(0, 120) + "...";                      
    row.setcolData(data);

}