com.sapportals.wcm.util.controlstatus

Class SelectionField

java.lang.Object
  extended by com.sapportals.wcm.util.controlstatus.Field
      extended by com.sapportals.wcm.util.controlstatus.SelectionField
All Implemented Interfaces:
IField, ISelectionField

public class SelectionField
extends Field
implements ISelectionField

TBD: Description of the class.


Nested Class Summary
static class SelectionField.KeyValueList
           
static class SelectionField.KeyValuePair
          There is a possibility to sort given collection.
 
Constructor Summary
SelectionField(FieldIdentifier id, Properties values, String currentid, HashMap metainfo, boolean mutable, ICondition condition, Locale locale)
           
SelectionField(FieldIdentifier id, Properties values, String currentid, HashMap metainfo, Locale locale)
           
SelectionField(FieldIdentifier id, SelectionField.KeyValueList list, String currentid, MetaInfoMap metainfo, Locale locale)
           
 
Method Summary
 String getCurrentID()
           
 String getCurrentValue()
          returns the value usable for rendering for the current ID.
 SelectionField.KeyValueList getKeyValueList()
           
 Properties getValueList()
           
 void setCurrentID(String id)
           
 
Methods inherited from class com.sapportals.wcm.util.controlstatus.Field
getIdentifier, getInitialValue, getMetaInfo, getStatusInformation, isReadOnly, setCurrentValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sapportals.wcm.util.controlstatus.IField
getIdentifier, getMetaInfo, getStatusInformation, isReadOnly, setCurrentValue
 

Constructor Detail

SelectionField

public SelectionField(FieldIdentifier id,
                      Properties values,
                      String currentid,
                      HashMap metainfo,
                      boolean mutable,
                      ICondition condition,
                      Locale locale)

SelectionField

public SelectionField(FieldIdentifier id,
                      Properties values,
                      String currentid,
                      HashMap metainfo,
                      Locale locale)

SelectionField

public SelectionField(FieldIdentifier id,
                      SelectionField.KeyValueList list,
                      String currentid,
                      MetaInfoMap metainfo,
                      Locale locale)
Method Detail

getCurrentID

public String getCurrentID()
Specified by:
getCurrentID in interface ISelectionField

setCurrentID

public void setCurrentID(String id)
Specified by:
setCurrentID in interface ISelectionField

getValueList

public Properties getValueList()
Specified by:
getValueList in interface ISelectionField

getCurrentValue

public String getCurrentValue()
returns the value usable for rendering for the current ID. If the currentID is not part of the keys provided in the constructor, an error is traced out and an empty string is returned. The error is also traced out in the constructur itself, including a stack trace and the values provided

Specified by:
getCurrentValue in interface IField
Overrides:
getCurrentValue in class Field
Returns:
currentValue

getKeyValueList

public SelectionField.KeyValueList getKeyValueList()
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice