Package org.adempiere.webui.editor
Class WLocatorEditor
- java.lang.Object
-
- org.adempiere.webui.editor.WEditor
-
- org.adempiere.webui.editor.WLocatorEditor
-
- All Implemented Interfaces:
PropertyChangeListener,EventListener,IZoomableEditor,ContextMenuListener,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WLocatorEditor extends WEditor implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, PropertyChangeListener, ContextMenuListener, IZoomableEditor
Locator Editor : Based on VLocator- Author:
- Niraj Sohun
-
-
Field Summary
-
Fields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, INIT_EDIT_EVENT, label, listeners, mandatory, MAX_DISPLAY_LENGTH, popupMenu, readOnly, tableEditor
-
-
Constructor Summary
Constructors Constructor Description WLocatorEditor()IDE ConstructorWLocatorEditor(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable, MLocatorLookup mLocator, int windowNo)ConstructorWLocatorEditor(GridField gridField)WLocatorEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionRefresh()voidactionZoom()voiddynamicDisplay(Properties ctx)allow subclass to perform dynamic loading of dataEditorBoxgetComponent()StringgetDisplay()Return Display ValueString[]getEvents()return listener events to be associated with editor componentintgetM_Locator_ID()Get M_Locator_IDObjectgetValue()Return Editor valuebooleanisReadWrite()voidonEvent(org.zkoss.zk.ui.event.Event event)voidonMenu(ContextMenuEvent evt)voidpropertyChange(PropertyChangeEvent evt)Property Change ListenervoidsetField(GridField mField)Set Field/WindowNo for ValuePreference (NOP)voidsetReadWrite(boolean readWrite)voidsetTableEditor(boolean b)voidsetValue(Object value)-
Methods inherited from class org.adempiere.webui.editor.WEditor
addChangeLogMenu, addTextEditorMenu, addValueChangeListener, applyFieldStyles, applyLabelStyles, buildStyle, cleanColumnName, dynamicDisplay, fillHorizontal, fireValueChange, focusNext, getColumnName, getDescription, getDisplayComponent, getDisplayTextForGridView, getGridField, getLabel, getPopupMenu, getStyleEvaluatee, isComponentOfEditor, isMandatory, isMandatoryStyle, isNullOrEmpty, isProcessParameter, isSearchable, isShowPreference, isVisible, isZoomable, removeValuechangeListener, setBackground, setBackground, setChangeEventWhenEditing, setColumnName, setComponent, setFieldStyle, setGridTab, setLabelStyle, setMandatory, setProcessParameter, setVisible, showMenu, toString, updateLabelStyle, updateStyle, updateStyle
-
-
-
-
Constructor Detail
-
WLocatorEditor
public WLocatorEditor()
IDE Constructor
-
WLocatorEditor
public WLocatorEditor(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable, MLocatorLookup mLocator, int windowNo)
Constructor- Parameters:
columnName- ColumnNamemandatory- mandatoryisReadOnly- read onlyisUpdateable- updateablemLocator- locator (lookup) modelwindowNo- window no
-
WLocatorEditor
public WLocatorEditor(GridField gridField)
- Parameters:
gridField-
-
WLocatorEditor
public WLocatorEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration)
- Parameters:
gridField-tableEditor-editorConfiguration-
-
-
Method Detail
-
getValue
public Object getValue()
Return Editor value
-
getComponent
public EditorBox getComponent()
- Overrides:
getComponentin classWEditor- Returns:
- Component
-
isReadWrite
public boolean isReadWrite()
- Specified by:
isReadWritein classWEditor- Returns:
- editable
-
setReadWrite
public void setReadWrite(boolean readWrite)
- Specified by:
setReadWritein classWEditor
-
getM_Locator_ID
public int getM_Locator_ID()
Get M_Locator_ID- Returns:
- id
-
getDisplay
public String getDisplay()
Return Display Value- Specified by:
getDisplayin classWEditor- Returns:
- display value
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception- Specified by:
onEventin interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>- Throws:
Exception
-
actionRefresh
public void actionRefresh()
-
actionZoom
public void actionZoom()
- Specified by:
actionZoomin interfaceIZoomableEditor
-
onMenu
public void onMenu(ContextMenuEvent evt)
- Specified by:
onMenuin interfaceContextMenuListener
-
setField
public void setField(GridField mField)
Set Field/WindowNo for ValuePreference (NOP)- Parameters:
mField- Model Field
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
Property Change Listener- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classWEditor- Parameters:
evt- PropertyChangeEvent
-
getEvents
public String[] getEvents()
return listener events to be associated with editor component
-
setTableEditor
public void setTableEditor(boolean b)
- Overrides:
setTableEditorin classWEditor
-
dynamicDisplay
public void dynamicDisplay(Properties ctx)
Description copied from class:WEditorallow subclass to perform dynamic loading of data- Overrides:
dynamicDisplayin classWEditor
-
-