head	1.2;
access;
symbols;
locks
	root:1.2; strict;
comment	@# @;


1.2
date	2009.12.07.04.38.29;	author root;	state Exp;
branches;
next	1.1;

1.1
date	2009.12.07.04.37.53;	author root;	state Exp;
branches;
next	;


desc
@/opt/nforge/var/wiki/easylogiclib/data/text/WBComboBox
@


1.2
log
@118.219.84.10;;cyberuls easylogic ;;
@
text
@= Description = 
 * DropDown 형태의 ListBox 입니다. 
 * 기본적으로 모든 속성이 ListBox와 비슷하고 표현되는 형태만 틀립니다. 

= Sample = 

{{{#!vim php 
<?php

$window = new WBAppWindow(array(
	'title' => 'ComboBox Test',
	'width' => 300,
	'height' => 300,
));

$combo = new WBComboBox(array(
	'parent' => $window,
	'width' => 140,
	'height' => 160,
	'sort' => false,
	'readOnly' => true,
	'items' => array(
		'hello',
		'jane',
		'love',
		'tom',
	),
	'event' => array(
		'click' => 'test'	
	),
));

$window->setVisible(true);

WBApplication::start();

function test($eo) { 

	$str = sprintf("index : %d, text : %s", $eo->object()->getSelectedIndex(), $eo->object()->getText());

	WBDialog::info($eo->window(), $str, 'CheckBox Click');
}


?>
}}}

= Code =
 * get selected text 
{{{#!vim php 
<?php $combo->getText();?>
}}}

 * 아이템 추가 하기 
{{{#!vim php 
<?php $combo->addItem('Hello'); ?>
}}}

 * 아이템 리스트 얻어오기 
{{{#!vim php 
<?php $arr = $combo->getItems(); ?>
}}}

 * 현재 선택되어진 index 얻어오기 
{{{#!vim php 
<?php $index = $combo->getSelectedIndex(); ?>
}}}

 * 선택되어진 값 얻어오기 
{{{#!vim php 
<?php

// 선택된 index의 값 얻어오기 
$string = $combo->getValue();

// 지정된 index의 값 얻어오기 
$string = $combo->getValue(1);

?>
}}}

 * 지정된 아이템 값 설정 하기 (미구현)
{{{#!vim php 
<?php
// 선택된 아이템 값 설정 
$combo->setValue($value);

// 지정된 아이템 값 설정 
$combo->setValue($value, 1);
?>
}}}
 * 아이템 리스트 설정 
{{{#!vim php 
<?php $combo->setItems(array('hello','world')); ?>
}}}
 * 선택된 index 설정하기 
{{{#!vim php 
<?php $combo->setSelectedIndex(1); ?>
}}}
@


1.1
log
@118.219.84.10;;cyberuls easylogic ;;
@
text
@d59 1
a59 1
* 아이템 리스트 얻어오기 
d64 1
a64 1
* 현재 선택되어진 index 얻어오기 
d69 1
a69 1
* 선택되어진 값 얻어오기 
d82 1
a82 1
* 지정된 아이템 값 설정 하기 (미구현)
d92 1
a92 1
* 아이템 리스트 설정 
d96 1
a96 1
* 선택된 index 설정하기 
@
