|
void
|
addParam
파라미터를 셋팅한다.
Parameters:
| Name |
Type |
Description |
name |
String
|
|
value |
String
|
|
Example
function test() {
var store = new WUX.data.Store();
store.addParam('mode','select');
}
|
|
|
void
|
addValueObject
valueObject를 추가합니다.
추가된 ValueObject 는 C,U,D,M 상태의 데이터만 전송이 됩니다.
Parameters:
| Name |
Type |
Description |
_id |
String
|
|
Example
function test() {
var store = new WUX.data.Store();
store.setProxy("/req.do");
store.addValueObject("vo1");
store.load(function()){
//alert( this.getMessage() );
//alert( this.getStatus() );
//alert( this.getParam("param1") );
}
}
|
|
|
void
|
addValueObjectAsMarked
valueObject를 추가합니다.
추가된 ValueObject 에서 R 상태를 M 으로 변경하여 전송을 합니다.
Parameters:
| Name |
Type |
Description |
_id |
String
|
|
Example
function test() {
var store = new WUX.data.Store();
store.setProxy("/req.do");
store.addValueObjectAsMarked("vo1");
store.load(function()){
//alert( this.getStatus() );
}
}
|
|
|
void
|
clearParams
파라미터를 값을 반환한다.
Example
function clearParams() {
var store = new WUX.data.Store();
stroe.clearParams();
}
|
|
|
Boolean
|
getAsync
비동기 요청을 반환합니다.
Returns:
async
-
Type
-
Boolean
|
|
|
void
|
getMessage
메세지를 반환합니다.
Example
function test() {
var = new WUX.data.Store();
store.getMessage();
}
|
|
|
String
|
getParam
파라미터를 값을 반환한다.
Parameters:
| Name |
Type |
Description |
parameter |
String
|
이름 |
Returns:
parameter 값
-
Type
-
String
Example
function test() {
var store = new WUX.data.Store();
alert( stroe.getParam('mode') );
}
|
|
|
Object
|
getParams
파라미터 맵을 반환한다.
Parameters:
| Name |
Type |
Description |
parameter |
String
|
이름 |
Returns:
parameter map
-
Type
-
Object
Example
function test() {
var paramObject = new WUX.data.Store();
store.setParam('mode','select');
store.setParam('etc','value');
var params = store.getParams();
alert( params.mode ); // 'select'
}
|
|
|
String
|
getProxy
Store 의 요청 스트링 값을 반환합니다.
Returns:
요청 스트링
-
Type
-
String
Example
var store = new WUX.data.Store();
alert( store.getProxy() );
|
|
|
Function
|
getStatus
Store 의 상태를 반환합니다.
Returns:
반환 값
-
Type
-
Function
Example
alert( store.getStatus() );
|
|
|
Array
|
getValueObjects
Returns:
List of Added valueObjects
-
Type
-
Array
|
|
|
void
|
load
Parameters:
| Name |
Type |
Description |
Callback |
Function
|
, function(){ } |
Example
function test() {
var store = new WUX.data.Store();
store.setProxy("/req.do");
store.load(function()){
//alert( this.getMessage() );
//alert( this.getStatus() );
//alert( this.getParam("param1") );
}
}
|
|
|
void
|
setAsync
비동기 요청을 설정합니다.
Parameters:
| Name |
Type |
Description |
_async |
Boolean
|
|
|
|
|
void
|
setMask
마스크 사용을 설정합니다.
Parameters:
| Name |
Type |
Description |
_mask |
Boolean
|
|
|
|
|
Function
|
setOnError
Store 의 Error Handler 를 등록합니다.
Returns:
에러 핸들러
-
Type
-
Function
Example
var store = new WUX.data.Store();
alert( store.getProxy() );
|
|
|
void
|
setParams
파라미터를 셋팅한다.
Parameters:
| Name |
Type |
Description |
, |
Object
|
|
Example
function test() {
var store = new WUX.data.Store();
var params = {'mode':'select','etc':'value1'};
store.setParams(params);
alert( paramObj.getParam('mode') ) ; // 'select'
}
|
|
|
void
|
setProxy
Store 의 요청 스트링 값을 입력합니다.
Parameters:
| Name |
Type |
Description |
요청 |
String
|
스트링 |
Example
var store = new WUX.data.Store();
store.setProxy("/common/main.ux");
|
|