|
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.VNumber
public final class VNumber
Number Control
| 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 boolean |
AUTO_POPUP
Automatically pop up calculator |
protected int |
m_displayType
|
static int |
SIZE
Number of Columns (12) |
| 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 | |
|---|---|
VNumber()
IDE Bean Constructor |
|
VNumber(String columnName,
boolean mandatory,
boolean isReadOnly,
boolean isUpdateable,
int displayType,
String title)
Create right aligned Number field. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Action Listener |
void |
addActionListener(ActionListener l)
Add Action Listner |
void |
commitChanges()
Commit pending changes |
void |
dispose()
Dispose |
protected void |
fireActionPerformed()
Fire Action Event to listeners |
void |
focusGained(FocusEvent e)
Focus Gained |
void |
focusLost(FocusEvent e)
Data Binding to MTable (via GridController.vetoableChange). |
String |
getDisplay()
Return Display Value |
String |
getTitle()
Get Title |
Object |
getValue()
Return Editor value |
boolean |
isDirty()
Are there any pending changes |
boolean |
isMandatory()
Is it mandatory |
boolean |
isReadWrite()
IsReadWrite |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
Key Listener |
void |
keyTyped(KeyEvent e)
Key Listener Interface |
Object |
minus(int minimum)
Minus - subtract one, but not below minimum. |
Object |
plus()
Plus - add one. |
void |
propertyChange(PropertyChangeEvent evt)
Property Change Listener |
void |
removeActionListener(ActionListener l)
Remove Action Listner |
void |
requestFocus()
Request Focus |
void |
rollbackChanges()
Rollback pending changes |
void |
selectAll()
Select all the number text. |
void |
setBackground(boolean error)
Set Background |
void |
setBackground(Color color)
Set Background |
void |
setColumns(int columns,
int height)
Set no of Columns |
void |
setDisplayType(int displayType)
Set and check DisplayType |
protected void |
setDocument(Document doc)
Set Document |
void |
setField(GridField mField)
Set Field/WindowNo for ValuePreference |
void |
setFocusable(boolean value)
|
void |
setForeground(Color fg)
Set Foreground |
void |
setMandatory(boolean mandatory)
Set Mandatory (and back bolor) |
boolean |
setRange(Double minValue,
Double maxValue)
Set Range with min & max |
boolean |
setRange(String minValue,
String maxValue)
Set Range with min & max = parse US style number w/o Gouping |
void |
setReadWrite(boolean value)
Set ReadWrite |
void |
setValue(Object value)
Set Editor to value |
static String |
startCalculator(Container jc,
String value,
DecimalFormat format,
int displayType,
String title)
Invalid Entry - Start Calculator |
| 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 SIZE
public static final boolean AUTO_POPUP
protected int m_displayType
| Constructor Detail |
|---|
public VNumber()
public VNumber(String columnName,
boolean mandatory,
boolean isReadOnly,
boolean isUpdateable,
int displayType,
String title)
columnName - column namemandatory - mandatoryisReadOnly - read onlyisUpdateable - updateabledisplayType - display typetitle - title| Method Detail |
|---|
public void dispose()
dispose in interface VEditorprotected void setDocument(Document doc)
doc - documentpublic void selectAll()
public void setColumns(int columns,
int height)
columns - columnsheight - 0 to use default
public boolean setRange(Double minValue,
Double maxValue)
minValue - min valuemaxValue - max value
public boolean setRange(String minValue,
String maxValue)
minValue - min valuemaxValue - max value
public void setDisplayType(int displayType)
displayType - display typepublic void setReadWrite(boolean value)
setReadWrite in interface CEditorvalue - valuepublic 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 - foregroundpublic void setValue(Object value)
setValue in interface CEditorvalue - valuepublic void requestFocus()
requestFocus in class JComponentpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - eventpublic Object getValue()
getValue in interface CEditorpublic String getDisplay()
getDisplay in interface CEditorpublic String getTitle()
public Object plus()
public Object minus(int minimum)
minimum - minimum
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - eventpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenere - eventpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenere - eventpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenere - eventpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenere - eventpublic void commitChanges()
VManagedEditor
commitChanges in interface VManagedEditor
public static String startCalculator(Container jc,
String value,
DecimalFormat format,
int displayType,
String title)
jc - parentvalue - valueformat - formatdisplayType - display typetitle - title
public void setField(GridField mField)
setField in interface VEditormField - fieldpublic void setFocusable(boolean value)
setFocusable in class Componentpublic void removeActionListener(ActionListener l)
l - Action Listenerpublic void addActionListener(ActionListener l)
addActionListener in interface VEditorl - Action Listenerprotected void fireActionPerformed()
public boolean isDirty()
VManagedEditor
isDirty in interface VManagedEditorpublic void rollbackChanges()
VManagedEditor
rollbackChanges in interface VManagedEditor
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||