public class OdsxDS_EXTERNALREFERENCEListModel
extends javax.swing.AbstractListModel
| Property Keyword | Datatype | Default | Description | 
|---|---|---|---|
| OdsxDS_EXTERNALREFERENCEListModel.Type | int | 0 | The type of preselected display value. The default stands for the description, 1 for the mimetype and 2 for the location. | 
, 
Serialized Form| Constructor and Description | 
|---|
OdsxDS_EXTERNALREFERENCEListModel(T_ExternalReference[] initialValue)
Create the model. 
 | 
OdsxDS_EXTERNALREFERENCEListModel(T_ExternalReference[] initialValue,
                                 int column)
Create the model. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(T_ExternalReference elem)
Add a new element at the end of list. 
 | 
boolean | 
down(int index)
Move the element belongs to given index one position down. 
 | 
T_ExternalReference[] | 
get()
Get the external reference definitions. 
 | 
int | 
getColumn()
Get the actual column value. 
 | 
java.lang.Object | 
getElementAt(int index)
Get the element belongs to the given index. 
 | 
int | 
getSize()
Get the total number of element in list. 
 | 
void | 
remove(int index)
Remove the element belongs to the given index from list. 
 | 
void | 
replace(T_ExternalReference elem,
       int index)
Replace the element belongs to the given index by the given element. 
 | 
void | 
set(T_ExternalReference[] initialValue)
Set a new list of external reference defintions. 
 | 
void | 
setColumn(int column)
Set a column. 
 | 
boolean | 
up(int index)
Move the element belongs to given index one position up. 
 | 
public OdsxDS_EXTERNALREFERENCEListModel(T_ExternalReference[] initialValue)
initialValue - An array of external references.public OdsxDS_EXTERNALREFERENCEListModel(T_ExternalReference[] initialValue, int column)
initialValue - An array of external references.column - the initial column.public T_ExternalReference[] get()
public void set(T_ExternalReference[] initialValue)
initialValue - An array of external references.public java.lang.Object getElementAt(int index)
index - the index into the array.public int getSize()
public void setColumn(int column)
column - public int getColumn()
public boolean up(int index)
index - the indexpublic boolean down(int index)
index - the indexpublic void remove(int index)
index - the index.public void replace(T_ExternalReference elem, int index)
elem - the new elementindex - the index of the new element.public void add(T_ExternalReference elem)
elem - the new element.