public class BufferedComboBoxTerm extends ComboBoxTerm
It uses a JotyDataBuffer to host an entire record set (instead of a set of
DescrStruct
objects), and it makes possible the choice of the field to be
displayed by the ComboBox component and associates the current selection of
it to the corresponding record in the buffer.
ComboBox
,
LiteralsCollection.DescrStruct
,
JotyDataBuffer
Modifier and Type | Class and Description |
---|---|
class |
BufferedComboBoxTerm.BufferedComboBox |
DescrTerm.DynamicLiteralStructParams
Term.AlterFormatMethodInterface, Term.AsideLoadInterface, Term.CcpCommand, Term.TermEnclosable
m_dynamicLiteralStructParams, m_literalStruct
m_alterFormatMethod, m_asideLoadMethod, m_clearable, m_container, m_ctrlTermInitedByParam, m_defaultLiteralStruct, m_effectsIndex, m_extendedSet, m_isToBeLockedAnyWay, m_literalsCollectionInstance, m_mandatory, m_mask, m_msg, m_mustRemainEnabled, m_name, m_operatorsCombo, m_panel, m_required, m_tabIndex, m_updatingActor, m_valMirrorTermIdx, m_viewersManager
m_metaDataSource
Constructor and Description |
---|
BufferedComboBoxTerm(TermContainerPanel panel,
TermContainerPanel.TermParams params) |
Modifier and Type | Method and Description |
---|---|
JotyDataBuffer |
buffer() |
protected void |
checkLiteralStructIsDynamic(TermContainerPanel.TermParams params)
Invoked by the constructor, if it is not provided the name of a cataloged
LiteralStruct such an object is instantiated here and is set dynamic,
that is it can be nameless and not cataloged in the
Application.m_literalStructMap map. |
void |
config(java.lang.String bufferKey,
java.lang.String bufferVisibleField,
java.lang.String query) |
protected void |
createComponent(TermContainerPanel panel) |
protected java.lang.String |
doRender(org.joty.data.WrappedField wfield) |
protected java.lang.Integer |
getPosIndexFromData(long value) |
protected void |
pickUpAndPumpData() |
protected void |
selectionEffects(int index) |
buildLiteralStruct, checkRendering, clear, clearComponent, doValidate, enable, getComponent, getCurSelData, getCurSelStrKey, getSelection, getWindowText, guiDataExch, isWindowEnabled, isWindowVisible, loadComboBoxList, loadDescrList, selectItem, selectItem, set, setSelection, show, sqlValueExpr, storeState, toString, updateState, updateState
clearAppReferences, reloadDescrList, setDynamicLiteralStructParams
alert, checkForPublishing, checkPublishers, checkSelection, commandDownMask, contextValue, createContextPostStatement, createDescrArrayParams, defaultValue, effectsPostPone, enableComponent, enableComponent, enableRelatedButtons, fieldDescr, getSetStatus, getTermData, innerClearData, innerLoad, innerStore, isAControlTerm, isDataComplement, isDirty, isEnabledAsDetail, isLockedAnyway, isMandatory, isModifiable, isOnlyLoadingData, isReadOnly, killFocus, langLocatedWarningMsg, locatedWarningMsg, manageAsRelated, manageTermConsistence, masterGridCellDescriptor, message, notifyEditingAction, notifyPublishing, preRender, refresh, render, renderedIdentity, reset, selectionData, set, setAsControlTerm, setAsDataComplement, setCurSel, setDirty, setEnabledAsDetail, setLockedAnyway, setMandatory, setMandatory, setModifiable, setNotClearable, setOnlyLoadingData, setReadOnly, setRowActionButton, setTermVal, setTermVal, setTermVal, setTermVal, setTermVal, setTermVal, setToVal, setToVal, setToVal, setToVal, setToVal, setToVal, structuredInit, termRender, termRender, termRender, toString, updateAspect, updateDrivenBuffer
dataTypeFromMetadataSource, dbFieldNameFromMetadataSource, dbFieldSpecifiedFromMetadataSource
checkType, clear, copyWField, copyWField, copyWField, dataType, dateVal, dbFieldName, dbFieldSpecified, doubleVal, floatVal, formatWrap, getInteger, getValFrom, getWField, integerVal, intVal, invalidAssignementMsg, isEmpty, isNull, render, render, render, resultSetDataType, resultSetFieldName, setData, setInteger, setToNull, setVal, setVal, setVal, setVal, setVal, setVal, setValFromDbSubmittedExpr, setWField, setWField, strVal, toString, typeCheck
public BufferedComboBoxTerm(TermContainerPanel panel, TermContainerPanel.TermParams params)
public JotyDataBuffer buffer()
public void config(java.lang.String bufferKey, java.lang.String bufferVisibleField, java.lang.String query)
protected void createComponent(TermContainerPanel panel)
createComponent
in class ComboBoxTerm
protected java.lang.String doRender(org.joty.data.WrappedField wfield)
doRender
in class ComboBoxTerm
protected java.lang.Integer getPosIndexFromData(long value)
getPosIndexFromData
in class ComboBoxTerm
protected void pickUpAndPumpData()
pickUpAndPumpData
in class ComboBoxTerm
protected void checkLiteralStructIsDynamic(TermContainerPanel.TermParams params)
ComboBoxTerm
Application.m_literalStructMap
map.checkLiteralStructIsDynamic
in class ComboBoxTerm
Application.LiteralStruct
protected void selectionEffects(int index)
selectionEffects
in class ComboBoxTerm