Adempiere 3.5.2a

org.compiere.model
Class MLocationLookup

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.compiere.model.Lookup
          extended by org.compiere.model.MLocationLookup
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel, MutableComboBoxModel

public final class MLocationLookup
extends Lookup
implements Serializable

Address Loaction Lookup Model.

Version:
$Id: MLocationLookup.java,v 1.3 2006/07/30 00:58:18 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.Lookup
log, p_data
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
MLocationLookup(Properties ctx, int WindowNo)
          Constructor
 
Method Summary
 boolean containsKey(Object key)
          The Lookup contains the key
 NamePair get(Object value)
          Get Object of Key Value
 String getColumnName()
          Get underlying fully qualified Table.Column Name.
 ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary)
          Return data as sorted Array - not implemented
 String getDisplay(Object value)
          Get Display for Value (not cached)
 MLocation getLocation(int C_Location_ID, String trxName)
          Get Location
 MLocation getLocation(Object key, String trxName)
          Get Location
 
Methods inherited from class org.compiere.model.Lookup
addElement, dispose, fillComboBox, fillComboBox, getDirect, getDisplayType, getElementAt, getIndexOf, getInfoFactoryClass, getSelectedItem, getSize, getValidation, getWindowNo, getZoom, getZoom, getZoomQuery, hasInactive, insertElementAt, isLoaded, isMandatory, isValidated, loadComplete, put, put, refresh, removeAllElements, removeElement, removeElementAt, setMandatory, setSelectedItem
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

MLocationLookup

public MLocationLookup(Properties ctx,
                       int WindowNo)
Constructor

Parameters:
ctx - context
WindowNo - window no (to derive AD_Client/Org for new records)
Method Detail

getDisplay

public String getDisplay(Object value)
Get Display for Value (not cached)

Specified by:
getDisplay in class Lookup
Parameters:
value - Location_ID
Returns:
String Value

get

public NamePair get(Object value)
Get Object of Key Value

Specified by:
get in class Lookup
Parameters:
value - value
Returns:
Object or null

containsKey

public boolean containsKey(Object key)
The Lookup contains the key

Specified by:
containsKey in class Lookup
Parameters:
key - Location_ID
Returns:
true if key known

getLocation

public MLocation getLocation(Object key,
                             String trxName)
Get Location

Parameters:
key - ID as string or integer
trxName - transaction
Returns:
Location

getLocation

public MLocation getLocation(int C_Location_ID,
                             String trxName)
Get Location

Parameters:
C_Location_ID - id
trxName - transaction
Returns:
Location

getColumnName

public String getColumnName()
Get underlying fully qualified Table.Column Name. Used for VLookup.actionButton (Zoom)

Specified by:
getColumnName in class Lookup
Returns:
column name

getData

public ArrayList<Object> getData(boolean mandatory,
                                 boolean onlyValidated,
                                 boolean onlyActive,
                                 boolean temporary)
Return data as sorted Array - not implemented

Specified by:
getData in class Lookup
Parameters:
mandatory - mandatory
onlyValidated - only validated
onlyActive - only active
temporary - force load for temporary display
Returns:
null

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.