info.joseluismartin.gui.bind
Class TextComponentAccessor

java.lang.Object
  extended by info.joseluismartin.gui.bind.AbstractControlAccessor
      extended by info.joseluismartin.gui.bind.TextComponentAccessor
All Implemented Interfaces:
ControlAccessor, EventListener, DocumentListener

public class TextComponentAccessor
extends AbstractControlAccessor
implements DocumentListener

ControlAccesor for JTextComponents.

Since:
1.1
Author:
Jose Luis Martin - (jlm@joseluismartin.info)
See Also:
ControlAccessor

Constructor Summary
TextComponentAccessor(Object control)
           
 
Method Summary
 void changedUpdate(DocumentEvent e)
          
 JTextComponent getControl()
          
 String getControlValue()
          Gets the control value
 void insertUpdate(DocumentEvent e)
          
 void removeUpdate(DocumentEvent e)
          
 void setControlValue(Object value)
          Sets the control value
 
Methods inherited from class info.joseluismartin.gui.bind.AbstractControlAccessor
addControlChangeListener, convertIfNecessary, fireControlChange, isEnabled, isTextControl, removeControlChangeListener, setControl, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextComponentAccessor

public TextComponentAccessor(Object control)
Parameters:
control -
Method Detail

getControlValue

public String getControlValue()
Gets the control value

Specified by:
getControlValue in interface ControlAccessor
Returns:
the control value

setControlValue

public void setControlValue(Object value)
Sets the control value

Specified by:
setControlValue in interface ControlAccessor
Parameters:
value - the value to set

getControl

public JTextComponent getControl()

Overrides:
getControl in class AbstractControlAccessor
Returns:
the control

insertUpdate

public void insertUpdate(DocumentEvent e)

Specified by:
insertUpdate in interface DocumentListener

removeUpdate

public void removeUpdate(DocumentEvent e)

Specified by:
removeUpdate in interface DocumentListener

changedUpdate

public void changedUpdate(DocumentEvent e)

Specified by:
changedUpdate in interface DocumentListener


Copyright © 2013 JDAL. All Rights Reserved.