|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.compiere.grid.ed.VLookup
public class VLookup
Lookup Visual Field.
When r/o - display a Label When STABLE - display a ComboBox Otherwise show Selection Dialog
Special handling of BPartner and Product
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
DISPLAY_LENGTH
Display Length for Lookups (15) |
static int |
FIELD_HIGHT
Field Height |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
VLookup(String columnName,
boolean mandatory,
boolean isReadOnly,
boolean isUpdateable,
Lookup lookup)
Detail Constructor |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Action Listener - data binding |
void |
addActionListener(ActionListener listener)
Action Listener Interface |
static VLookup |
createBPartner(int WindowNo)
Create Optional BPartner Search Lookup |
static VLookup |
createProduct(int WindowNo)
Create Optional Product Search Lookup |
static VLookup |
createUser(int WindowNo)
Create Optional User Search Lookup |
void |
dispose()
Dispose |
void |
focusGained(FocusEvent e)
Focus Listener for ComboBoxes with missing Validation or invalid entries - Requery listener for updated list |
void |
focusLost(FocusEvent e)
Reset Selection List |
String |
getDisplay()
Return editor display |
Object |
getValue()
Return Editor value (Integer) |
boolean |
isMandatory()
Is it mandatory |
boolean |
isReadWrite()
IsEditable |
protected boolean |
processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
|
void |
propertyChange(PropertyChangeEvent evt)
Property Change Listener |
int |
refresh()
Refresh Query |
void |
requestFocus()
Request Focus |
void |
setBackground(boolean error)
Set Background |
void |
setBackground(Color color)
Set Background |
void |
setField(GridField mField)
Set Field/WindowNo for ValuePreference |
void |
setForeground(Color fg)
Set Foreground |
void |
setMandatory(boolean mandatory)
Set Mandatory (and back color) |
void |
setReadWrite(boolean value)
Set ReadWrite |
void |
setStopEditing(boolean stopediting)
Use by vcelleditor to indicate editing is off and don't invoke databinding |
void |
setToolTipText(String text)
Set ToolTip |
void |
setValue(Object value)
Set Editor to value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.grid.ed.VEditor |
|---|
addVetoableChangeListener, getName, removeVetoableChangeListener, setBorder, setFont, setName |
| Methods inherited from interface org.compiere.swing.CEditor |
|---|
setVisible |
| Field Detail |
|---|
public static final int DISPLAY_LENGTH
public static int FIELD_HIGHT
| Constructor Detail |
|---|
public VLookup(String columnName,
boolean mandatory,
boolean isReadOnly,
boolean isUpdateable,
Lookup lookup)
columnName - columnmandatory - mandatoryisReadOnly - read onlyisUpdateable - updateablelookup - lookup| Method Detail |
|---|
protected boolean processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
processKeyBinding in class JComponentpublic static VLookup createBPartner(int WindowNo)
WindowNo - window
public static VLookup createProduct(int WindowNo)
WindowNo - window
public static VLookup createUser(int WindowNo)
WindowNo - window
public void dispose()
dispose in interface VEditorpublic void setReadWrite(boolean value)
setReadWrite in interface CEditorvalue - ReadWritepublic boolean isReadWrite()
isReadWrite in interface CEditorpublic void setMandatory(boolean mandatory)
setMandatory in interface CEditormandatory - mandatorypublic boolean isMandatory()
isMandatory in interface CEditorpublic void setBackground(Color color)
setBackground in class JComponentcolor - colorpublic void setBackground(boolean error)
setBackground in interface CEditorerror - errorpublic void setForeground(Color fg)
setForeground in interface VEditorsetForeground in class JComponentfg - Foreground colorpublic void requestFocus()
requestFocus in class JComponentpublic void setValue(Object value)
setValue in interface CEditorvalue - new Valuepublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - PropertyChangeEventpublic Object getValue()
getValue in interface CEditorpublic String getDisplay()
getDisplay in interface CEditorpublic void setField(GridField mField)
setField in interface VEditormField - Model Field for Lookuppublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - ActionEventpublic void addActionListener(ActionListener listener)
addActionListener in interface VEditorlistener - listenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenere - FocusEventpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenere - FocusEventpublic void setToolTipText(String text)
setToolTipText in class JComponenttext - tool tip textpublic int refresh()
public void setStopEditing(boolean stopediting)
stopediting -
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||