|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsemorg.gui.util.ConfigureListWidget.TableColumnPropertyContentProvider
class ConfigureListWidget.TableColumnPropertyContentProvider
This class provides the content of the columns lists, i.e. column names, their alignment and the width.
Field Summary | |
---|---|
private Vector<TableColumnProperty> |
input
The input |
private org.eclipse.jface.viewers.ListViewer |
listViewer
|
Constructor Summary | |
---|---|
ConfigureListWidget.TableColumnPropertyContentProvider()
|
Method Summary | |
---|---|
void |
addAllColumns(Vector<TableColumnProperty> columns)
Adds all TableColumnProperty instance in the given vector to
the input of this content provider. |
void |
addColumn(TableColumnProperty column)
Adds column to the input of this content provider. |
void |
dispose()
|
Object[] |
getElements(Object arg0)
Returns the input as an array of objects. |
Vector<TableColumnProperty> |
getInput()
|
void |
inputChanged(org.eclipse.jface.viewers.Viewer viewer,
Object oldInput,
Object newInput)
Sets the list viewer listViewer and its content
input to the given values. |
void |
moveDown(TableColumnProperty selectedColumn)
Moves the given column down by one position in the input of
this content provider, i.e. the index gets incremented by one. |
void |
moveUp(TableColumnProperty selectedColumn)
Moves the given column up by one position in the input of
this content provider, i.e. the index gets decremented by one. |
void |
removeAllColumns(Vector<TableColumnProperty> columns)
Removes all TableColumnProperty instances in the given vector
from the input of this content provider. |
void |
removeColumn(TableColumnProperty column)
Removes a column from the input of this content provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.eclipse.jface.viewers.ListViewer listViewer
private Vector<TableColumnProperty> input
Constructor Detail |
---|
ConfigureListWidget.TableColumnPropertyContentProvider()
Method Detail |
---|
public void inputChanged(org.eclipse.jface.viewers.Viewer viewer, Object oldInput, Object newInput)
listViewer
and its content
input
to the given values.
inputChanged
in interface org.eclipse.jface.viewers.IContentProvider
viewer
- the new viewer of this
ConfigureListWidget.TableColumnPropertyContentProvider
newInput
- the new input of this
ConfigureListWidget.TableColumnPropertyContentProvider
public Object[] getElements(Object arg0)
input
as an array of objects.
getElements
in interface org.eclipse.jface.viewers.IStructuredContentProvider
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IContentProvider
public void addColumn(TableColumnProperty column)
column
- the TableColumnProperty
to add to the
input
.public void removeColumn(TableColumnProperty column)
column
- the TableColumnProperty
instance to remove
from the input
.public void removeAllColumns(Vector<TableColumnProperty> columns)
TableColumnProperty
instances in the given vector
from the input of this content provider.
columns
- vector of columns to remove from the input
.public void addAllColumns(Vector<TableColumnProperty> columns)
TableColumnProperty
instance in the given vector to
the input of this content provider.
columns
- vector of columns to add to the input
.public Vector<TableColumnProperty> getInput()
input
.public void moveUp(TableColumnProperty selectedColumn)
input
of
this content provider, i.e. the index gets decremented by one.
selectedColumn
- column to move up by one postionpublic void moveDown(TableColumnProperty selectedColumn)
input
of
this content provider, i.e. the index gets incremented by one.
selectedColumn
- columns to move down by one position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |