com.ds.fw.dv.list
Class FwDVActions

java.lang.Object
  |
  +--com.ds.fw.types.FwSimpleObject
        |
        +--com.ds.fw.dv.list.FwDVActions
All Implemented Interfaces:
java.lang.Cloneable, FwCopyableIF, FwDisplayableIF, FwSimpleObjectIF, java.io.Serializable

public class FwDVActions
extends FwSimpleObject

This class manipulates collections of links and appropriate actions for the edit table.

See Also:
Serialized Form

Field Summary
 java.util.Vector actions
          a vector with actions related with the links
 java.util.Vector links
          a vector with links
 long viewType
          If the actions has to be displayed
 
Constructor Summary
FwDVActions()
          Default constructor.
 
Method Summary
 void actionClear()
          Clears the actions collection.
 void addAction(int s)
          Adds action to the end of the actions collection.
 void addAction(java.lang.String s, java.lang.String name, int type)
          Adds action to the end of the actions collection.
 void addLink(com.ds.fw.dv.list.FwDVActionsLink s)
          Adds a link to the end of the links vector.
 int getAction(int i)
          Gets an action by index.
 com.ds.fw.dv.list.FwDVActionsLink getAction1(int i)
          Gets the link for an action with index i.
 com.ds.fw.dv.list.FwDVActionsLink getLink(int i)
          Gets a link by index.
 int getNBActions()
          Gets the number of available actions.
 java.lang.String getURL(int i, com.ds.fw.dv.list.FwDVListData data, int row, com.ds.fw.dv.list.FwDVListProperties op, com.ds.fw.dv.params.FwDVParams param)
          Gets a URL by index.
 long getViewType()
           
 int isValidLink(int li)
          Checks if the link by index li is valid.
 void setAction(int i, int s)
          Sets an action by index.
 void setLink(int i, com.ds.fw.dv.list.FwDVActionsLink s)
          Sets a link by index.
 void setViewType(long l)
           
 
Methods inherited from class com.ds.fw.types.FwSimpleObject
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, printStackTrace, toString, toStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

viewType

public long viewType
If the actions has to be displayed


links

public java.util.Vector links
a vector with links


actions

public java.util.Vector actions
a vector with actions related with the links

Constructor Detail

FwDVActions

public FwDVActions()
Default constructor.

Method Detail

getViewType

public long getViewType()

setViewType

public void setViewType(long l)

getLink

public com.ds.fw.dv.list.FwDVActionsLink getLink(int i)
Gets a link by index.

Parameters:
i - the index
Returns:
the link

setLink

public void setLink(int i,
                    com.ds.fw.dv.list.FwDVActionsLink s)
Sets a link by index.

Parameters:
i - index of the link to be set
s - the link to be set

addLink

public void addLink(com.ds.fw.dv.list.FwDVActionsLink s)
Adds a link to the end of the links vector.

Parameters:
s - the link to be add

isValidLink

public int isValidLink(int li)
Checks if the link by index li is valid.

Parameters:
li - link index
Returns:
1 if is valid, otherwise 0

getNBActions

public int getNBActions()
Gets the number of available actions.


actionClear

public void actionClear()
Clears the actions collection.


getAction

public int getAction(int i)
Gets an action by index.

Parameters:
i - the index
Returns:
the action

getAction1

public com.ds.fw.dv.list.FwDVActionsLink getAction1(int i)
Gets the link for an action with index i.

Parameters:
i - action index
Returns:
a link

setAction

public void setAction(int i,
                      int s)
Sets an action by index.

Parameters:
i - the index
s - the action to be set

addAction

public void addAction(int s)
Adds action to the end of the actions collection.

Parameters:
s - action to be added

addAction

public void addAction(java.lang.String s,
                      java.lang.String name,
                      int type)
Adds action to the end of the actions collection.

Parameters:
s - the action's link
name - the name of the action
type - the type of the action

getURL

public java.lang.String getURL(int i,
                               com.ds.fw.dv.list.FwDVListData data,
                               int row,
                               com.ds.fw.dv.list.FwDVListProperties op,
                               com.ds.fw.dv.params.FwDVParams param)
Gets a URL by index. If the link has meta tags they are replaced.