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,IInputValidator,IProcessButton,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Default editor for
DisplayType.Button.
Modifications - UI Compatibility- Author:
- ashley
-
Nested Class Summary
Nested classes/interfaces inherited from class org.adempiere.webui.editor.WEditor
WEditor.DynamicDisplayListener -
Field Summary
FieldsFields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, IDEMPIERE_EDITOR_ATTR, INIT_EDIT_EVENT, label, listeners, mandatory, MAX_DISPLAY_LENGTH, popupMenu, readOnly, tableEditor -
Constructor Summary
ConstructorsConstructorDescriptionWButtonEditor(GridField gridField) WButtonEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration) WButtonEditor(GridField gridField, int rowIndex) WButtonEditor(GridField gridField, int rowIndex, boolean tableEditor, IEditorConfiguration editorConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionListener(ActionListener actionListener) GetIADTabpanelinstance that own this buttonGet display textString[]intGet info window idintGet AD_Process_IDgetValue()booleanbooleanbooleanvoidonEvent(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) voidSet editor valueMethods inherited from class org.adempiere.webui.editor.WEditor
addChangeLogMenu, addDynamicDisplayListener, addTextEditorMenu, addValueChangeListener, applyFieldStyles, applyLabelStyles, buildStyle, cleanColumnName, dynamicDisplay, dynamicDisplay, fillHorizontal, fireValueChange, focusNext, getColumnName, getDescription, getDisplayComponent, getDisplayTextForGridView, getDisplayTextForGridView, getLabel, getPopupMenu, getStyleEvaluatee, getValidInput, isComponentOfEditor, isMandatoryStyle, isNullOrEmpty, isProcessParameter, isShowPreference, isValid, isVisible, isZoomable, propertyChange, removeDynamicDisplayListener, removeValuechangeListener, setBackground, setBackground, setChangeEventWhenEditing, setColumnName, setComponent, setFieldStyle, setGridTab, setLabelStyle, setProcessParameter, setTableEditor, setValidInput, setVisible, setVisible, showMenu, toString, updateLabelStyle, updateStyle, updateStyleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.adempiere.webui.editor.IProcessButton
getColumnName, getDescription
-
Field Details
-
EDITOR_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
WButtonEditor
- Parameters:
gridField-
-
WButtonEditor
- Parameters:
gridField-rowIndex-
-
WButtonEditor
public WButtonEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration) - Parameters:
gridField-tableEditor-editorConfiguration-
-
WButtonEditor
public WButtonEditor(GridField gridField, int rowIndex, boolean tableEditor, IEditorConfiguration editorConfiguration) - Parameters:
gridField-rowIndex-tableEditor-editorConfiguration-
-
-
Method Details
-
getProcess_ID
public int getProcess_ID()Description copied from interface:IProcessButtonGet AD_Process_ID- Specified by:
getProcess_IDin interfaceIProcessButton- Returns:
- AD_Process_ID or 0
-
getInfoWindow_ID
public int getInfoWindow_ID()Description copied from interface:IProcessButtonGet info window id- Specified by:
getInfoWindow_IDin interfaceIProcessButton- Returns:
- AD_InfoWindow_ID
-
getGridField
- Overrides:
getGridFieldin classWEditor- Returns:
- GridField
-
getDisplay
Description copied from interface:IProcessButtonGet display text- Specified by:
getDisplayin interfaceIProcessButton- Specified by:
getDisplayin classWEditor- Returns:
- display text
-
getValue
-
isMandatory
public boolean isMandatory()- Overrides:
isMandatoryin classWEditor- Returns:
- true if field is mandatory
-
setMandatory
public void setMandatory(boolean mandatory) Description copied from class:WEditorSet whether the editor represents a mandatory field.- Overrides:
setMandatoryin classWEditor- Parameters:
mandatory- whether the field is mandatory
-
setValue
Description copied from class:WEditorSet editor value -
getComponent
- Overrides:
getComponentin classWEditor- Returns:
- Component
-
isReadWrite
public boolean isReadWrite()- Specified by:
isReadWritein classWEditor- Returns:
- true if editable
-
setReadWrite
public void setReadWrite(boolean readWrite) - Specified by:
setReadWritein classWEditor
-
getValues
- Returns:
- AD_Ref_List Value:Name HashMap
-
addActionListener
- Parameters:
actionListener-
-
removeActionListener
- Parameters:
actionListener-- Returns:
- true if found and remove
-
getEvents
- Overrides:
getEventsin classWEditor- Returns:
- list of
WEditor.componentevents that this editor will listen to
-
onEvent
- Specified by:
onEventin interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>- Throws:
Exception
-
setADTabpanel
- Parameters:
adTabpanel-
-
getADTabpanel
Description copied from interface:IProcessButtonGetIADTabpanelinstance that own this button- Specified by:
getADTabpanelin interfaceIProcessButton- Returns:
IADTabpanelinstance that own this button
-
isSearchable
public boolean isSearchable()- Overrides:
isSearchablein classWEditor- Returns:
- true if usable in find window, false otherwise
-