Class: UI::Wizards::Layout::Mode

Inherits:
Object
  • Object
show all
Defined in:
library/general/src/lib/ui/wizards/layout.rb

Overview

Class to represent a layout mode

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.stepsMode

Mode for a layout with a left sidebar

Returns:


55
56
57
# File 'library/general/src/lib/ui/wizards/layout.rb', line 55

def steps
  @steps ||= new(:steps)
end

.title_on_leftMode

Mode for a layout without a sidebar/tree and with the title of the dialogs on the left

Returns:


69
70
71
# File 'library/general/src/lib/ui/wizards/layout.rb', line 69

def title_on_left
  @title_on_left ||= new(:title_on_left)
end

.title_on_topMode

Mode for a layout without a sidebar/tree and with the title of the dialogs on top

Returns:


76
77
78
# File 'library/general/src/lib/ui/wizards/layout.rb', line 76

def title_on_top
  @title_on_top ||= new(:title_on_top)
end

.treeMode

Mode for a layout with a left tree

Returns:


62
63
64
# File 'library/general/src/lib/ui/wizards/layout.rb', line 62

def tree
  @tree ||= new(:tree)
end

Instance Method Details

#steps?Boolean

Whether the layout mode is for steps

Returns:

  • (Boolean)

84
85
86
# File 'library/general/src/lib/ui/wizards/layout.rb', line 84

def steps?
  self == self.class.steps
end

#title_on_left?Boolean

Whether the layout mode is for title on left

Returns:

  • (Boolean)

98
99
100
# File 'library/general/src/lib/ui/wizards/layout.rb', line 98

def title_on_left?
  self == self.class.title_on_left
end

#title_on_top?Boolean

Whether the layout mode is for title on top

Returns:

  • (Boolean)

105
106
107
# File 'library/general/src/lib/ui/wizards/layout.rb', line 105

def title_on_top?
  self == self.class.title_on_top
end

#tree?Boolean

Whether the layout mode is for a tree

Returns:

  • (Boolean)

91
92
93
# File 'library/general/src/lib/ui/wizards/layout.rb', line 91

def tree?
  self == self.class.tree
end