ElegantJ Tables Java API Specification v1.1

com.elegantj.editors
Class VectorEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended bycom.elegantj.editors.VectorEditor
All Implemented Interfaces:
java.beans.PropertyEditor
Direct Known Subclasses:
ArrayEditor

public class VectorEditor
extends java.beans.PropertyEditorSupport

This class provides the editor for the vector.


Constructor Summary
VectorEditor()
          Default constructor.
 
Method Summary
 boolean addString(java.lang.String str)
          Adds an string to the vector.
 boolean editString(java.lang.String str, int nIndex)
          Edits an string to the vector at specified position.
 void exchange(int nIndex1, int nIndex2)
          Exchanges two strings from the vector.
 java.lang.String getAsText()
           
 java.awt.Component getCustomEditor()
           
 java.lang.String getJavaInitializationString()
           
 java.lang.Object getValue()
           
 boolean isPaintable()
           
 boolean moveItems(int dx, int[] array)
           
 void paintValue(java.awt.Graphics g, java.awt.Rectangle r)
           
 boolean removeAll()
          Removes all strings from the vector.
 boolean removeItem(int nIndex)
          Removes a string at specified index from the vector.
 boolean removeItems(int[] array)
           
 boolean removeString(java.lang.String str)
          Removes an string from the vector.
 void setValue(java.lang.Object vector)
           
 boolean supportsCustomEditor()
           
 java.lang.String toString()
          make the string representation.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getTags, removePropertyChangeListener, setAsText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VectorEditor

public VectorEditor()
Default constructor.

Method Detail

supportsCustomEditor

public boolean supportsCustomEditor()

isPaintable

public boolean isPaintable()

paintValue

public void paintValue(java.awt.Graphics g,
                       java.awt.Rectangle r)

getCustomEditor

public java.awt.Component getCustomEditor()

getJavaInitializationString

public java.lang.String getJavaInitializationString()

getAsText

public java.lang.String getAsText()

setValue

public void setValue(java.lang.Object vector)

getValue

public java.lang.Object getValue()

addString

public boolean addString(java.lang.String str)
Adds an string to the vector.

Returns:
true if the string is successfully added.

editString

public boolean editString(java.lang.String str,
                          int nIndex)
Edits an string to the vector at specified position.

Returns:
true if the string is successfully edited.

removeString

public boolean removeString(java.lang.String str)
Removes an string from the vector.

Returns:
true if the string is successfully removed.

removeItem

public boolean removeItem(int nIndex)
Removes a string at specified index from the vector.

Returns:
true if the string is successfully removed.

removeAll

public boolean removeAll()
Removes all strings from the vector.

Returns:
true if the all strings are successfully removed.

exchange

public void exchange(int nIndex1,
                     int nIndex2)
Exchanges two strings from the vector.


removeItems

public boolean removeItems(int[] array)

moveItems

public boolean moveItems(int dx,
                         int[] array)

toString

public java.lang.String toString()
make the string representation.

Returns:
The string representation of the vector.

ElegantJ Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.