g-Eclipse
Release 1.0.0

eu.geclipse.jsdl.ui.widgets
Class DataStageInTable

java.lang.Object
  extended by eu.geclipse.jsdl.ui.widgets.DataStageInTable

public class DataStageInTable
extends java.lang.Object

Set of controls used to handle presentation of Data Staging In (see DataStagingType details to user. Information is presented in a table with two columns (name of a file and a source URI). User can add new entry to this table and edit or remove existing ones.


Field Summary
static int BUTTONS_BOTTOM
          This constant is used to inform the class' constructor that buttons (Add, Edit and Remove button) should be placed below the table.
static int BUTTONS_RIGHT
          This constant is used to inform the class' constructor that buttons (Add, Edit and Remove button) should be placed on the right side of the table.
 
Constructor Summary
DataStageInTable(Composite parent, int buttonsPosition)
          Creates new instance of table, table viewer and 3 buttons (add, edit and remove)
DataStageInTable(Composite parent, java.util.List<DataStagingType> input, int buttonsPosition)
           
 
Method Summary
 java.util.List<DataStagingType> getDataStagingType()
          Returns data kept in table
 void setInput(java.util.List<DataStagingType> input)
           
 void updateInput(java.util.List<DataStagingType> newInput)
          Updates the table input
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUTTONS_RIGHT

public static final int BUTTONS_RIGHT
This constant is used to inform the class' constructor that buttons (Add, Edit and Remove button) should be placed on the right side of the table.

See Also:
Constant Field Values

BUTTONS_BOTTOM

public static final int BUTTONS_BOTTOM
This constant is used to inform the class' constructor that buttons (Add, Edit and Remove button) should be placed below the table.

See Also:
Constant Field Values
Constructor Detail

DataStageInTable

public DataStageInTable(Composite parent,
                        int buttonsPosition)
Creates new instance of table, table viewer and 3 buttons (add, edit and remove)

Parameters:
parent - control's parent
buttonsPosition -

DataStageInTable

public DataStageInTable(Composite parent,
                        java.util.List<DataStagingType> input,
                        int buttonsPosition)
Parameters:
parent -
input -
buttonsPosition -
Method Detail

getDataStagingType

public java.util.List<DataStagingType> getDataStagingType()
Returns data kept in table

Returns:
list of DataStagingType objects

setInput

public void setInput(java.util.List<DataStagingType> input)
Parameters:
input -

updateInput

public void updateInput(java.util.List<DataStagingType> newInput)
Updates the table input

Parameters:
newInput - new object that will be used as an input

g-Eclipse
Release 1.0.0