@Override
 public List<ILookupRow<T>> getDataByAll(ILookupCall<T> call) throws ProcessingException {
   String sql = getConfiguredSqlSelect();
   if (containsRefusingAllTag(sql)) {
     throw new VetoException(ScoutTexts.get("SearchTextIsTooGeneral"));
   }
   List<ILookupRow<T>> rows = execLoadLookupRows(sql, filterSqlByAll(sql), call);
   return rows;
 }
Ejemplo n.º 2
0
  /** Tests the html veto exception error message creation */
  @Test
  public void testVetoExceptionHtmlMessage() {
    TestFormWithMandatoryField form = new TestFormWithMandatoryField();
    String htmlErrorMessage = "";

    String expectedErrorMessage =
        HTML.fragment(
                HTML.bold(ScoutTexts.get("FormEmptyMandatoryFieldsMessage")),
                HTML.ul(HTML.li(form.getStringField().getFullyQualifiedLabel(": "))),
                HTML.br())
            .toEncodedHtml();

    try {
      form.validateForm();
    } catch (VetoException ve) {
      htmlErrorMessage = ve.getHtmlMessage().toEncodedHtml();
    }

    assertEquals(expectedErrorMessage, htmlErrorMessage);
  }
 @Override
 protected String getConfiguredText() {
   return ScoutTexts.get("FormStateStoreAs");
 }
 /*
  * Configuration
  */
 @Override
 protected String getConfiguredLabel() {
   return ScoutTexts.get("FormStateLoad");
 }
 @Override
 public String getDisplayText() {
   return ScoutTexts.get("Column") + " \"" + getColumn().getHeaderCell().getText() + "\"";
 }
Ejemplo n.º 6
0
 @Override
 protected String getConfiguredTooltipText() {
   return ScoutTexts.get("CancelButtonTooltip");
 }
Ejemplo n.º 7
0
 @Override
 protected String getConfiguredLabel() {
   return ScoutTexts.get("CancelButton");
 }