-------------------------------------------------------------------------------- -- Title: LWFormSubmit.lua -- Description: Like a square peg in a round hole -- Author: Raphaël Szwarc http://alt.textdrive.com/lua/ -- Creation Date: February 1, 2005 -- Legal: Copyright (C) 2005 Raphaël Szwarc -------------------------------------------------------------------------------- -- import dependencies local LWFormSubmit = require( "LWFormSubmit" ) local LWStyle = require( "LWStyle" ) local LUList = require( "LUList" ) -- define the class local super = LWFormSubmit local self = super() function self:type() return "image" end function self:src() return self:bindings():get( "src" ) or "" end -- method for string representation function self:toString() local aBuffer = LUList() local aStyle = LWStyle:styleWithComponent( self ) aBuffer:add( "" ) return aBuffer:join( "" ) end return self