Adempiere 3.5.2a

org.adempiere.webui.editor
Class WLocatorEditor

java.lang.Object
  extended by org.adempiere.webui.editor.WEditor
      extended by org.adempiere.webui.editor.WLocatorEditor
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class WLocatorEditor
extends WEditor
implements EventListener, PropertyChangeListener

Locator Editor : Based on VLocator

Author:
Niraj Sohun

Field Summary
 
Fields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, label, listeners, mandatory, MAX_DISPLAY_LENGTH
 
Constructor Summary
WLocatorEditor()
          IDE Constructor
WLocatorEditor(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable, MLocatorLookup mLocator)
          Constructor
 
Method Summary
 EditorBox getComponent()
           
 String getDisplay()
          Return Display Value
 String[] getEvents()
          return listener events to be associated with editor component
 int getM_Locator_ID()
          Get M_Locator_ID
 Object getValue()
          Return Editor value
 boolean isReadWrite()
           
 void onEvent(Event event)
           
 void propertyChange(PropertyChangeEvent evt)
          Property Change Listener
 void setField(GridField mField)
          Set Field/WindowNo for ValuePreference (NOP)
 void setReadWrite(boolean readWrite)
           
 void setValue(Object value)
           
 
Methods inherited from class org.adempiere.webui.editor.WEditor
addValueChangeListner, cleanColumnName, fireValueChange, getColumnName, getDescription, getGridField, getLabel, getPopupMenu, isAsap, isMandatory, isVisible, setBackground, setBackground, setColumnName, setComponent, setGridTab, setMandatory, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WLocatorEditor

public WLocatorEditor()
IDE Constructor


WLocatorEditor

public WLocatorEditor(String columnName,
                      boolean mandatory,
                      boolean isReadOnly,
                      boolean isUpdateable,
                      MLocatorLookup mLocator)
Constructor

Parameters:
columnName - ColumnName
mandatory - mandatory
isReadOnly - read only
isUpdateable - updateable
mLocator - locator (lookup) model
WindowNo - window no
Method Detail

setValue

public void setValue(Object value)
Specified by:
setValue in class WEditor

getValue

public Object getValue()
Return Editor value

Specified by:
getValue in class WEditor
Returns:
value

getComponent

public EditorBox getComponent()
Overrides:
getComponent in class WEditor

isReadWrite

public boolean isReadWrite()
Specified by:
isReadWrite in class WEditor

setReadWrite

public void setReadWrite(boolean readWrite)
Specified by:
setReadWrite in class WEditor

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 class WEditor
Returns:
display value

onEvent

public void onEvent(Event event)
             throws Exception
Throws:
Exception

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 interface PropertyChangeListener
Overrides:
propertyChange in class WEditor
Parameters:
evt - PropertyChangeEvent

getEvents

public String[] getEvents()
return listener events to be associated with editor component

Overrides:
getEvents in class WEditor

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.