PHP2Go Javascript Framework

Class StringList

Object
   |
   +--StringList

class StringList

Defined in util/stringlist.js


Field Summary
 Boolean observing
          Set this flag to false to disable onUpdate calls when the string list changes
<private>  String sep
          Holds the separator used to split the list members
<private>  String str
          Holds the base string
 
Constructor Summary
StringList (<String> str, <String> sep)
            A StringList handles strings that are lists of elements splitted by a separator substring.
 
Method Summary
 Boolean add(<String> obj)
           Adds a new element onto the list
 void clear()
           Clear the list
 Boolean contains(<String> obj)
           Searches for a given element in the list
 Boolean empty()
           Check if the list is empty
 void importOptions(<Object> sel, idx)
           Populate the string list using the options of a SELECT element
 void onUpdate(<String> str)
           Handle modifications in the string list.
 Boolean remove(<String> obj)
           Removes an element from the list
 String serialize()
           Serialize the list
 Array toArray()
           Converts the list into an Array instance
 String toString()
           Gets the most updated version of the list
 <private>  void update(<String> str)
           Private function used to change the value of the string list

Field Detail

observing

Boolean observing

sep

<private> String sep

str

<private> String str

Constructor Detail

StringList

StringList(<String> str, <String> sep)

Method Detail

add

Boolean add(<String> obj)

clear

void clear()

contains

Boolean contains(<String> obj)

empty

Boolean empty()

importOptions

void importOptions(<Object> sel, idx)

onUpdate

void onUpdate(<String> str)

remove

Boolean remove(<String> obj)

serialize

String serialize()

toArray

Array toArray()

toString

String toString()

update

 <private> void update(<String> str)

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007