| Package | vegas.vo |
| Class | public class FilterVO |
| Inheritance | FilterVO SimpleValueObject Object |
Example :
import vegas.vo.FilterVO ;
var VIDEO :uint = 1 ;
var MP3 :uint = 2 ;
var filter:FilterVO = new FilterVO() ;
trace( "filter : " + filter ) ;
filter.toggleFilter( VIDEO , true ) ;
trace( "filter : " + filter ) ;
trace( "filter.toggleFilter( MP3, true ) : " + filter.toggleFilter( MP3, true ) ) ;
trace( "filter.toggleFilter( MP3, true ) : " + filter.toggleFilter( MP3, true ) ) ;
trace("filter : " + filter ) ;
filter.toggleFilter( VIDEO , false ) ;
trace( "filter : " + filter ) ;
trace( "filter.contains( VIDEO ) : " + filter.contains( VIDEO ) ) ;
trace( "filter.contains( MP3 ) : " + filter.contains( MP3 ) ) ;
| Property | Defined By | ||
|---|---|---|---|
| filter : Number
The filter value of this object. | FilterVO | ||
![]() | id : *
Indicates the id of this ValueObject. | SimpleValueObject | |
| NONE : Number = 0 [static]
The default filter value of the filter value objects. | FilterVO | ||
| Method | Defined By | ||
|---|---|---|---|
FilterVO(init:Object = null)
Creates a new FilterVO instance. | FilterVO | ||
clear():void
Clear the filter value. | FilterVO | ||
contains(value:Number):Boolean
Returns true if the filter number value contains the option number value. | FilterVO | ||
![]() | equals(o:*):Boolean
Compares the specified object with this object for equality. | SimpleValueObject | |
![]() | formatToString(className:String = null, ... args):String
A utility function for implementing the toString() method. | SimpleValueObject | |
getFilter():Number
Returns the current filter value of this object. | FilterVO | ||
isNone():Boolean
Returns true if the filter is NONE. | FilterVO | ||
register(aliasName:String = FilterVO):void [static]
Preserves the class (type) of an object when the object is encoded in Action Message Format (AMF). | FilterVO | ||
setFilter(n:Number):void
Sets the current filter value of this object. | FilterVO | ||
toggleFilter(value:Number, b:Boolean):Boolean
Toggle a filter value in this filter object. | FilterVO | ||
toObject():Object [override]
Returns the Object representation of this object. | FilterVO | ||
toSource(indent:int = 0):String [override]
Returns the source code string representation of the object. | FilterVO | ||
toString():String [override]
Returns the String representation of this object. | FilterVO | ||
| filter | property |
public var filter:NumberThe filter value of this object.
| NONE | property |
public static var NONE:Number = 0The default filter value of the filter value objects.
| FilterVO | () | Constructor |
public function FilterVO(init:Object = null)Creates a new FilterVO instance.
Parametersinit:Object (default = null) — (optional) The default filter value of this value object.
|
| clear | () | method |
public function clear():voidClear the filter value.
| contains | () | method |
public function contains(value:Number):Boolean
Returns true if the filter number value contains the option number value.
Parameters
value:Number |
Boolean — true if the filter number value contains the option number value.
|
| getFilter | () | method |
public function getFilter():NumberReturns the current filter value of this object.
ReturnsNumber — the current filter value of this object.
|
| isNone | () | method |
public function isNone():Boolean
Returns true if the filter is NONE.
Boolean — true if the filter is NONE.
|
| register | () | method |
public static function register(aliasName:String = FilterVO):voidPreserves the class (type) of an object when the object is encoded in Action Message Format (AMF).
Parameters
aliasName:String (default = FilterVO) |
| setFilter | () | method |
public function setFilter(n:Number):voidSets the current filter value of this object.
Parameters
n:Number |
| toggleFilter | () | method |
public function toggleFilter(value:Number, b:Boolean):BooleanToggle a filter value in this filter object.
Parameters
value:Number | |
b:Boolean |
Boolean |
| toObject | () | method |
override public function toObject():ObjectReturns the Object representation of this object.
ReturnsObject — the Object representation of this object.
|
| toSource | () | method |
override public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
override public function toString():StringReturns the String representation of this object.
ReturnsString — the String representation of this object.
|