![]() |
![]()
| ![]() |
![]()
NAMEApp::ZFSCurses::WidgetFactory - Create widgets. METHODSVERSIONVersion 1.212. newCreate an instance of App::ZFSCurses::WidgetFactory. search_valueSearch a value in an array. Return the value index if found. Return -1 if not found. widget_selectorSelect the right widget to create. This method expects a property list as first argument. It will then check for its type, create the widget accordingly and return it. make_widgetMake a widget depending on the property type. This method expects a property and, sometimes, the current value (selected in the UI). This method is called from the UI module when a user selects a property and wants to change it. set_containerSet the container that will contain the created widget. fill_property_hashRead the DATA handle and fill the property hash. __DATA__ contains a list of key value pairs that represent a property and its possible values. Note: the ALNUM value means the property is alphanumerical and a textfield has to be created to be shown to the user. Otherwise, a radio button box is created with the possible values. See the widget_selector function. propertiesReturn the properties hash. is_property_roCheck whether a property is read only (cannot be changed). AUTHORPatrice Clement <monsieurp at cpan.org> LICENSE AND COPYRIGHTThis software is copyright (c) 2020 by Patrice Clement. This is free software, licensed under the (three-clause) BSD License. See the LICENSE file.
|