Package org.idempiere.webservices.client
Class GetListLookup
java.lang.Object
javax.swing.AbstractListModel<Object>
org.compiere.model.Lookup
org.idempiere.webservices.client.GetListLookup
- All Implemented Interfaces:
Serializable,ComboBoxModel<Object>,ListModel<Object>,MutableComboBoxModel<Object>
- Author:
- hengsin
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) The Lookup contains the keybooleanThe Lookup contains the key (do not check the direct lookup list)GetNamePairof Key ValueGet underlying fully qualified Table.Column Name.getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist) Load Data (Value/KeyNamePair) from DB.getDisplay(Object key) Get Display Text of Key Valueintrefresh()Refresh and return number of items read.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, removeAllElements, removeElement, removeElementAt, setMandatory, setSelectedItem, setShortListMethods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Constructor Details
-
Method Details
-
getDisplay
Description copied from class:LookupGet Display Text of Key Value- Specified by:
getDisplayin classLookup- Parameters:
key- key value- Returns:
- Display Text
-
get
Description copied from class:LookupGetNamePairof Key Value -
getData
public ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist) Description copied from class:LookupLoad Data (Value/KeyNamePair) from DB. -
getColumnName
Description copied from class:LookupGet underlying fully qualified Table.Column Name.- Specified by:
getColumnNamein classLookup- Returns:
- column name
-
containsKey
Description copied from class:LookupThe Lookup contains the key- Specified by:
containsKeyin classLookup- Parameters:
key- key- Returns:
- true if contains key
-
containsKeyNoDirect
Description copied from class:LookupThe Lookup contains the key (do not check the direct lookup list)- Specified by:
containsKeyNoDirectin classLookup- Parameters:
key- key- Returns:
- true if contains key
-
refresh
public int refresh()Refresh and return number of items read. Get get data of parent lookups
-