PlaceMapBeanLocalBase.as
2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
* Generated by Gas3 v2.1.0 (Granite Data Services).
*
* WARNING: DO NOT CHANGE THIS FILE. IT MAY BE OVERWRITTEN EACH TIME YOU USE
* THE GENERATOR. INSTEAD, EDIT THE INHERITED CLASS (PlaceMapBeanLocal.as).
*/
package fi.insomnia.bortal.beans {
import fi.insomnia.bortal.model.EventMap;
import fi.insomnia.bortal.model.User;
import java.io.OutputStream;
import mx.collections.ListCollectionView;
import mx.messaging.ChannelSet;
import mx.messaging.config.ServerConfig;
import mx.rpc.remoting.mxml.RemoteObject;
public class PlaceMapBeanLocalBase extends RemoteObject {
private var _initRemote:Boolean = false;
private function initRemote():void {
destination = "";
channelSet = new ChannelSet();
channelSet.addChannel(ServerConfig.getChannel(""));
_initRemote = true;
}
public function printPlaceMapToStream(arg0:OutputStream, arg1:String, arg2:Number, arg3:ListCollectionView):void {
if (!_initRemote)
initRemote();
getOperation("printPlaceMapToStream").send(arg0, arg1, arg2, arg3);
}
public function getSelectPlaceMapUrl(arg0:EventMap, arg1:ListCollectionView, arg2:User):void {
if (!_initRemote)
initRemote();
getOperation("getSelectPlaceMapUrl").send(arg0, arg1, arg2);
}
public function selectablePlaceCount(arg0:User):void {
if (!_initRemote)
initRemote();
getOperation("selectablePlaceCount").send(arg0);
}
public function addOperationListener(op:Function, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void {
if (op == this.printPlaceMapToStream)
this.getOperation("printPlaceMapToStream").addEventListener(type, handler, useCapture, priority, useWeakReference);
if (op == this.getSelectPlaceMapUrl)
this.getOperation("getSelectPlaceMapUrl").addEventListener(type, handler, useCapture, priority, useWeakReference);
if (op == this.selectablePlaceCount)
this.getOperation("selectablePlaceCount").addEventListener(type, handler, useCapture, priority, useWeakReference);
}
public function removeOperationListener(op:Function, event:String, handler:Function):void {
if (op == this.printPlaceMapToStream)
this.getOperation("printPlaceMapToStream").removeEventListener(event, handler);
if (op == this.getSelectPlaceMapUrl)
this.getOperation("getSelectPlaceMapUrl").removeEventListener(event, handler);
if (op == this.selectablePlaceCount)
this.getOperation("selectablePlaceCount").removeEventListener(event, handler);
}
}
}