|
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.VDate
public class VDate
Date Edit. Maintains data as Timestamp
| 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 | |
|---|---|
protected int |
m_displayType
|
| 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 | |
|---|---|
VDate()
IDE Bean Constructor |
|
VDate(int displayType)
Simple Constructor |
|
VDate(String columnName,
boolean mandatory,
boolean isReadOnly,
boolean isUpdateable,
int displayType,
String title)
Create right aligned Date field |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Action Listener (Button) |
void |
addActionListener(ActionListener l)
Add Action Listner |
void |
dispose()
Dispose |
void |
focusGained(FocusEvent e)
Focus Gained - Save for Escape |
void |
focusLost(FocusEvent e)
Data Binding to to GridController. |
String |
getDisplay()
Return Display Value |
Timestamp |
getTimestamp()
Return Editor value |
Object |
getValue()
Return Editor value (Timestamp) |
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 |
void |
propertyChange(PropertyChangeEvent evt)
Property Change Listener |
void |
removeActionListener(ActionListener l)
Remove Action Listner |
void |
requestFocus()
Request Focus |
void |
setBackground(boolean error)
Set Background based on ReadWrite / mandatory / error |
protected void |
setDocument(Document doc)
Set Document |
void |
setEnabled(boolean enabled)
Set Enabled |
void |
setField(GridField mField)
Set Field/WindowNo for ValuePreference |
void |
setForeground(Color fg)
Set Foreground |
void |
setFormat()
Set Format Required when Format/Locale changed |
void |
setMandatory(boolean mandatory)
Set Mandatory (and back bolor) |
void |
setReadWrite(boolean value)
Set ReadWrite - field is always r/o for Time or DateTime |
void |
setValue(Object value)
Set Editor to value |
static Timestamp |
startCalendar(Container jc,
Timestamp value,
SimpleDateFormat format,
int displayType,
String title)
Invalid Entry - Start Calendar |
| 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 |
|---|
protected int m_displayType
| Constructor Detail |
|---|
public VDate()
public VDate(int displayType)
displayType - display Type
public VDate(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 - docpublic 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(boolean error)
setBackground in interface CEditorerror - if true, set background to error color, otherwise mandatory/ReadWritepublic void setForeground(Color fg)
setForeground in interface VEditorsetForeground in class JComponentfg - colorpublic void setFormat()
public void requestFocus()
requestFocus in class JComponentpublic void setValue(Object value)
setValue in interface CEditorvalue - timestamp/date or String to be parsedpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - eventpublic Timestamp getTimestamp()
public Object getValue()
getValue in interface CEditorpublic String getDisplay()
getDisplay in interface CEditorpublic 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 - event
public static Timestamp startCalendar(Container jc,
Timestamp value,
SimpleDateFormat format,
int displayType,
String title)
jc - parentvalue - valueformat - formatdisplayType - display typetitle - title
public void setField(GridField mField)
setField in interface VEditormField - MFieldpublic void setEnabled(boolean enabled)
setEnabled in class JComponentenabled - enabledpublic void removeActionListener(ActionListener l)
l - Action Listenerpublic void addActionListener(ActionListener l)
addActionListener in interface VEditorl - Action Listener
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||