Compiere 3.1

org.compiere.vos
Class ListBoxVO

java.lang.Object
  extended by org.compiere.vos.ListBoxVO
All Implemented Interfaces:
Serializable

public class ListBoxVO
extends Object
implements Serializable

Author:
gwu
See Also:
Serialized Form

Field Summary
 int AD_Reference_Value_ID
          Real AD_Reference_ID
 int Column_ID
          AD_Column_Info or AD_Process_Para
 boolean IsCreadedUpdatedBy
          CreadedBy?
 boolean IsKey
          Key Flag
 boolean IsParent
          Parent Flag
 boolean IsValidated
          Validation flag
 String KeyColumn
          Key Column
static CompiereLogger log
           
 String Query
          SQL Query
 String QueryDirect
          Direct Access Query
 String TableName
          Table Name
 String ValidationCode
          Validation code
 int zoomWindow
          Zoom Window
 int ZoomWindowPO
          Zoom Window
 
Constructor Summary
ListBoxVO()
           
ListBoxVO(ArrayList<NamePair> p_options, String p_defaultKey)
           
ListBoxVO(boolean init)
           
ListBoxVO(NamePair[] p_options, String p_defaultKey)
           
 
Method Summary
 void addOption(NamePair option)
           
static void concatNamePairArray(ArrayList<NamePair> options, ArrayList<NamePair> c)
           
 String getDefaultKey()
           
 NamePair getExceptionOption(String key)
           
 ArrayList<NamePair> getExceptionOptions()
           
 NamePair getFromOptions(String key, ArrayList<NamePair> options)
           
 NamePair getOption(String key)
           
 ArrayList<NamePair> getOptions()
           
 NamePair getValidOption(String key)
           
 String getValue(String key)
           
 int indexOfKey(String key)
          Returns the index of the first option found for the key, or -1 if not found.
 int indexOfValue(String value)
          Returns the index of the first option found for the key, or -1 if not found.
 boolean isOptionsSet()
           
 void pushExceptionOption(NamePair option)
           
 void pushExceptionOptions(ArrayList<NamePair> options)
           
 void setDefaultKey(String defaultKey)
           
 void setExceptionOptions(ArrayList<NamePair> exceptionOptions)
           
 void setOptions(ArrayList<NamePair> validOptions)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

public static final CompiereLogger log

Query

public String Query
SQL Query


TableName

public String TableName
Table Name


KeyColumn

public String KeyColumn
Key Column


zoomWindow

public int zoomWindow
Zoom Window


ZoomWindowPO

public int ZoomWindowPO
Zoom Window


QueryDirect

public String QueryDirect
Direct Access Query


IsParent

public boolean IsParent
Parent Flag


IsKey

public boolean IsKey
Key Flag


ValidationCode

public String ValidationCode
Validation code


IsValidated

public boolean IsValidated
Validation flag


Column_ID

public int Column_ID
AD_Column_Info or AD_Process_Para


AD_Reference_Value_ID

public int AD_Reference_Value_ID
Real AD_Reference_ID


IsCreadedUpdatedBy

public boolean IsCreadedUpdatedBy
CreadedBy?updatedBy

Constructor Detail

ListBoxVO

public ListBoxVO()

ListBoxVO

public ListBoxVO(boolean init)

ListBoxVO

public ListBoxVO(NamePair[] p_options,
                 String p_defaultKey)

ListBoxVO

public ListBoxVO(ArrayList<NamePair> p_options,
                 String p_defaultKey)
Method Detail

setExceptionOptions

public void setExceptionOptions(ArrayList<NamePair> exceptionOptions)

setOptions

public void setOptions(ArrayList<NamePair> validOptions)

addOption

public void addOption(NamePair option)

pushExceptionOption

public void pushExceptionOption(NamePair option)

pushExceptionOptions

public void pushExceptionOptions(ArrayList<NamePair> options)

concatNamePairArray

public static void concatNamePairArray(ArrayList<NamePair> options,
                                       ArrayList<NamePair> c)

getDefaultKey

public String getDefaultKey()

setDefaultKey

public void setDefaultKey(String defaultKey)

getOptions

public ArrayList<NamePair> getOptions()

indexOfKey

public int indexOfKey(String key)
Returns the index of the first option found for the key, or -1 if not found.

Parameters:
key -
Returns:

indexOfValue

public int indexOfValue(String value)
Returns the index of the first option found for the key, or -1 if not found.

Parameters:
value -
Returns:

getValue

public String getValue(String key)

getValidOption

public NamePair getValidOption(String key)

getExceptionOption

public NamePair getExceptionOption(String key)

getFromOptions

public NamePair getFromOptions(String key,
                               ArrayList<NamePair> options)

getOption

public NamePair getOption(String key)

getExceptionOptions

public ArrayList<NamePair> getExceptionOptions()

toString

public String toString()
Overrides:
toString in class Object

isOptionsSet

public boolean isOptionsSet()

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.