Merge branch 'widget' of github.com:ynh/EWF into widget

This commit is contained in:
severin
2014-03-05 15:57:24 +01:00
41 changed files with 201 additions and 234 deletions

View File

@@ -21,7 +21,7 @@ create
feature {NONE} -- Initialization
make (h: like handler; e: STRING)
make (h: like handler; e: STRING_32)
do
make_validator (e)
handler := h

View File

@@ -21,7 +21,7 @@ create
feature {NONE} -- Initialization
make (e: STRING)
make (e: STRING_32)
-- Initialize with specified error message which will be displayed on validation failure
do
make_regexp_validator ("^[0-9]+(\.[0-9]*)?$|^\.[0-9]+$", e)

View File

@@ -21,7 +21,7 @@ create
feature {NONE} -- Initialization
make (e: STRING)
make (e: STRING_32)
-- Initialize with specified error message which will be displayed on validation failure
do
make_regexp_validator ("^.*@.*$", e)

View File

@@ -11,7 +11,7 @@ class
inherit
WSF_VALIDATOR [detachable WSF_FILE]
WSF_VALIDATOR [detachable WSF_FILE_DEFINITION]
rename
make as make_validator
redefine
@@ -23,7 +23,7 @@ create
feature {NONE} -- Initialization
make (m: INTEGER; e: STRING)
make (m: INTEGER; e: STRING_32)
-- Initialize with specified maximum filesize and error message which will be displayed on validation failure
do
make_validator (e)
@@ -32,7 +32,7 @@ feature {NONE} -- Initialization
feature -- Implementation
is_valid (input: detachable WSF_FILE): BOOLEAN
is_valid (input: detachable WSF_FILE_DEFINITION): BOOLEAN
do
Result := True
if attached input as a_input then

View File

@@ -23,7 +23,7 @@ create
feature {NONE} -- Initialization
make (m: INTEGER; e: STRING)
make (m: INTEGER; e: STRING_32)
-- Initialize with specified maximum and error message which will be displayed on validation failure
do
make_validator (e)

View File

@@ -23,7 +23,7 @@ create
feature {NONE} -- Initialization
make (m: INTEGER; e: STRING)
make (m: INTEGER; e: STRING_32)
-- Initialize with specified minimum and error message which will be displayed on validation failure
do
make_validator (e)

View File

@@ -11,7 +11,7 @@ class
inherit
WSF_VALIDATOR [STRING]
WSF_VALIDATOR [STRING_32]
rename
make as make_validator
redefine
@@ -23,7 +23,7 @@ create
feature {NONE} -- Initialization
make (r, e: STRING)
make (r, e: STRING_32)
-- Initialize with specified regular expression and error message which will be displayed on validation failure
do
make_validator (e)
@@ -33,7 +33,7 @@ feature {NONE} -- Initialization
feature -- Implementation
is_valid (input: STRING): BOOLEAN
is_valid (input: STRING_32): BOOLEAN
do
--Only compile when used
if not regexp.is_compiled then
@@ -55,7 +55,7 @@ feature -- State
feature -- Properties
regexp_string: STRING
regexp_string: STRING_32
regexp: REGULAR_EXPRESSION

View File

@@ -11,7 +11,7 @@ deferred class
feature {NONE} -- Initialization
make (e: STRING)
make (e: STRING_32)
-- Initialize with specified error message to be displayed on validation failure
do
error := e
@@ -34,6 +34,6 @@ feature -- Access
feature -- Properties
error: STRING
error: STRING_32
end