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 void
actionRefresh()
void
actionZoom()
void
dynamicDisplay(Properties ctx)
allow subclass to perform dynamic loading of dataEditorBox
getComponent()
String
getDisplay()
Return Display ValueString[]
getEvents()
return listener events to be associated with editor componentint
getM_Locator_ID()
Get M_Locator_IDObject
getValue()
Return Editor valueboolean
isReadWrite()
void
onEvent(org.zkoss.zk.ui.event.Event event)
void
onMenu(ContextMenuEvent evt)
void
propertyChange(PropertyChangeEvent evt)
Property Change Listenervoid
setField(GridField mField)
Set Field/WindowNo for ValuePreference (NOP)void
setReadWrite(boolean readWrite)
void
setTableEditor(boolean b)
void
setValue(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:
getComponent
in classWEditor
- Returns:
- Component
-
isReadWrite
public boolean isReadWrite()
- Specified by:
isReadWrite
in classWEditor
- Returns:
- editable
-
setReadWrite
public void setReadWrite(boolean readWrite)
- Specified by:
setReadWrite
in classWEditor
-
getM_Locator_ID
public int getM_Locator_ID()
Get M_Locator_ID- Returns:
- id
-
getDisplay
public String getDisplay()
Return Display Value- Specified by:
getDisplay
in classWEditor
- Returns:
- display value
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
actionRefresh
public void actionRefresh()
-
actionZoom
public void actionZoom()
- Specified by:
actionZoom
in interfaceIZoomableEditor
-
onMenu
public void onMenu(ContextMenuEvent evt)
- Specified by:
onMenu
in 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:
propertyChange
in interfacePropertyChangeListener
- Overrides:
propertyChange
in classWEditor
- Parameters:
evt
- PropertyChangeEvent
-
getEvents
public String[] getEvents()
return listener events to be associated with editor component
-
setTableEditor
public void setTableEditor(boolean b)
- Overrides:
setTableEditor
in classWEditor
-
dynamicDisplay
public void dynamicDisplay(Properties ctx)
Description copied from class:WEditor
allow subclass to perform dynamic loading of data- Overrides:
dynamicDisplay
in classWEditor
-
-