Adempiere 3.5.2a

org.adempiere.webui.editor
Class WLocationEditor

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

public class WLocationEditor
extends WEditor
implements EventListener, PropertyChangeListener

Author:
Sendy Yagambrum

Field Summary
 
Fields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, label, listeners, mandatory, MAX_DISPLAY_LENGTH
 
Constructor Summary
WLocationEditor(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable, MLocationLookup mLocation)
          Constructor without GridField
 
Method Summary
 int getC_Location_ID()
          Return Editor value
 Locationbox getComponent()
           
 String getDisplay()
           
 String[] getEvents()
          return listener events to be associated with editor component
 Object getValue()
           
 boolean isReadWrite()
           
 void onEvent(Event event)
           
 void propertyChange(PropertyChangeEvent evt)
          Property Change Listener
 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

WLocationEditor

public WLocationEditor(String columnName,
                       boolean mandatory,
                       boolean isReadOnly,
                       boolean isUpdateable,
                       MLocationLookup mLocation)
Constructor without GridField

Parameters:
columnName - column name
mandatory - mandatory
isReadOnly - read only
isUpdateable - updateable
mLocation - location model
Method Detail

getDisplay

public String getDisplay()
Specified by:
getDisplay in class WEditor

getValue

public Object getValue()
Specified by:
getValue in class WEditor

setValue

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

getComponent

public Locationbox 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

getC_Location_ID

public int getC_Location_ID()
Return Editor value

Returns:
value

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Property Change Listener

Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class WEditor
Parameters:
evt - PropertyChangeEvent

onEvent

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

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.