zisko.multicastor.program.data
Class UserInputData

java.lang.Object
  extended by zisko.multicastor.program.data.UserInputData

public class UserInputData
extends java.lang.Object


Constructor Summary
UserInputData()
          creates the user input data object with default values.
 
Method Summary
 void changeColumns(int from, int to)
          lets you change the order of the colums
 java.lang.String getActiveButton()
          returns the state of the active button
 java.util.ArrayList<java.lang.Integer> getColumnOrder()
          return the column order
 java.util.ArrayList<java.lang.Integer> getColumnVisbility()
          returns the column visibility of all columns
 java.lang.String getGroupadress()
          returns the multicast address
 java.lang.String getNetworkInterface()
          returns the network interface
 int getOriginalIndex(int i)
          returns the index of the original ordner
 java.lang.String getPacketlength()
          returns the packet length
 java.lang.String getPacketrate()
          returns the packet rate
 java.lang.String getPort()
          returns the port
 java.lang.String getSelectedTab()
          returns the selected tab
 int getSourceAdressIndex()
          returns index of network adapter
 java.lang.String getTtl()
          returns the time to live
 MulticastData.Typ getTyp()
          returns typ of selected tab
 void hideColumn(int i)
          hide colums i
 boolean isActive()
          returns state of active button
 boolean isAutoSaveEnabled()
          returns whether auto save is enabled
 void resetColumns()
          resets the view of the table
 void setActiveButton(boolean activeButton)
          sets the state of the active button
 void setColumnOrder(java.util.ArrayList<java.lang.Integer> columnOrder)
          sets the column order via array list
 void setColumnOrderString(java.lang.String columnOrderString)
          sets column order as String
 void setColumnVisibility(java.util.ArrayList<java.lang.Integer> columnVisibility)
          sets column visibility via array list
 void setColumnVisibilityString(java.lang.String columnVisibilityString)
          sets the columns visibility via string
 void setGroupadress(java.lang.String groupadress)
          sets the multicast ip address
 void setIsAutoSaveEnabled(java.lang.String isAutoSaveEnabled)
          sets the autosave enabled function
 void setNetworkInterface(int selectedInterface)
          sets the network interface
 void setPacketlength(java.lang.String packetlength)
          sets the packet length
 void setPacketrate(java.lang.String packetrate)
          sets the packet rate
 void setPort(java.lang.String port)
          sets the port
 void setSelectedRows(int[] i)
          sets the selected rows
 void setSelectedRowsArray(int[] selectedRows)
          selects the rows with the ids out of selectedRows
 void setSelectedTab(MulticastData.Typ typ)
          sets the selected tab
 void setTtl(java.lang.String ttl)
          sets the time to live
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserInputData

public UserInputData()
creates the user input data object with default values. Restores the default table view before.

Method Detail

getSelectedTab

public java.lang.String getSelectedTab()
returns the selected tab

Returns:
the selected tab as String

getGroupadress

public java.lang.String getGroupadress()
returns the multicast address

Returns:
the multicast address as String

getNetworkInterface

public java.lang.String getNetworkInterface()
returns the network interface

Returns:
the network interface as String

getPort

public java.lang.String getPort()
returns the port

Returns:
the port as String

getTtl

public java.lang.String getTtl()
returns the time to live

Returns:
the time to live as String

getPacketrate

public java.lang.String getPacketrate()
returns the packet rate

Returns:
the packet rate as String

getPacketlength

public java.lang.String getPacketlength()
returns the packet length

Returns:
the packet length as String

getActiveButton

public java.lang.String getActiveButton()
returns the state of the active button

Returns:
the state of the active button as String

setSelectedTab

public void setSelectedTab(MulticastData.Typ typ)
sets the selected tab

Parameters:
typ - type of tab (L2_SENDER, L2_RECEIVER, L3_SENDER, L3_RECEIVER, CONFIG)

setGroupadress

public void setGroupadress(java.lang.String groupadress)
sets the multicast ip address

Parameters:
groupadress - multicast ip address as String

setNetworkInterface

public void setNetworkInterface(int selectedInterface)
sets the network interface

Parameters:
selectedInterface - the network interface to be set

setPort

public void setPort(java.lang.String port)
sets the port

Parameters:
port - the port to be set

setTtl

public void setTtl(java.lang.String ttl)
sets the time to live

Parameters:
ttl - the time to live to be set

setPacketrate

public void setPacketrate(java.lang.String packetrate)
sets the packet rate

Parameters:
packetrate - the packet rate to be set

setPacketlength

public void setPacketlength(java.lang.String packetlength)
sets the packet length

Parameters:
packetlength - the packet length to be set

setActiveButton

public void setActiveButton(boolean activeButton)
sets the state of the active button

Parameters:
activeButton - the state of the active button

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setSelectedRows

public void setSelectedRows(int[] i)
sets the selected rows

Parameters:
i - int array of ids of rows to be selected

resetColumns

public void resetColumns()
resets the view of the table


hideColumn

public void hideColumn(int i)
hide colums i

Parameters:
i - the column id to be hidden

changeColumns

public void changeColumns(int from,
                          int to)
lets you change the order of the colums

Parameters:
from - id of first column
to - id of target column

getColumnOrder

public java.util.ArrayList<java.lang.Integer> getColumnOrder()
return the column order

Returns:
the column order

getColumnVisbility

public java.util.ArrayList<java.lang.Integer> getColumnVisbility()
returns the column visibility of all columns

Returns:
the column visibility

getOriginalIndex

public int getOriginalIndex(int i)
returns the index of the original ordner

Parameters:
i - the current index
Returns:
the original index

setColumnOrderString

public void setColumnOrderString(java.lang.String columnOrderString)
sets column order as String

Parameters:
columnOrderString - column order string

setSelectedRowsArray

public void setSelectedRowsArray(int[] selectedRows)
selects the rows with the ids out of selectedRows

Parameters:
selectedRows - int array with ids of rows to be selected

setColumnVisibilityString

public void setColumnVisibilityString(java.lang.String columnVisibilityString)
sets the columns visibility via string

Parameters:
columnVisibilityString - string to controll column visibility

setColumnVisibility

public void setColumnVisibility(java.util.ArrayList<java.lang.Integer> columnVisibility)
sets column visibility via array list

Parameters:
columnVisibility - array list to controll column visibility

setColumnOrder

public void setColumnOrder(java.util.ArrayList<java.lang.Integer> columnOrder)
sets the column order via array list

Parameters:
columnOrder - array list to controll column order

getTyp

public MulticastData.Typ getTyp()
returns typ of selected tab

Returns:
type (L2/L3 Sender/Receiver)

isActive

public boolean isActive()
returns state of active button

Returns:
state of active button

isAutoSaveEnabled

public boolean isAutoSaveEnabled()
returns whether auto save is enabled

Returns:
returns whether auto save is enabled

getSourceAdressIndex

public int getSourceAdressIndex()
returns index of network adapter

Returns:
index of network adapter

setIsAutoSaveEnabled

public void setIsAutoSaveEnabled(java.lang.String isAutoSaveEnabled)
sets the autosave enabled function

Parameters:
isAutoSaveEnabled - string to set it