NAME

Curses::UI::Grid::Row - Create and manipulate row in grid model.

CLASS HIERARCHY

Curses::UI::Grid
   |
   +----Curses::UI::Row

SYNOPSIS

use Curses::UI;
my $cui = new Curses::UI;
my $win = $cui->add('window_id', 'Window');
my $grid =$win->add('mygrid','Grid' );
my $row1=$grid->add_row( -fg=>'blue'
                        ,-bg->'white' );

DESCRIPTION

 Curses::UI::Grid::Row is a widget that can be used to
 manipulate row in grid model


See exampes/grid-demo.pl in the distribution for a short demo.

STANDARD OPTIONS

-parent,-fg,-bg

WIDGET-SPECIFIC OPTIONS

  • -cells < HASH >

  • -cells_undo < HASH >

METHODS

  • new ( OPTIONS )

    Constructs a new grid object using options in the hash OPTIONS.

  • layout ( )

    Lays out the row object with cells, makes sure it fits on the available screen.

  • draw ( BOOLEAN )

    Draws the grid object along with cells. If BOOLEAN is true, the screen is not updated after drawing.

    By default, BOOLEAN is true so the screen is updated.

WIDGET-SPECIFIC OPTIONS

  • layout_row ( )

    Lays out the row with cells, makes sure it fits on the available screen.

  • draw_row ( BOOLEAN )

    Draws the row object along with cells. If BOOLEAN is true, the screen is not updated after drawing.

    By default, BOOLEAN is true so the screen is updated.

  • set_value ( CELL , VALUE )

    This routine will set value for given cell. CELL could by either cell object or id cell.

  • set_values ( HASH )

    This routine will set values for cells. HASH should contain cells id as keys. This method will not affect cells which are not given in HASH.

  • get_value ( CELL )

    This routine will return value for given cell. CELL could by either cell object or id cell.

  • get_values ( )

    This routine will return HASH values for row cells. HASH will be contain cells id as keys.

  • get_values_ref ( )

    This routine will return HASH reference for given row values.

  • fg ( COLOR )

    This routine could set or get foreground color using -fg_ option . If -fg_ is NULL then -fg or parent fg color is return.

  • bg ( COLOR )

    This routine could set or get background color using -bg_ option. If -bg_ is NULL then -bg or parent bg color is return.

  • text ( TEXT )

    This routine will set or get value for cell and active row.

  • draw_vline

    Draws line.

  • event_onblur

  • event_onfocus

  • get_undo_value

  • layout_content

  • set_undo_value

  • type

  • y

  • cleanup

    Cleanup association between parent, canva, etc..

SEE ALSO

Curses::UI::Grid::Cell Curses::UI::Grid

AUTHOR

Copyright (c) 2004 by Adrian Witas. All rights reserved.

COPYRIGHT AND LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.