mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,120 @@
|
||||
package org.osmf.layout
|
||||
{
|
||||
import org.osmf.events.MetadataEvent;
|
||||
import org.osmf.metadata.NonSynthesizingMetadata;
|
||||
|
||||
internal class PaddingLayoutMetadata extends NonSynthesizingMetadata
|
||||
{
|
||||
|
||||
public static const LEFT:String = "left";
|
||||
|
||||
public static const TOP:String = "top";
|
||||
|
||||
public static const RIGHT:String = "right";
|
||||
|
||||
public static const BOTTOM:String = "bottom";
|
||||
|
||||
private var _left:Number;
|
||||
|
||||
private var _top:Number;
|
||||
|
||||
private var _right:Number;
|
||||
|
||||
private var _bottom:Number;
|
||||
|
||||
public function PaddingLayoutMetadata()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getValue(param1:String) : *
|
||||
{
|
||||
if(param1 == null)
|
||||
{
|
||||
return undefined;
|
||||
}
|
||||
if(param1 == "left")
|
||||
{
|
||||
return left;
|
||||
}
|
||||
if(param1 == "top")
|
||||
{
|
||||
return top;
|
||||
}
|
||||
if(param1 == "right")
|
||||
{
|
||||
return right;
|
||||
}
|
||||
if(param1 == "bottom")
|
||||
{
|
||||
return bottom;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
public function get left() : Number
|
||||
{
|
||||
return _left;
|
||||
}
|
||||
|
||||
public function set left(param1:Number) : void
|
||||
{
|
||||
var _loc2_:MetadataEvent = null;
|
||||
if(_left != param1)
|
||||
{
|
||||
_loc2_ = new MetadataEvent("valueChange",false,false,"left",param1,_left);
|
||||
_left = param1;
|
||||
dispatchEvent(_loc2_);
|
||||
}
|
||||
}
|
||||
|
||||
public function get top() : Number
|
||||
{
|
||||
return _top;
|
||||
}
|
||||
|
||||
public function set top(param1:Number) : void
|
||||
{
|
||||
var _loc2_:MetadataEvent = null;
|
||||
if(_top != param1)
|
||||
{
|
||||
_loc2_ = new MetadataEvent("valueChange",false,false,"top",param1,_top);
|
||||
_top = param1;
|
||||
dispatchEvent(_loc2_);
|
||||
}
|
||||
}
|
||||
|
||||
public function get right() : Number
|
||||
{
|
||||
return _right;
|
||||
}
|
||||
|
||||
public function set right(param1:Number) : void
|
||||
{
|
||||
var _loc2_:MetadataEvent = null;
|
||||
if(_right != param1)
|
||||
{
|
||||
_loc2_ = new MetadataEvent("valueChange",false,false,"right",param1,_right);
|
||||
_right = param1;
|
||||
dispatchEvent(_loc2_);
|
||||
}
|
||||
}
|
||||
|
||||
public function get bottom() : Number
|
||||
{
|
||||
return _bottom;
|
||||
}
|
||||
|
||||
public function set bottom(param1:Number) : void
|
||||
{
|
||||
var _loc2_:MetadataEvent = null;
|
||||
if(_bottom != param1)
|
||||
{
|
||||
_loc2_ = new MetadataEvent("valueChange",false,false,"bottom",param1,_bottom);
|
||||
_bottom = param1;
|
||||
dispatchEvent(_loc2_);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user