Class: UU::OS::GVC::Button

Inherits:
Component show all
Includes:
Styleable
Defined in:
uu_os_gvc-0.28.16/lib/uu/os/gvc/button.rb

Overview

Button component.

Direct Known Subclasses

DropDownButton

Instance Attribute Summary (collapse)

Attributes included from Styleable

#style_class

Attributes inherited from Component

#attributes, #code, #component_type, #form, #height, #id, #name, #width

Method Summary

Methods included from Styleable

#add_style_class, #remove_style_class

Methods inherited from Component

#add_message, #focus, #initialize, #messages

Constructor Details

This class inherits a constructor from UU::OS::GVC::Component

Instance Attribute Details

- (Object) action_uri

Button uri. Can contain valid UESURI or uri to external web page. Web page uris must have one of supported schemas (http, https). External web pages is alway opened into new window ( attribute target is ignored ).



32
33
34
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/button.rb', line 32

def action_uri
  @action_uri
end

- (Object) disabled

Flag if component is disabled.



13
14
15
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/button.rb', line 13

def disabled
  @disabled
end

- (Object) icon_uri

Button icon UESURI refers to icon in image catalog.



16
17
18
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/button.rb', line 16

def icon_uri
  @icon_uri
end

- (Object) max_width

Button maximal width



38
39
40
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/button.rb', line 38

def max_width
  @max_width
end

- (Object) min_width

Button minimal width



35
36
37
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/button.rb', line 35

def min_width
  @min_width
end

- (Object) target

Defines target window where the action URI will be opened - one of "CURRENT_WINDOW" (default), "NEW_WINDOW", "DIALOG_WINDOW". For backward compatibility it's also possible to use older equivalents "SELF", "NEW" and "MODAL".



21
22
23
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/button.rb', line 21

def target
  @target
end

- (Object) text

Button text.



24
25
26
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/button.rb', line 24

def text
  @text
end

- (Object) tooltip

Button tooltip text.



27
28
29
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/button.rb', line 27

def tooltip
  @tooltip
end