In Files

  • tk/lib/tkextlib/tcllib/validator.rb

Class/Module Index [+]

Quicksearch

Tk::Tcllib::Validator

Constants

PACKAGE_NAME

Public Class Methods

attach(widget, color, cmd=Proc.new) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/validator.rb, line 35
def self.attach(widget, color, cmd=Proc.new)
  tk_call_without_enc('::widget::validator', 'attach', widget, color, cmd)
  nil
end
            
detach(widget) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/validator.rb, line 40
def self.detach(widget)
  tk_call_without_enc('::widget::validator', 'detach', widget)
  nil
end
            
package_name() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/validator.rb, line 18
def self.package_name
  PACKAGE_NAME
end
            
package_version() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/validator.rb, line 22
def self.package_version
  begin
    TkPackage.require('widget::validator')
  rescue
    ''
  end
end
            
validate(widget) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/validator.rb, line 45
def self.validate(widget)
  tk_call_without_enc('::widget::validator', 'validate', widget)
  nil
end
            

Public Instance Methods

attach_validator(color, cmd=Proc.new) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/validator.rb, line 50
def attach_validator(color, cmd=Proc.new)
  tk_call_without_enc('::widget::validator', 'attach', @path, color, cmd)
  self
end
            
detach_validator(color, cmd=Proc.new) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/validator.rb, line 55
def detach_validator(color, cmd=Proc.new)
  tk_call_without_enc('::widget::validator', 'detach', @path)
  self
end
            
invoke_validator(color, cmd=Proc.new) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/validator.rb, line 60
def invoke_validator(color, cmd=Proc.new)
  tk_call_without_enc('::widget::validator', 'validate', @path)
  self
end
            
Also aliased as: validate_validator
validate_validator(color, cmd=Proc.new) click to toggle source
Alias for: invoke_validator

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.