nl.coderight.jazz.form.field
Class MemoField

java.lang.Object
  extended by nl.coderight.jazz.form.FormField<V>
      extended by nl.coderight.jazz.form.FormControl<V>
          extended by nl.coderight.jazz.form.field.scrollable.ScrollableField<String>
              extended by nl.coderight.jazz.form.field.MemoField
All Implemented Interfaces:
ClipboardSupport, Editable, Validation

public class MemoField
extends ScrollableField<String>
implements Validation, Editable, ClipboardSupport

Implementation of a JTextArea.

See Also:
JTextArea

Nested Class Summary
 
Nested classes/interfaces inherited from class nl.coderight.jazz.form.field.scrollable.ScrollableField
ScrollableField.ScrollBarCorner, ScrollableField.ScrollBarPolicy
 
Field Summary
 
Fields inherited from class nl.coderight.jazz.form.FormField
Config
 
Constructor Summary
MemoField()
           
MemoField(String bindID)
           
 
Method Summary
 void copy()
           
protected  JTextArea createField()
           
 void cut()
           
 Point getCaretPosition()
           
 int getColumns()
           
 ValidationError getError()
           
protected  JTextArea getField()
           
 boolean getLineWrap()
           
 int getMaxLength()
           
protected  Dimension getPreferredViewportSize()
           
 int getRows()
           
 String getValue()
          Returns field value.
 boolean getWrapStyleWord()
           
 boolean isEditable()
           
 boolean isValid()
           
protected  void onChange()
           
 void paste()
           
 void print()
           
 void setColumns(int cols)
           
 void setCopyAction(Action action)
           
 void setCutAction(Action action)
           
 void setEditable(boolean editable)
           
 void setEnabled(boolean enabled)
          Sets whether or not this control is enabled.
 void setLineWrap(boolean lineWrap)
           
 void setMaxLength(int maxLength)
           
 void setOnChangeAction(Action onChangeAction)
           
 void setOnChangeEvent(Event onChangeEvent)
           
 void setPasteAction(Action action)
           
 void setRows(int rows)
           
 void setValue(String value)
          Sets field value.
 void setWrapStyleWord(boolean wrapStyleWord)
           
 void validate()
           
 
Methods inherited from class nl.coderight.jazz.form.field.scrollable.ScrollableField
getComponent, getFocusComponent, getPreferredSize, getViewportSize, isOpaque, isScrollable, onViewportChanged, setBackground, setBackgroundImage, setBorder, setColumnHeader, setComponent, setCorner, setForeground, setOpaque, setPreferredSize, setRowHeader, setScrollable, setScrollBarPolicy, setTitle
 
Methods inherited from class nl.coderight.jazz.form.FormControl
addField, addField, focus, focusField, focusNextField, focusPreviousField, getBindID, getFields, hasFocus, registerKeyboardAction, setComponent, setLayout
 
Methods inherited from class nl.coderight.jazz.form.FormField
dispatchEvent, dispose, focusNextField, focusPreviousField, getBackground, getBorder, getCursor, getDataBinding, getForeground, getForm, getLabel, getParent, getToolTip, isBindable, isChanged, isEnabled, isFocusable, isReadonly, isShowing, isValueChanged, isVisible, onClick, onDoubleClick, onFocusGained, onFocusLost, onMouseEnter, onMouseLeave, onPopup, setBindID, setChanged, setCursor, setDataBinding, setFocusable, setOnFocusGainedEvent, setOnFocusLostEvent, setPopupMenu, setReadonly, setToolTip, setVisible, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoField

public MemoField()

MemoField

public MemoField(String bindID)
Method Detail

createField

protected JTextArea createField()

getField

protected JTextArea getField()

getPreferredViewportSize

protected Dimension getPreferredViewportSize()

getValue

public String getValue()
Description copied from class: FormField
Returns field value.

Overrides:
getValue in class FormField<String>

setValue

public void setValue(String value)
Description copied from class: FormField
Sets field value.

Overrides:
setValue in class FormField<String>

getColumns

public int getColumns()

setColumns

public void setColumns(int cols)

getRows

public int getRows()

setRows

public void setRows(int rows)

getLineWrap

public boolean getLineWrap()

setLineWrap

public void setLineWrap(boolean lineWrap)

getWrapStyleWord

public boolean getWrapStyleWord()

setWrapStyleWord

public void setWrapStyleWord(boolean wrapStyleWord)

isEditable

public boolean isEditable()
Specified by:
isEditable in interface Editable

setEditable

public void setEditable(boolean editable)
Specified by:
setEditable in interface Editable

setEnabled

public void setEnabled(boolean enabled)
Description copied from class: FormControl
Sets whether or not this control is enabled.

Overrides:
setEnabled in class ScrollableField<String>

getCaretPosition

public Point getCaretPosition()

getMaxLength

public int getMaxLength()

setMaxLength

public void setMaxLength(int maxLength)

getError

public ValidationError getError()
Specified by:
getError in interface Validation

isValid

public boolean isValid()
Specified by:
isValid in interface Validation

validate

public void validate()
              throws ValidationException
Specified by:
validate in interface Validation
Throws:
ValidationException

print

public void print()
           throws PrinterException
Throws:
PrinterException

copy

public void copy()
Specified by:
copy in interface ClipboardSupport

cut

public void cut()
Specified by:
cut in interface ClipboardSupport

paste

public void paste()
Specified by:
paste in interface ClipboardSupport

setCopyAction

public void setCopyAction(Action action)

setCutAction

public void setCutAction(Action action)

setPasteAction

public void setPasteAction(Action action)

setOnChangeEvent

public void setOnChangeEvent(Event onChangeEvent)

setOnChangeAction

public void setOnChangeAction(Action onChangeAction)

onChange

protected void onChange()
Overrides:
onChange in class FormField<String>


Copyright 2010 CodeRight, All rights reserved.