Methods Summary |
---|
public void | addPropertyChangeListener(java.beans.PropertyChangeListener l)
listeners.addPropertyChangeListener(l);
|
public java.lang.String | getAsText() return value;
|
public java.awt.Component | getCustomEditor()
final JTextArea t = new JTextArea(value, 5, 30); // 5 rows, 30 cols
t.getDocument().addDocumentListener(new DocumentListener() {
public void insertUpdate(DocumentEvent e) { update(); }
public void changedUpdate(DocumentEvent e) { update(); }
public void removeUpdate(DocumentEvent e) { update(); }
public void update() {
value = t.getText();
listeners.firePropertyChange(null, null, null);
}
});
return new JScrollPane(t);
|
public java.lang.String | getJavaInitializationString() return "\"" + value + "\"";
|
public java.lang.String[] | getTags() return null;
|
public java.lang.Object | getValue() return value;
|
public boolean | isPaintable() return true;
|
public void | paintValue(java.awt.Graphics g, java.awt.Rectangle r)
g.setClip(r);
g.drawString("Click to edit...", r.x+5, r.y+15);
|
public void | removePropertyChangeListener(java.beans.PropertyChangeListener l)
listeners.removePropertyChangeListener(l);
|
public void | setAsText(java.lang.String s) value = s;
|
public void | setValue(java.lang.Object o) value = (String) o;
|
public boolean | supportsCustomEditor() return true;
|