= Description = 

 * GridLayout 입니다. 
 * rows, columns 를 지정해서 전체 간격을 구성합니다. 
 * 들어가는 모든 컴포넌트들은 같은 크기를 가집니다. 

= Sample = 

{{{#!vim php 
<?php


/** 
 * GridLayout example, winbinder
 *
 * 
 * written by easylogic 
 * 
 */


$window = new WBResizableWindow(array(
	'title' => '여기는 윈도우',
	'xpos' => WBC_CENTER,
	'ypos' => WBC_CENTER,
	'width' => 500,
	'height' => 500,
));

$panel = $window->getRootPanel();
$panel->setLayout(new WBGridLayout(2, 2));

for ($i = 0 ; $i < 3; $i++) { 
	$button = $panel->add(new WBPushButton(array(
		'parent' => $window,
		'caption' => "버튼($i)",
                'event' => array(
                    'click' => 'testClick' 
                )
	)));	
}


$tempPanel = new WBPanel(array('layout' => new WBGridLayout(2, 2)));

for ($i = 0 ; $i < 4; $i++) { 
	$tempPanel->add(new WBPushButton(array(
		'parent' => $window,
		'caption' => "버튼2($i)",
                'event' => array(
                   'click' => 'testClick',
                )
	)));	
}

$panel->add($tempPanel);

$window->setVisible(true);

WBApplication::start();

function testClick($eo) { 
	echo WBApplication::getObject($eo->getId())->getText(), PHP_EOL;
}

?>
}}}

= Structure = 
attachment:GridLayoutOutLine.jpg 

= Image = 
attachment:WBGridLayout.jpg 
