|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.EventValidationComponent
com.sapportals.htmlb.DropdownListBox
Title: Description: Copyright: Copyright (c) 2001 Company: SAP AG
| Field Summary | |
static String |
UI_ID
|
| Constructor Summary | |
DropdownListBox(String name)
Create a new DropdownListBox with a unique identifier. |
|
| Method Summary | |
void |
addItem(String key,
String text)
add a key-value pair to the DropdownListBox |
protected IListModel |
createDefaultModel()
Internal constructor for a default ListModel. |
DropdownListBoxDesign |
getDesign()
|
Iterator |
getKeys()
gets an Iterator for all keys contained
in this DropdownListBox |
Iterator |
getKeySet()
returns the key set of the ddlb |
IListModel |
getModel()
get the model underlying this DropdownListBox |
String |
getNameOfKeyColumn()
get the name of the column that contains the keys. |
String |
getNameOfValueColumn()
get the name of the column that contains the visible texts. |
String |
getOnClientSelect()
get the JavaScript fragment that is executed on the client side if the user changes the selection |
String |
getOnSelect()
get the event identifier for a selection event. |
String |
getSelection()
get the key for the currently selected entry |
String |
getTextForKey(String key)
get the visible text associated with the given key |
String |
getTooltip()
gets the Tooltip for this DropdownListBox. |
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
AbstractDataType |
getValueAsDataType()
|
String |
getWidth()
gets the width of the DropdownListBox |
protected void |
initFromPageContext(IPageContext pc,
String baseId)
internal method to set user input to the appropriate properties of the listbox |
boolean |
isLabeled()
checks if a label has been assigned to this component. |
boolean |
isRequiresValidation()
returns if validation is required before sending the server event |
boolean |
isSelected(String key)
test is a specified key has been selected in the DropdownListBox |
void |
setDesign(DropdownListBoxDesign design)
|
void |
setLabeled(boolean isLabeled)
notify the component that a label has been assigned to it. |
void |
setModel(IListModel model)
set the model for this DropdownListBox |
void |
setNameOfKeyColumn(String nameOfKeyColumn)
specify the name of the column that contains the keys. |
void |
setNameOfValueColumn(String nameOfValueColumn)
specify the name of the column that contains the visible texts. |
void |
setOnClientSelect(String onClientSelect)
specify a clientside JavaScript that should be executed if the user changes the selection |
void |
setOnSelect(String onSelect)
set the event identifier for a selection event. |
void |
setRequiresValidation(boolean requiresValidation)
determines if validation is required before sending the server event |
void |
setSelection(String selection)
set the selection to the entry with the given key |
void |
setTooltip(String tooltip)
sets the Tooltip for this DropdownListBox. |
void |
setWidth(String width)
sets the width of the DropdownListBox |
| Methods inherited from class com.sapportals.htmlb.EventValidationComponent |
getAllValidators, getClientEvent, getClientEventMap, getErrorText, getServerEvent, getServerEventMap, getValidator, isDisabled, isEnabled, renderJavascriptInterface, setClientEvent, setDisabled, setEnabled, setErrorText, setServerEvent, setValidator |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
| Constructor Detail |
public DropdownListBox(String name)
name - the identifier for this DropdownListBox| Method Detail |
protected IListModel createDefaultModel()
protected void initFromPageContext(IPageContext pc,
String baseId)
initFromPageContext in class Componentpc - the pagecontext from which to read the databaseId - the prefix for the parameter keyspublic String getTooltip()
public void setTooltip(String tooltip)
tooltip - the tooltip textpublic IListModel getModel()
public void setModel(IListModel model)
model - the modelpublic boolean isSelected(String key)
key - the key to test
public String getSelection()
public void setSelection(String selection)
selection - the key for the current selectionpublic String getNameOfKeyColumn()
public void setNameOfKeyColumn(String nameOfKeyColumn)
nameOfKeyColumn - the name/identifier of the key columnpublic String getNameOfValueColumn()
public void setNameOfValueColumn(String nameOfValueColumn)
nameOfValueColumn - the name/identifier of the key columnpublic String getOnSelect()
public void setOnSelect(String onSelect)
onSelect - the identifier for the eventpublic String getOnClientSelect()
public void setOnClientSelect(String onClientSelect)
onClientSelect - a JavaScript fragment.public String getUI()
getUI in class Component
public void addItem(String key,
String text)
key - the internal key for the entrytext - the visible text for the entrypublic String getTextForKey(String key)
key - the key for the entry
public Iterator getKeys()
Iterator for all keys contained
in this DropdownListBox
public String getWidth()
public void setWidth(String width)
width - the width of the DropdownListBoxpublic AbstractDataType getValueAsDataType()
getValueAsDataType in interface IUserDataComponentpublic void setLabeled(boolean isLabeled)
LabeledComponent
setLabeled in interface LabeledComponentpublic boolean isLabeled()
LabeledComponent
isLabeled in interface LabeledComponentpublic Iterator getKeySet()
public DropdownListBoxDesign getDesign()
public void setDesign(DropdownListBoxDesign design)
public boolean isRequiresValidation()
isRequiresValidation in interface IEventValidationComponentisRequiresValidation in class EventValidationComponentpublic void setRequiresValidation(boolean requiresValidation)
setRequiresValidation in class EventValidationComponent
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||