Package org.adempiere.webui.editor
Class WRecordIDEditor
- All Implemented Interfaces:
PropertyChangeListener,EventListener,IInputValidator,IZoomableEditor,ContextMenuListener,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Default editor for
Implemented with composite component of
The editor uses
DisplayType.RecordID.Implemented with composite component of
Textbox and ToolBarButton.The editor uses
WRecordIDDialog for edit or viewing.- Author:
- Peter Takacs, Cloudempiere
-
Nested Class Summary
Nested classes/interfaces inherited from class org.adempiere.webui.editor.WEditor
WEditor.DynamicDisplayListener -
Field Summary
Fields inherited from class org.adempiere.webui.editor.WRecordEditor
editButton, recordIDValue, recordTextBox, tableIDGridField, tableIDValue, zoomButtonFields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, IDEMPIERE_EDITOR_ATTR, INIT_EDIT_EVENT, label, listeners, mandatory, MAX_DISPLAY_LENGTH, popupMenu, readOnly, tableEditor -
Constructor Summary
ConstructorsConstructorDescriptionWRecordIDEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidZoom to AD windowbooleanUse UUID as key columnvoidHandle PropertyChangeEvent fromWEditor.gridField.toKeyValue(Object value) Convert value to key value typevalidateTableIdValue(int tableId) Validate selected table id valueMethods inherited from class org.adempiere.webui.editor.WRecordEditor
getAD_Table_ID, getComponent, getDisplay, getDisplayTextForGridView, getValue, init, isReadWrite, onEvent, onMenu, setAD_Table_ID, setReadWrite, setValue, setValueMethods inherited from class org.adempiere.webui.editor.WEditor
addChangeLogMenu, addDynamicDisplayListener, addTextEditorMenu, addValueChangeListener, applyFieldStyles, applyLabelStyles, buildStyle, cleanColumnName, dynamicDisplay, dynamicDisplay, fillHorizontal, fireValueChange, focusNext, getColumnName, getDescription, getDisplayComponent, getDisplayTextForGridView, getEvents, getGridField, getLabel, getPopupMenu, getStyleEvaluatee, getValidInput, isComponentOfEditor, isMandatory, isMandatoryStyle, isNullOrEmpty, isProcessParameter, isSearchable, isShowPreference, isValid, isVisible, isZoomable, removeDynamicDisplayListener, removeValuechangeListener, setBackground, setBackground, setChangeEventWhenEditing, setColumnName, setComponent, setFieldStyle, setGridTab, setLabelStyle, setMandatory, setProcessParameter, setTableEditor, setValidInput, setVisible, setVisible, showMenu, toString, updateLabelStyle, updateStyle, updateStyle
-
Constructor Details
-
WRecordIDEditor
public WRecordIDEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration) Constructor- Parameters:
gridField-tableEditor-editorConfiguration-
-
-
Method Details
-
actionZoom
public void actionZoom()Description copied from interface:IZoomableEditorZoom to AD window -
propertyChange
Description copied from class:WEditorHandle PropertyChangeEvent fromWEditor.gridField.- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classWEditor
-
toKeyValue
Description copied from class:WRecordEditorConvert value to key value type- Specified by:
toKeyValuein classWRecordEditor<Integer>- Returns:
- key value
-
isUseUUIDKey
public boolean isUseUUIDKey()Description copied from class:WRecordEditorUse UUID as key column- Specified by:
isUseUUIDKeyin classWRecordEditor<Integer>- Returns:
- Key column name
-
validateTableIdValue
Description copied from class:WRecordEditorValidate selected table id value- Specified by:
validateTableIdValuein classWRecordEditor<Integer>- Returns:
- error message or null
-