Rename WSF_FILE to WSF_FILE_DEFINITION
This commit is contained in:
@@ -1,49 +0,0 @@
|
|||||||
note
|
|
||||||
description: "Summary description for {WSF_FILE}."
|
|
||||||
author: ""
|
|
||||||
date: "$Date$"
|
|
||||||
revision: "$Revision$"
|
|
||||||
|
|
||||||
class
|
|
||||||
WSF_FILE
|
|
||||||
|
|
||||||
create
|
|
||||||
make
|
|
||||||
|
|
||||||
feature {NONE}
|
|
||||||
|
|
||||||
make (a_name, a_type: STRING_32; a_size: INTEGER; a_id: detachable STRING_32)
|
|
||||||
do
|
|
||||||
name := a_name
|
|
||||||
type := a_type
|
|
||||||
size := a_size
|
|
||||||
id := a_id
|
|
||||||
end
|
|
||||||
|
|
||||||
feature
|
|
||||||
|
|
||||||
set_id (a_id: detachable STRING_32)
|
|
||||||
do
|
|
||||||
id := a_id
|
|
||||||
end
|
|
||||||
|
|
||||||
feature --Properties
|
|
||||||
|
|
||||||
is_uploaded: BOOLEAN
|
|
||||||
do
|
|
||||||
Result := attached id
|
|
||||||
end
|
|
||||||
|
|
||||||
name: STRING_32
|
|
||||||
-- File name
|
|
||||||
|
|
||||||
type: STRING_32
|
|
||||||
-- File mime type
|
|
||||||
|
|
||||||
size: INTEGER
|
|
||||||
-- File size
|
|
||||||
|
|
||||||
id: detachable STRING_32
|
|
||||||
-- Server side file id (e.g. S3 filename)
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -9,7 +9,7 @@ class
|
|||||||
|
|
||||||
inherit
|
inherit
|
||||||
|
|
||||||
WSF_VALUE_CONTROL [detachable WSF_FILE]
|
WSF_VALUE_CONTROL [detachable WSF_FILE_DEFINITION]
|
||||||
rename
|
rename
|
||||||
make as make_value_control
|
make as make_value_control
|
||||||
end
|
end
|
||||||
@@ -112,7 +112,7 @@ feature -- Upload
|
|||||||
|
|
||||||
feature -- Implementation
|
feature -- Implementation
|
||||||
|
|
||||||
value: detachable WSF_FILE
|
value: detachable WSF_FILE_DEFINITION
|
||||||
do
|
do
|
||||||
Result := file
|
Result := file
|
||||||
end
|
end
|
||||||
@@ -159,7 +159,7 @@ feature -- Change
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set_value (v: detachable WSF_FILE)
|
set_value (v: detachable WSF_FILE_DEFINITION)
|
||||||
do
|
do
|
||||||
file := v
|
file := v
|
||||||
end
|
end
|
||||||
@@ -180,7 +180,7 @@ feature -- Properties
|
|||||||
image_preview: BOOLEAN
|
image_preview: BOOLEAN
|
||||||
-- Preview uploaded image
|
-- Preview uploaded image
|
||||||
|
|
||||||
file: detachable WSF_FILE
|
file: detachable WSF_FILE_DEFINITION
|
||||||
-- Text to be displayed
|
-- Text to be displayed
|
||||||
|
|
||||||
change_event: detachable PROCEDURE [ANY, TUPLE]
|
change_event: detachable PROCEDURE [ANY, TUPLE]
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class
|
|||||||
|
|
||||||
inherit
|
inherit
|
||||||
|
|
||||||
WSF_VALIDATOR [detachable WSF_FILE]
|
WSF_VALIDATOR [detachable WSF_FILE_DEFINITION]
|
||||||
rename
|
rename
|
||||||
make as make_validator
|
make as make_validator
|
||||||
redefine
|
redefine
|
||||||
@@ -32,7 +32,7 @@ feature {NONE} -- Initialization
|
|||||||
|
|
||||||
feature -- Implementation
|
feature -- Implementation
|
||||||
|
|
||||||
is_valid (input: detachable WSF_FILE): BOOLEAN
|
is_valid (input: detachable WSF_FILE_DEFINITION): BOOLEAN
|
||||||
do
|
do
|
||||||
Result := True
|
Result := True
|
||||||
if attached input as a_input then
|
if attached input as a_input then
|
||||||
|
|||||||
Reference in New Issue
Block a user