|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.coderight.jazz.form.FormField<V>
public abstract class FormField<V>
Base class for form fields.
Field Summary | |
---|---|
protected static JazzConfig |
Config
|
Constructor Summary | |
---|---|
FormField()
|
Method Summary | |
---|---|
protected void |
dispatchEvent(Event event)
|
protected void |
dispose()
Use this to cleanup any resources. |
void |
focus()
Sets focus to field. |
void |
focusNextField()
Sets focus to next field. |
void |
focusPreviousField()
Sets focus to previous field. |
Color |
getBackground()
Return field background color. |
String |
getBindID()
Returns bindID. |
Border |
getBorder()
Returns field border. |
JComponent |
getComponent()
|
Cursor |
getCursor()
Returns cursor. |
protected DataBinding<V> |
getDataBinding()
|
Color |
getForeground()
Returns field foreground color. |
protected FormView |
getForm()
|
LabelField |
getLabel()
Returns the LabelField for this field. |
protected FormControl |
getParent()
|
Dimension |
getPreferredSize()
Returns field preferred size. |
String |
getToolTip()
Returns field tooltip text. |
V |
getValue()
Returns field value. |
boolean |
hasFocus()
|
boolean |
isBindable()
Returns whether field is bindable. |
boolean |
isChanged()
Returns whether field value is changed. |
boolean |
isEnabled()
Return whether field is enabled. |
boolean |
isFocusable()
Returns whether field is focusable. |
boolean |
isOpaque()
Returns whether field is opaque. |
boolean |
isReadonly()
Returns whether field is read only, bind value is read but not stored (submit). |
boolean |
isShowing()
Returns whether field is visible (on screen). |
protected boolean |
isValueChanged(V newValue)
|
boolean |
isVisible()
Returns whether field is visible. |
protected void |
onChange()
|
protected void |
onClick()
|
protected void |
onDoubleClick()
|
protected void |
onFocusGained()
|
protected void |
onFocusLost()
|
protected void |
onMouseEnter()
|
protected void |
onMouseLeave()
|
protected void |
onPopup(Point point)
|
void |
registerKeyboardAction(Action action)
Provides keyboard bindings for Actions. |
void |
setBackground(Color color)
Sets field background color. |
protected void |
setBindID(String bindID)
|
void |
setBorder(Border border)
Sets field border. |
protected void |
setChanged(boolean changed)
|
protected void |
setComponent(JComponent component)
|
void |
setCursor(Cursor cursor)
Sets cursor. |
protected void |
setDataBinding(DataBinding<V> binding)
|
void |
setEnabled(boolean enabled)
Sets whether field is enabled. |
void |
setFocusable(boolean focusable)
Sets whether field is focusable. |
void |
setForeground(Color color)
Sets field foreground color. |
void |
setOnFocusGainedEvent(Event onfocusGainedEvent)
Sets field onfocusGainedEvent. |
void |
setOnFocusLostEvent(Event onfocusLostEvent)
Sets field onfocusLostEvent. |
void |
setOpaque(boolean opaque)
Sets whether field is opaque. |
void |
setPopupMenu(PopupMenu popup)
Sets field popup menu. |
void |
setPreferredSize(Dimension size)
Sets field preferred size. |
void |
setReadonly(boolean readonly)
Sets whether field is readonly. |
void |
setToolTip(String text)
Sets field tooltip text. |
void |
setValue(V value)
Sets field value. |
void |
setVisible(boolean visible)
Sets whether field is visible. |
protected String |
translate(String key)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static JazzConfig Config
Constructor Detail |
---|
public FormField()
Method Detail |
---|
protected void setComponent(JComponent component)
public JComponent getComponent()
protected final FormControl getParent()
protected final FormView getForm()
public void setPopupMenu(PopupMenu popup)
protected DataBinding<V> getDataBinding()
protected void setDataBinding(DataBinding<V> binding)
public boolean isBindable()
public String getBindID()
protected void setBindID(String bindID)
public V getValue()
public void setValue(V value)
protected boolean isValueChanged(V newValue)
protected void setChanged(boolean changed)
public boolean isChanged()
public boolean isReadonly()
public void setReadonly(boolean readonly)
protected String translate(String key)
public boolean hasFocus()
public void focus()
public void focusNextField()
public void focusPreviousField()
public boolean isFocusable()
public void setFocusable(boolean focusable)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public Border getBorder()
public void setBorder(Border border)
public Cursor getCursor()
public void setCursor(Cursor cursor)
public boolean isOpaque()
public void setOpaque(boolean opaque)
public String getToolTip()
public void setToolTip(String text)
public Dimension getPreferredSize()
public void setPreferredSize(Dimension size)
public Color getBackground()
public void setBackground(Color color)
public Color getForeground()
public void setForeground(Color color)
public boolean isVisible()
public void setVisible(boolean visible)
public boolean isShowing()
public LabelField getLabel()
public void setOnFocusGainedEvent(Event onfocusGainedEvent)
public void setOnFocusLostEvent(Event onfocusLostEvent)
protected void onPopup(Point point)
protected void onFocusGained()
protected void onFocusLost()
protected void onChange()
protected void onClick()
protected void onDoubleClick()
protected void onMouseEnter()
protected void onMouseLeave()
protected void dispatchEvent(Event event)
protected void dispose()
public void registerKeyboardAction(Action action)
Performs the Action
Event when the accelerator key is pressed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |