Adempiere 3.5.2a

org.adempiere.webui.editor
Class WDateEditor

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

public class WDateEditor
extends WEditor

Version:
$Revision: 0.10 $
Author:
Ashley G Ramdass

Field Summary
 
Fields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, label, listeners, mandatory, MAX_DISPLAY_LENGTH
 
Constructor Summary
WDateEditor()
           
WDateEditor(GridField gridField)
           
WDateEditor(String label, String description, boolean mandatory, boolean readonly, boolean updateable)
          Constructor for use if a grid field is unavailable
 
Method Summary
 Datebox getComponent()
           
 String getDisplay()
           
 String[] getEvents()
           
 Object getValue()
           
 boolean isMandatory()
           
 boolean isReadWrite()
           
 void onEvent(Event event)
           
 void setMandatory(boolean mandatory)
          Set whether the editor represents a mandatory field.
 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, isVisible, propertyChange, setBackground, setBackground, setColumnName, setComponent, setGridTab, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WDateEditor

public WDateEditor(GridField gridField)

WDateEditor

public WDateEditor(String label,
                   String description,
                   boolean mandatory,
                   boolean readonly,
                   boolean updateable)
Constructor for use if a grid field is unavailable

Parameters:
label - column name (not displayed)
description - description of component
mandatory - whether a selection must be made
readonly - whether or not the editor is read only
updateable - whether the editor contents can be changed

WDateEditor

public WDateEditor()
Method Detail

onEvent

public void onEvent(Event event)

getDisplay

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

getValue

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

isMandatory

public boolean isMandatory()
Overrides:
isMandatory in class WEditor

setMandatory

public void setMandatory(boolean mandatory)
Description copied from class: WEditor
Set whether the editor represents a mandatory field.

Overrides:
setMandatory in class WEditor
Parameters:
mandatory - whether the field is mandatory

setValue

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

getComponent

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

getEvents

public String[] getEvents()
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.