Package org.compiere.model
Class MAccountLookup
- All Implemented Interfaces:
Serializable
,ComboBoxModel<Object>
,ListModel<Object>
,MutableComboBoxModel<Object>
Account Model Lookup - Maintains ValidCombination Info for Display and Edit - not cached
- Version:
- $Id: MAccountLookup.java,v 1.3 2006/07/30 00:54:54 jjanke Exp $
- Author:
- Jorg Janke, victor.perez@e-evolution.com, www.e-evolution.com
- RF [ 2214883 ] Remove SQL code and Replace for Query https://sourceforge.net/p/adempiere/feature-requests/557/
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(Object key) The Lookup contains the keyboolean
Delegate tocontainsKey(Object)
Get KeyNamePair of Key ValueGet underlying fully qualified Table.Column NamegetData
(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean isshortlist) Return data as sorted Array.Get DescriptiongetDisplay
(Object value) Get Display Text for Valueboolean
load
(int ID) Load C_ValidCombination with IDtoString()
Return String representationMethods inherited from class org.compiere.model.Lookup
addElement, dispose, fillComboBox, fillComboBox, getDirect, getDirect, getDirect, getDisplayType, getElementAt, getIndexOf, getSelectedItem, getSize, getValidation, getWindowNo, getZoom, getZoom, getZoom, getZoomQuery, hasInactive, insertElementAt, isLoaded, isMandatory, isShortList, isValidated, loadComplete, put, put, refresh, removeAllElements, removeElement, removeElementAt, setMandatory, setSelectedItem, setShortList
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, wait, wait, wait
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Field Details
-
C_ValidCombination_ID
public int C_ValidCombination_IDAccount_ID
-
-
Constructor Details
-
MAccountLookup
Constructor- Parameters:
ctx
- contextWindowNo
- window no
-
-
Method Details
-
getDisplay
Get Display Text for Value- Specified by:
getDisplay
in classLookup
- Parameters:
value
- value- Returns:
- Display text
-
get
Get KeyNamePair of Key Value -
containsKey
The Lookup contains the key- Specified by:
containsKey
in classLookup
- Parameters:
key
- key- Returns:
- true if exists
-
containsKeyNoDirect
Delegate tocontainsKey(Object)
- Specified by:
containsKeyNoDirect
in classLookup
- Parameters:
key
- key- Returns:
- true if contains key
-
getDescription
Get Description- Returns:
- Description
-
toString
Return String representation -
load
public boolean load(int ID) Load C_ValidCombination with ID- Parameters:
ID
- C_ValidCombination_ID- Returns:
- true if found
-
getColumnName
Get underlying fully qualified Table.Column Name- Specified by:
getColumnName
in classLookup
- Returns:
- ""
-
getData
public ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean isshortlist) Return data as sorted Array.
-