|
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
javax.swing.text.JTextComponent
javax.swing.JTextField
org.compiere.swing.CTextField
org.compiere.grid.ed.VString
public final class VString
Data Binding: VEditors call fireVetoableChange(m_columnName, null, getText()); GridController (for Single-Row) and VCellExitor (for Multi-Row) listen to Vetoable Change Listener (vetoableChange) then set the value for that column in the current row in the table
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTextField |
|---|
JTextField.AccessibleJTextField |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| 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 |
MAXDISPLAY_LENGTH
Max Display Length - 60 |
| Fields inherited from class javax.swing.JTextField |
|---|
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| 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 javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
VString()
IDE Bean Constructor for 30 character updateable field |
|
VString(String columnName,
boolean mandatory,
boolean isReadOnly,
boolean isUpdateable,
int displayLength,
int fieldLength,
String VFormat,
String ObscureType)
Detail Constructor |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Data Binding to MTable (via GridController) - Enter pressed |
void |
dispose()
Dispose |
void |
focusGained(FocusEvent e)
Focus Gained. |
void |
focusLost(FocusEvent e)
Focus Lost Enabled with Obscure |
String |
getDisplay()
Return Display Value |
String |
getText()
Get Text (clear) |
Object |
getValue()
Return Editor value |
String |
getVFormat()
Feature Request [1707462] Get VFormat |
void |
keyReleased(KeyEvent e)
Key Released. |
void |
propertyChange(PropertyChangeEvent evt)
Property Change Listener |
void |
setField(GridField mField)
Set Field/WindowNo for ValuePreference |
void |
setFont(Font f)
Set Font |
void |
setText(String text)
Set Text (optionally obscured) |
void |
setValue(Object value)
Set Editor to value |
void |
setVFormat(String strMask)
Feature Request [1707462] Set VFormat |
| Methods inherited from class org.compiere.swing.CTextField |
|---|
isMandatory, isReadWrite, keyPressed, keyTyped, setBackground, setBackground, setMandatory, setReadWrite |
| 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 |
|---|
addActionListener, addVetoableChangeListener, getName, removeVetoableChangeListener, setBorder, setForeground, setName |
| Methods inherited from interface org.compiere.swing.CEditor |
|---|
isMandatory, isReadWrite, setBackground, setMandatory, setReadWrite, setVisible |
| Field Detail |
|---|
public static final int MAXDISPLAY_LENGTH
| Constructor Detail |
|---|
public VString()
public VString(String columnName,
boolean mandatory,
boolean isReadOnly,
boolean isUpdateable,
int displayLength,
int fieldLength,
String VFormat,
String ObscureType)
columnName - column namemandatory - mandatoryisReadOnly - read onlyisUpdateable - updateabledisplayLength - display lengthfieldLength - field lengthVFormat - formatObscureType - obscure type| Method Detail |
|---|
public void dispose()
dispose in interface VEditorpublic void setValue(Object value)
setValue in interface CEditorsetValue in class CTextFieldvalue - valuepublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - eventpublic Object getValue()
getValue in interface CEditorgetValue in class CTextFieldpublic String getDisplay()
getDisplay in interface CEditorgetDisplay in class CTextFieldpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerkeyReleased in class CTextFielde - eventKeyListener.keyReleased(java.awt.event.KeyEvent)public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - eventpublic void setField(GridField mField)
setField in interface VEditormField - fieldpublic void setVFormat(String strMask)
strMask - maskpublic void setText(String text)
setText in class JTextComponenttext - textpublic String getText()
getText in class JTextComponentpublic String getVFormat()
public void focusGained(FocusEvent e)
focusGained in interface FocusListenere - eventpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenere - eventpublic void setFont(Font f)
VEditor
setFont in interface VEditorsetFont in class JTextField
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||