Package org.adempiere.webui.editor
Class WSearchEditor
- java.lang.Object
-
- org.adempiere.webui.editor.WEditor
-
- org.adempiere.webui.editor.WSearchEditor
-
- All Implemented Interfaces:
PropertyChangeListener,EventListener,IZoomableEditor,ContextMenuListener,ValueChangeListener,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WSearchEditor extends WEditor implements ContextMenuListener, ValueChangeListener, IZoomableEditor
Search Editor for web UI. Web UI port of search type VLookup- Author:
- Ashley G Ramdass
-
-
Field Summary
Fields Modifier and Type Field Description protected ADWindowadwindowstatic StringATTRIBUTE_IS_INFO_PANEL_OPENprotected InfoPanelinfoPanelprotected Lookuplookup-
Fields inherited from class org.adempiere.webui.editor.WEditor
component, gridField, gridTab, INIT_EDIT_EVENT, label, listeners, mandatory, MAX_DISPLAY_LENGTH, popupMenu, readOnly, tableEditor
-
-
Constructor Summary
Constructors Constructor Description WSearchEditor(String columnName, boolean mandatory, boolean readonly, boolean updateable, Lookup lookup)WSearchEditor(GridField gridField)WSearchEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration)WSearchEditor(Lookup lookup, String label, String description, boolean mandatory, boolean readonly, boolean updateable)Constructor for use if a grid field is unavailable
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactionButton(String queryValue)protected voidactionCombo(Object value)protected voidactionQuickEntry(boolean newRecord)Action - Special Quick Entry Screenprotected voidactionRefresh(Object value)protected voidactionText(String text)voidactionZoom()static WSearchEditorcreateBPartner(int windowNo)static WSearchEditorcreateProduct(int windowNo)voiddynamicDisplay(Properties ctx)allow subclass to perform dynamic loading of dataComboEditorBoxgetComponent()StringgetDisplay()StringgetDisplayTextForGridView(Object value)String[]getEvents()ObjectgetValue()booleanisReadWrite()booleanisShowingDialog()voidonEvent(org.zkoss.zk.ui.event.Event e)voidonMenu(ContextMenuEvent evt)voidpropertyChange(PropertyChangeEvent evt)protected voidresetButtonState()voidsetReadWrite(boolean readWrite)voidsetTableEditor(boolean b)voidsetValue(Object value)voidshowInfoPanel(InfoPanel ip)voidvalueChange(ValueChangeEvent evt)-
Methods inherited from class org.adempiere.webui.editor.WEditor
addChangeLogMenu, addTextEditorMenu, addValueChangeListener, applyFieldStyles, applyLabelStyles, buildStyle, cleanColumnName, dynamicDisplay, fillHorizontal, fireValueChange, focusNext, getColumnName, getDescription, getDisplayComponent, getGridField, getLabel, getPopupMenu, getStyleEvaluatee, isComponentOfEditor, isMandatory, isMandatoryStyle, isNullOrEmpty, isProcessParameter, isSearchable, isShowPreference, isVisible, isZoomable, removeValuechangeListener, setBackground, setBackground, setChangeEventWhenEditing, setColumnName, setComponent, setFieldStyle, setGridTab, setLabelStyle, setMandatory, setProcessParameter, setVisible, showMenu, toString, updateLabelStyle, updateStyle, updateStyle
-
-
-
-
Field Detail
-
ATTRIBUTE_IS_INFO_PANEL_OPEN
public static final String ATTRIBUTE_IS_INFO_PANEL_OPEN
- See Also:
- Constant Field Values
-
lookup
protected Lookup lookup
-
infoPanel
protected InfoPanel infoPanel
-
adwindow
protected ADWindow adwindow
-
-
Constructor Detail
-
WSearchEditor
public WSearchEditor(GridField gridField)
- Parameters:
gridField-
-
WSearchEditor
public WSearchEditor(GridField gridField, boolean tableEditor, IEditorConfiguration editorConfiguration)
- Parameters:
gridField-tableEditor-editorConfiguration-
-
WSearchEditor
public WSearchEditor(Lookup lookup, String label, String description, boolean mandatory, boolean readonly, boolean updateable)
Constructor for use if a grid field is unavailable- Parameters:
lookup- Store of selectable datalabel- column name (not displayed)description- description of componentmandatory- whether a selection must be madereadonly- whether or not the editor is read onlyupdateable- whether the editor contents can be changed
-
-
Method Detail
-
getComponent
public ComboEditorBox getComponent()
- Overrides:
getComponentin classWEditor- Returns:
- Component
-
isReadWrite
public boolean isReadWrite()
- Specified by:
isReadWritein classWEditor- Returns:
- editable
-
setReadWrite
public void setReadWrite(boolean readWrite)
- Specified by:
setReadWritein classWEditor
-
getDisplay
public String getDisplay()
- Specified by:
getDisplayin classWEditor- Returns:
- display text
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event e)
- Specified by:
onEventin interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classWEditor
-
actionRefresh
protected void actionRefresh(Object value)
-
actionZoom
public void actionZoom()
- Specified by:
actionZoomin interfaceIZoomableEditor
-
onMenu
public void onMenu(ContextMenuEvent evt)
- Specified by:
onMenuin interfaceContextMenuListener
-
actionText
protected void actionText(String text)
-
resetButtonState
protected void resetButtonState()
-
actionCombo
protected void actionCombo(Object value)
-
actionQuickEntry
protected void actionQuickEntry(boolean newRecord)
Action - Special Quick Entry Screen- Parameters:
newRecord- true if new record should be created
-
actionButton
protected void actionButton(String queryValue)
-
showInfoPanel
public void showInfoPanel(InfoPanel ip)
-
valueChange
public void valueChange(ValueChangeEvent evt)
- Specified by:
valueChangein interfaceValueChangeListener
-
setTableEditor
public void setTableEditor(boolean b)
- Overrides:
setTableEditorin classWEditor
-
isShowingDialog
public boolean isShowingDialog()
-
createBPartner
public static WSearchEditor createBPartner(int windowNo)
- Parameters:
windowNo-- Returns:
- WSearchEditor
-
createProduct
public static WSearchEditor createProduct(int windowNo)
- Parameters:
windowNo-- Returns:
- WSearchEditor
-
dynamicDisplay
public void dynamicDisplay(Properties ctx)
Description copied from class:WEditorallow subclass to perform dynamic loading of data- Overrides:
dynamicDisplayin classWEditor
-
getDisplayTextForGridView
public String getDisplayTextForGridView(Object value)
- Overrides:
getDisplayTextForGridViewin classWEditor
-
-