Package org.compiere.model
Class MAccountLookup
- java.lang.Object
-
- javax.swing.AbstractListModel<Object>
-
- org.compiere.model.Lookup
-
- org.compiere.model.MAccountLookup
-
- All Implemented Interfaces:
Serializable,ComboBoxModel<Object>,ListModel<Object>,MutableComboBoxModel<Object>
public final class MAccountLookup extends Lookup implements Serializable
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description intC_ValidCombination_IDAccount_ID-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description MAccountLookup(Properties ctx, int WindowNo)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(Object key)The Lookup contains the keybooleancontainsKeyNoDirect(Object key)The Lookup contains the key, do not push directNamePairget(Object value)Get Object of Key ValueStringgetColumnName()Get underlying fully qualified Table.Column NameArrayList<Object>getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean isshortlist)Return data as sorted Array.StringgetDescription()Get DescriptionStringgetDisplay(Object value)Get Display for Valuebooleanload(int ID)Load C_ValidCombination with IDStringtoString()Return String representation-
Methods 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
-
-
-
-
Constructor Detail
-
MAccountLookup
public MAccountLookup(Properties ctx, int WindowNo)
Constructor- Parameters:
ctx- contextWindowNo- window no
-
-
Method Detail
-
getDisplay
public String getDisplay(Object value)
Get Display for Value- Specified by:
getDisplayin classLookup- Parameters:
value- value- Returns:
- String
-
containsKey
public boolean containsKey(Object key)
The Lookup contains the key- Specified by:
containsKeyin classLookup- Parameters:
key- key- Returns:
- true if exists
-
containsKeyNoDirect
public boolean containsKeyNoDirect(Object key)
Description copied from class:LookupThe Lookup contains the key, do not push direct- Specified by:
containsKeyNoDirectin classLookup- Parameters:
key- key- Returns:
- true if contains key
-
getDescription
public String getDescription()
Get Description- Returns:
- Description
-
toString
public String 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
public String getColumnName()
Get underlying fully qualified Table.Column Name- Specified by:
getColumnNamein classLookup- Returns:
- ""
-
-