Package org.adempiere.webui.editor
Class WRecordUUIDEditor
- 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.RecordUU
.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, zoomButton
Fields 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
ConstructorDescriptionWRecordUUIDEditor
(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Zoom to AD windowboolean
Use UUID as key columnvoid
Handle 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, setValue
Methods 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
-
WRecordUUIDEditor
public WRecordUUIDEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration) Constructor- Parameters:
gridField
-tableEditor
-editorConfiguration
-
-
-
Method Details
-
actionZoom
public void actionZoom()Description copied from interface:IZoomableEditor
Zoom to AD window -
propertyChange
Description copied from class:WEditor
Handle PropertyChangeEvent fromWEditor.gridField
.- Specified by:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classWEditor
-
toKeyValue
Description copied from class:WRecordEditor
Convert value to key value type- Specified by:
toKeyValue
in classWRecordEditor<String>
- Returns:
- key value
-
isUseUUIDKey
public boolean isUseUUIDKey()Description copied from class:WRecordEditor
Use UUID as key column- Specified by:
isUseUUIDKey
in classWRecordEditor<String>
- Returns:
- Key column name
-
validateTableIdValue
Description copied from class:WRecordEditor
Validate selected table id value- Specified by:
validateTableIdValue
in classWRecordEditor<String>
- Returns:
- error message or null
-