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
Fields 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
ConstructorDescriptionWButtonEditor
(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 TypeMethodDescriptionvoid
addActionListener
(ActionListener actionListener) String[]
int
int
Get AD_Process_IDgetValue()
boolean
boolean
boolean
void
onEvent
(org.zkoss.zk.ui.event.Event event) boolean
removeActionListener
(ActionListener actionListener) void
setADTabpanel
(IADTabpanel adTabpanel) void
setMandatory
(boolean mandatory) Set whether the editor represents a mandatory field.void
setReadWrite
(boolean readWrite) void
Set 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, updateStyle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:IProcessButton
Get AD_Process_ID- Specified by:
getProcess_ID
in interfaceIProcessButton
- Returns:
- AD_Process_ID or 0
-
getInfoWindow_ID
public int getInfoWindow_ID()- Specified by:
getInfoWindow_ID
in interfaceIProcessButton
- Returns:
- AD_InfoWindow_ID
-
getGridField
- Overrides:
getGridField
in classWEditor
- Returns:
- GridField
-
getDisplay
- Specified by:
getDisplay
in interfaceIProcessButton
- Specified by:
getDisplay
in classWEditor
- Returns:
- display text
-
getValue
-
isMandatory
public boolean isMandatory()- Overrides:
isMandatory
in classWEditor
- Returns:
- true if field is mandatory
-
setMandatory
public void setMandatory(boolean mandatory) Description copied from class:WEditor
Set whether the editor represents a mandatory field.- Overrides:
setMandatory
in classWEditor
- Parameters:
mandatory
- whether the field is mandatory
-
setValue
Description copied from class:WEditor
Set editor value -
getComponent
- Overrides:
getComponent
in classWEditor
- Returns:
- Component
-
isReadWrite
public boolean isReadWrite()- Specified by:
isReadWrite
in classWEditor
- Returns:
- true if editable
-
setReadWrite
public void setReadWrite(boolean readWrite) - Specified by:
setReadWrite
in classWEditor
-
getValues
- Returns:
- AD_Ref_List Value:Name HashMap
-
addActionListener
- Parameters:
actionListener
-
-
removeActionListener
- Parameters:
actionListener
-- Returns:
- true if found and remove
-
getEvents
- Overrides:
getEvents
in classWEditor
- Returns:
- list of
WEditor.component
events that this editor will listen to
-
onEvent
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
setADTabpanel
- Parameters:
adTabpanel
-
-
getADTabpanel
- Specified by:
getADTabpanel
in interfaceIProcessButton
- Returns:
IADTabpanel
instance that own this button
-
isSearchable
public boolean isSearchable()- Overrides:
isSearchable
in classWEditor
- Returns:
- true if usable in find window, false otherwise
-