|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.cs.ui.view.renderer.attribute.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
Generates components that are to be displayed in Edit mode. That represents a Multi List Data Template for a specific attribute. We override edit mode but leave inspect mode to super class. This implementation leaves inspect mode rendering to the base class.
Field Summary |
---|
Fields inherited from class com.fatwire.cs.ui.view.renderer.attribute.BasicDataTemplate |
---|
_index |
Fields inherited from class com.fatwire.cs.ui.view.renderer.attribute.BasicDataRenderer |
---|
_20_PERCENT, _80_PERCENT, CENTER, CSTEXT_ALIGN_RIGHT |
Constructor Summary | |
---|---|
BasicMultiDataTemplate(java.util.List<java.lang.String> fieldNames)
|
Method Summary | |
---|---|
void |
addNewField(ActionEvent event)
This gets called when addNew button is clicked from a multi valued attribute in edit mode |
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 method 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)
This gets called when move Down button is clicked from a multi valued attribute in edit mode |
void |
moveUp(ActionEvent event)
This gets called when move Up button is clicked from a multi valued attribute in edit mode |
void |
removeItem(ActionEvent event)
This gets called when remove List Data button is clicked from a multi valued attribute in edit mode |
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.BasicDataTemplate |
---|
createComponents, createPreSave, generateID, getDataIndex, iterateData, renderData, validateDataType |
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 com.fatwire.cs.ui.view.renderer.attribute.BaseRenderer |
---|
createLabel, createList, createText, createText, formatId, generateID, generateLabelID, getContext, isMultiValued, isMultiValueOrdered, isSingleValued, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicMultiDataTemplate(java.util.List<java.lang.String> fieldNames)
Method Detail |
---|
public static java.lang.String getAuxKey(java.lang.String sField, int dataIndex)
sField
- value type of key i.e. Date, HOUR, MINUTEdataIndex
- in AttributeData.data for data you wish to retrieve
public void addNewField(ActionEvent event)
addNewField
in interface AdvancedAttributeRenderer
addNewField
in class BasicDataRenderer
event
- the ActionEvent when the component-specific action occurspublic void moveUp(ActionEvent event)
moveUp
in interface AdvancedAttributeRenderer
moveUp
in class BasicDataRenderer
event
- the ActionEvent when the component-specific action occurspublic void moveDown(ActionEvent event)
moveDown
in interface AdvancedAttributeRenderer
moveDown
in class BasicDataRenderer
event
- the ActionEvent when the component-specific action occurspublic void removeItem(ActionEvent event)
removeItem
in interface AdvancedAttributeRenderer
removeItem
in class BasicDataRenderer
event
- the ActionEvent when the component-specific action occursprotected java.util.Map getAuxMap(ActionEvent event)
protected java.util.List getAttributeData(ActionEvent event)
protected void moveAuxMap(java.util.Map auxMap, int iOriginalindex, int iNewIndex)
auxMap
- dataiOriginalindex
- of values to move to newIndexiNewIndex
- to move data toprotected void swapAuxMap(java.util.Map auxMap, int index1, int index2)
auxMap
- containing data to be swappedindex1
- of data to be swappedindex2
- of data to be swappedprotected void cleanAuxMap(java.util.Map auxMap, int iDataIndex)
auxMap
- iDataIndex
- to be removedprotected static void cleanAuxMap(java.util.Map auxMap, java.util.List<java.lang.String> fieldNames, int iDataIndex)
auxMap
- iDataIndex
- to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |