class LibyuiClient::Widgets::Progressbar

Class representing a Progressbar in UI. It can be YProgressBar.

Public Instance Methods

max_value() click to toggle source

Returns the max value of progressbar. Gets value from 'max_value' parameter in JSON representation of YProgressBar. @return [Integer] max value of the progressbar. @example Get progressbar max_value, with id 'initProg'

{
  "class" : "YProgressBar",
  "hstretch" : true,
  "id" : "initProg",
  "label" : "Disk",
  "max_value" : 1000,
  "value" : 666
}

@example

app.progressbar(id: 'initProg').max_value
  # 1000
# File lib/libyui_client/widgets/progressbar.rb, line 40
def max_value
  property(:max_value)
end
value() click to toggle source

Returns the current value of progressbar. Gets value from 'value' parameter in JSON representation of YProgressBar. @return [Integer] current value of progressbar. @example Get progressbar value, with id 'initProg'

{
  "class" : "YProgressBar",
  "hstretch" : true,
  "id" : "initProg",
  "label" : "Disk",
  "max_value" : 1000,
  "value" : 666
}
app.progressbar(id: 'initProg').value
  # 663
# File lib/libyui_client/widgets/progressbar.rb, line 21
def value
  property(:value)
end