com.fatwire.cs.ui.view.renderer.attribute
Class BasicMultiDataTemplate
java.lang.Object
BaseRenderer
com.fatwire.cs.ui.view.renderer.attribute.BasicDataRenderer
com.fatwire.cs.ui.view.renderer.attribute.BasicDataTemplate
com.fatwire.cs.ui.view.renderer.attribute.BasicMultiDataTemplate
public abstract class BasicMultiDataTemplate
- extends BasicDataTemplate
Created by IntelliJ IDEA.
User: jpinto
Date: Oct 19, 2006
Time: 2:19:15 PM
To change this template use File | Settings | File Templates.
Method Summary |
void |
addNewField(ActionEvent event)
|
protected void |
cleanAuxMap(java.util.Map auxMap,
int iDataIndex)
* This method deletes all items in auzMap relating to date for the index provided |
protected static void |
cleanAuxMap(java.util.Map auxMap,
java.util.List<java.lang.String> fieldNames,
int iDataIndex)
* This method deletes all items in auzMap relating to date for the index provided |
protected java.util.List |
getAttributeData(ActionEvent event)
|
static java.lang.String |
getAuxKey(java.lang.String sField,
int dataIndex)
This class creates the key used in AttributeData.auxMap. |
protected java.util.Map |
getAuxMap(ActionEvent event)
|
protected void |
moveAuxMap(java.util.Map auxMap,
int iOriginalindex,
int iNewIndex)
This method moves data from original index to new index and deletes the orginal values |
void |
moveDown(ActionEvent event)
|
void |
moveUp(ActionEvent event)
|
void |
removeItem(ActionEvent event)
|
protected void |
swapAuxMap(java.util.Map auxMap,
int index1,
int index2)
Swaps all items in auzMap relating to date for the given indexes |
Methods inherited from class com.fatwire.cs.ui.view.renderer.attribute.BasicDataRenderer |
createAddNew, createAddSelectedItems, createAttributeButtons, createCreateNew, createDownButton, createRemoveButton, createUpButton, getLabelText, getNoValueText, isAddNewButtonEnabled, isAddSelectedEnabled, isCreateNewEnabled, isEmpty, isRemoveButtonEnabled, isUpDownButtonEnabled, placeControlsAndLabel, render |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicMultiDataTemplate
public BasicMultiDataTemplate(java.util.List<java.lang.String> fieldNames)
getAuxKey
public static java.lang.String getAuxKey(java.lang.String sField,
int dataIndex)
- This class creates the key used in AttributeData.auxMap.
- Parameters:
dField
- value type of key i.e. Date, HOUR, MINUTEdataIndex
- in AttributeData.data for data you wish to retrieve
- Returns:
addNewField
public void addNewField(ActionEvent event)
- Overrides:
addNewField
in class BasicDataRenderer
moveUp
public void moveUp(ActionEvent event)
- Overrides:
moveUp
in class BasicDataRenderer
moveDown
public void moveDown(ActionEvent event)
- Overrides:
moveDown
in class BasicDataRenderer
removeItem
public void removeItem(ActionEvent event)
- Overrides:
removeItem
in class BasicDataRenderer
getAuxMap
protected java.util.Map getAuxMap(ActionEvent event)
getAttributeData
protected java.util.List getAttributeData(ActionEvent event)
moveAuxMap
protected void moveAuxMap(java.util.Map auxMap,
int iOriginalindex,
int iNewIndex)
- This method moves data from original index to new index and deletes the orginal values
- Parameters:
auxMap
- dataiOriginalindex
- of values to move to newIndexiNewIndex
- to move data to
swapAuxMap
protected void swapAuxMap(java.util.Map auxMap,
int index1,
int index2)
- Swaps all items in auzMap relating to date for the given indexes
- Parameters:
auxMap
- containing data to be swappedindex1
- of data to be swappedindex2
- of data to be swapped
cleanAuxMap
protected void cleanAuxMap(java.util.Map auxMap,
int iDataIndex)
- * This method deletes all items in auzMap relating to date for the index provided
- Parameters:
auxMap
- iDataIndex
- to be removed
cleanAuxMap
protected static void cleanAuxMap(java.util.Map auxMap,
java.util.List<java.lang.String> fieldNames,
int iDataIndex)
- * This method deletes all items in auzMap relating to date for the index provided
- Parameters:
auxMap
- iDataIndex
- to be removed