Package org.adempiere.webui.editor
Class WButtonEditor
- java.lang.Object
- 
- org.adempiere.webui.editor.WEditor
- 
- org.adempiere.webui.editor.WButtonEditor
 
 
- 
- All Implemented Interfaces:
- PropertyChangeListener,- EventListener,- IProcessButton,- org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
 
 public class WButtonEditor extends WEditor implements IProcessButton This class is based on org.compiere.grid.ed.VButton written by Jorg Janke.- Author:
- Jorg Janke Modifications - UI Compatibility, ashley
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringEDITOR_ATTRIBUTE- 
Fields inherited from class org.adempiere.webui.editor.WEditorcomponent, gridField, gridTab, INIT_EDIT_EVENT, label, listeners, mandatory, MAX_DISPLAY_LENGTH, popupMenu, readOnly, tableEditor
 
- 
 - 
Constructor SummaryConstructors Constructor Description WButtonEditor(GridField gridField)WButtonEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration)WButtonEditor(GridField gridField, int rowIndex)WButtonEditor(GridField gridField, int rowIndex, boolean tableEditor, IEditorConfiguration editorConfiguration)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddActionListener(ActionListener actionListener)IADTabpanelgetADTabpanel()ButtongetComponent()StringgetDisplay()String[]getEvents()GridFieldgetGridField()intgetProcess_ID()Get AD_Process_IDObjectgetValue()HashMap<String,String>getValues()booleanisMandatory()booleanisReadWrite()booleanisSearchable()voidonEvent(org.zkoss.zk.ui.event.Event event)booleanremoveActionListener(ActionListener actionListener)voidsetADTabpanel(IADTabpanel adTabpanel)voidsetMandatory(boolean mandatory)Set whether the editor represents a mandatory field.voidsetReadWrite(boolean readWrite)voidsetValue(Object value)- 
Methods inherited from class org.adempiere.webui.editor.WEditoraddChangeLogMenu, addTextEditorMenu, addValueChangeListener, applyFieldStyles, applyLabelStyles, buildStyle, cleanColumnName, dynamicDisplay, dynamicDisplay, fillHorizontal, fireValueChange, focusNext, getColumnName, getDescription, getDisplayComponent, getDisplayTextForGridView, getLabel, getPopupMenu, getStyleEvaluatee, isComponentOfEditor, isMandatoryStyle, isNullOrEmpty, isProcessParameter, isShowPreference, isVisible, isZoomable, propertyChange, removeValuechangeListener, setBackground, setBackground, setChangeEventWhenEditing, setColumnName, setComponent, setFieldStyle, setGridTab, setLabelStyle, setProcessParameter, setTableEditor, setVisible, showMenu, toString, updateLabelStyle, updateStyle, updateStyle
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.adempiere.webui.editor.IProcessButtongetColumnName, getDescription
 
- 
 
- 
- 
- 
Field Detail- 
EDITOR_ATTRIBUTEpublic static final String EDITOR_ATTRIBUTE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
WButtonEditorpublic WButtonEditor(GridField gridField) - Parameters:
- gridField-
 
 - 
WButtonEditorpublic WButtonEditor(GridField gridField, int rowIndex) - Parameters:
- gridField-
- rowIndex-
 
 - 
WButtonEditorpublic WButtonEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration) - Parameters:
- gridField-
- tableEditor-
- editorConfiguration-
 
 - 
WButtonEditorpublic WButtonEditor(GridField gridField, int rowIndex, boolean tableEditor, IEditorConfiguration editorConfiguration) - Parameters:
- gridField-
- rowIndex-
- tableEditor-
- editorConfiguration-
 
 
- 
 - 
Method Detail- 
getProcess_IDpublic int getProcess_ID() Description copied from interface:IProcessButtonGet AD_Process_ID- Specified by:
- getProcess_IDin interface- IProcessButton
- Returns:
- AD_Process_ID or 0
 
 - 
getGridFieldpublic GridField getGridField() - Overrides:
- getGridFieldin class- WEditor
- Returns:
- grid field for this editor ( can be null )
 
 - 
getDisplaypublic String getDisplay() - Specified by:
- getDisplayin interface- IProcessButton
- Specified by:
- getDisplayin class- WEditor
- Returns:
- display text
 
 - 
isMandatorypublic boolean isMandatory() - Overrides:
- isMandatoryin class- WEditor
- Returns:
- boolean
 
 - 
setMandatorypublic void setMandatory(boolean mandatory) Description copied from class:WEditorSet whether the editor represents a mandatory field.- Overrides:
- setMandatoryin class- WEditor
- Parameters:
- mandatory- whether the field is mandatory
 
 - 
getComponentpublic Button getComponent() - Overrides:
- getComponentin class- WEditor
- Returns:
- Component
 
 - 
isReadWritepublic boolean isReadWrite() - Specified by:
- isReadWritein class- WEditor
- Returns:
- editable
 
 - 
setReadWritepublic void setReadWrite(boolean readWrite) - Specified by:
- setReadWritein class- WEditor
 
 - 
addActionListenerpublic void addActionListener(ActionListener actionListener) 
 - 
removeActionListenerpublic boolean removeActionListener(ActionListener actionListener) 
 - 
onEventpublic void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception- Specified by:
- onEventin interface- org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
- Exception
 
 - 
setADTabpanelpublic void setADTabpanel(IADTabpanel adTabpanel) 
 - 
getADTabpanelpublic IADTabpanel getADTabpanel() - Specified by:
- getADTabpanelin interface- IProcessButton
 
 - 
isSearchablepublic boolean isSearchable() - Overrides:
- isSearchablein class- WEditor
- Returns:
- true if usable in find window, false otherwise
 
 
- 
 
-