Adempiere 3.5.2a

org.adempiere.webui.editor
Class WButtonEditor

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

public class WButtonEditor
extends WEditor

This class is based on org.compiere.grid.ed.VButton written by Jorg Janke.

Author:
Jorg Janke Modifications - UI Compatibility, ashley

Field Summary
 
Fields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, label, listeners, mandatory, MAX_DISPLAY_LENGTH
 
Constructor Summary
WButtonEditor(GridField gridField)
           
 
Method Summary
 void addActionListener(ActionListener actionListener)
           
 Button getComponent()
           
 String getDisplay()
           
 String[] getEvents()
           
 GridField getGridField()
           
 int getProcess_ID()
          Get AD_Process_ID
 Object getValue()
           
 HashMap getValues()
           
 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, 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

WButtonEditor

public WButtonEditor(GridField gridField)
Method Detail

getProcess_ID

public int getProcess_ID()
Get AD_Process_ID

Returns:
AD_Process_ID or 0

getGridField

public GridField getGridField()
Overrides:
getGridField in class WEditor

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 Button 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

getValues

public HashMap getValues()

addActionListener

public void addActionListener(ActionListener actionListener)

getEvents

public String[] getEvents()
Overrides:
getEvents in class WEditor

onEvent

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

Adempiere 3.5.2a

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