public class IdTextSelection extends java.lang.Object implements java.io.Serializable, ModalPopup.IModalPopupListener
createInstance()
or @line createInstanceWithExplanation(String) in order
to get an instance, then fill values via @link addLine(String, String)
and specify the call back. You can select two call back options: either
just the selected id via @link #setCallBack(ISetId) or the selected id and
its text via @link #setCallBack(ISetIdText).| Modifier and Type | Class and Description |
|---|---|
static class |
IdTextSelection.IdTextLine
Representation of one selectable value line.
|
class |
IdTextSelection.IdTextLineGrid |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
m_explanation |
| Modifier and Type | Method and Description |
|---|---|
IdTextSelection.IdTextLine |
addLine(java.lang.String id,
java.lang.String name)
Adds a line to the list of valid values.
|
IdTextSelection.IdTextLine |
addLine(java.lang.String id,
java.lang.String name,
java.lang.String image)
Adds a line to the list of valid values.
|
protected boolean |
checkIfTextFitsToFilter(java.lang.String text,
java.lang.String filter) |
void |
clear()
Clears all items.
|
static IdTextSelection |
createInstance()
Creates a normal instance that is presented to the user as straight list.
|
protected static IdTextSelection |
createInstanceHt() |
static IdTextSelection |
createInstanceWithExplanation(java.lang.String explanation)
Creates an instance in which the list of valid values is shown together with
an explanation string.
|
static IdTextSelection |
createInstanceWithImageLine()
Creates instance in which each line is rendered with image, text and id, as two
lines.
|
static IdTextSelection |
createListInstance() |
void |
filterByInputId(java.lang.String inputId)
Filters all passed values in order to show these ones fitting to
the current input.
|
void |
filterByInputText(java.lang.String inputText)
Filters all passed values in order to show these ones fitting to
the current input.
|
protected void |
filterItems() |
java.lang.String |
getExplanation() |
java.lang.String |
getFilterResultText() |
java.lang.String |
getFilterText() |
ROWDYNAMICCONTENTBinding |
getHtContent() |
FIXGRIDListBinding<IdTextSelection.IdTextLine> |
getLines() |
java.lang.String |
getListSelection() |
java.lang.String |
getListValues() |
ModelessPopup |
getPopup()
Popup instance that is opened by the value help.
|
boolean |
getRenderFilterText() |
boolean |
getRenderIdColumn() |
boolean |
getRenderTextColumn() |
java.lang.String |
getRequestFocus() |
boolean |
getSuppressHeadline() |
java.lang.String |
getTitleId() |
java.lang.String |
getTitleText() |
boolean |
getWithHeader() |
void |
onCancel(ActionEvent event)
Internally used - reactor on "cancel" in popup.
|
void |
onFilterTextAction() |
void |
onHtButtonAction(ActionEvent event) |
void |
onListAction(ActionEvent ae)
Internal usage.
|
void |
onOK(ActionEvent event)
Internally used - reactor on "OK" in popup.
|
void |
onPopupClosedByUser(ActionEvent ae)
Internal usage.
|
void |
onRenderBeginAction(ActionEvent event) |
void |
preselect(java.lang.String id)
Preselects the corresponding item: the item is selected and
the list is scrolled so that the item is visible.
|
protected void |
processKeySequence(java.lang.String ks) |
void |
processSelectLine(IdTextSelection.IdTextLine line)
Internal usage.
|
void |
reactOnPopupClosedByUser()
Internal usage.
|
void |
setCallBack(ISetId callBack)
Specifies a call back.
|
void |
setCallBack(ISetIdText callBack)
Specifies a call back.
|
void |
setFilterText(java.lang.String filterText)
Sets the filter text.
|
void |
setListSelection(java.lang.String listSelection) |
void |
setPopupHeight(int height)
Set the width of the popup that is opened.
|
void |
setPopupWidth(int width)
Set the height of the popup that is opened.
|
void |
setRenderFilterText(boolean renderFilterText)
On top of the value list a text field may be shown for filtering the
items.
|
void |
setRenderIdColumn(boolean renderIdColumn)
Set if id column is to be rendered (true/default) or not (false).
|
void |
setRenderTextColumn(boolean renderTextColumn)
Set if text column is to be rendered (true/default) or not (false).
|
void |
setSuppressHeadline(boolean value)
If set to "true" then the grid head line is not shown but only
the grid content is shown.
|
void |
setTitleId(java.lang.String titleId)
Set the title of the id column.
|
void |
setTitleText(java.lang.String titleText)
Set the title of the text column.
|
void |
setWithHeader(boolean value)
The header is the area in which the OK and cancel button
is rendered (once upon a time this area way the header of the
popup, now it has moved to the bottom...).
|
void |
sortItemsById() |
void |
sortItemsByText() |
public ModelessPopup getPopup()
public java.lang.String getRequestFocus()
public void setTitleId(java.lang.String titleId)
public java.lang.String getTitleId()
public void setTitleText(java.lang.String titleText)
public java.lang.String getTitleText()
public static IdTextSelection createInstance()
addLine(String, String) in order to add items.protected static IdTextSelection createInstanceHt()
public static IdTextSelection createInstanceWithExplanation(java.lang.String explanation)
addLine(String, String) in order to add
items.public static IdTextSelection createInstanceWithImageLine()
addLine(String, String, String) in order to add items.public static IdTextSelection createListInstance()
public void clear()
public IdTextSelection.IdTextLine addLine(java.lang.String id, java.lang.String name)
public IdTextSelection.IdTextLine addLine(java.lang.String id, java.lang.String name, java.lang.String image)
#createInstanceWIthImageLine(), otherwise
only id and name will be shown.public void setCallBack(ISetId callBack)
public void setCallBack(ISetIdText callBack)
public void onPopupClosedByUser(ActionEvent ae)
public FIXGRIDListBinding<IdTextSelection.IdTextLine> getLines()
public java.lang.String getExplanation()
public void processSelectLine(IdTextSelection.IdTextLine line)
public void reactOnPopupClosedByUser()
reactOnPopupClosedByUser in interface BasePopup.IPopupListenerpublic boolean getWithHeader()
public void setWithHeader(boolean value)
public boolean getSuppressHeadline()
public void setSuppressHeadline(boolean value)
public boolean getRenderIdColumn()
public void setRenderIdColumn(boolean renderIdColumn)
public boolean getRenderTextColumn()
public void setRenderTextColumn(boolean renderTextColumn)
public void setFilterText(java.lang.String filterText)
setRenderFilterText(boolean)
is activated.public java.lang.String getFilterText()
public void onRenderBeginAction(ActionEvent event)
public void onFilterTextAction()
public java.lang.String getFilterResultText()
protected void filterItems()
protected boolean checkIfTextFitsToFilter(java.lang.String text,
java.lang.String filter)
public void setRenderFilterText(boolean renderFilterText)
public boolean getRenderFilterText()
public void onOK(ActionEvent event)
public void onCancel(ActionEvent event)
public void filterByInputId(java.lang.String inputId)
public void filterByInputText(java.lang.String inputText)
public void setPopupWidth(int width)
public void setPopupHeight(int height)
public void preselect(java.lang.String id)
public java.lang.String getListValues()
public java.lang.String getListSelection()
public void setListSelection(java.lang.String listSelection)
public void onListAction(ActionEvent ae)
public void sortItemsById()
public void sortItemsByText()
public ROWDYNAMICCONTENTBinding getHtContent()
public void onHtButtonAction(ActionEvent event)
protected void processKeySequence(java.lang.String ks)
Copyright © CaptainCasa Gmbh. All Rights Reserved.