|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.objectweb.jac.aspects.gui.swing.CurrencyEditor
A Swing editor component for fields values (primitive types).
Field Summary |
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 | |
CurrencyEditor(Class type)
Constructs a new primitive field editor. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
|
protected double |
getRealValue()
|
Object |
getValue()
Gets the value of the edited field. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
onClose()
|
void |
requestFocus()
Set the focus on the textField |
void |
selectCurrency(String currency)
|
void |
setHeight(int height)
|
protected void |
setRealValue(double value)
|
void |
setValue(Object value)
Sets the value of the edited field. |
void |
setWidth(int width)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CurrencyEditor(Class type)
Method Detail |
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void selectCurrency(String currency)
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
protected void setRealValue(double value)
protected double getRealValue()
public Object getValue()
public void setValue(Object value)
value
- a valuepublic void requestFocus()
requestFocus
in class JComponent
public void setWidth(int width)
public void setHeight(int height)
public void onClose()
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |