Class IdAttributesSelection
java.lang.Object
org.eclnt.jsfserver.defaultscreens.IdAttributesSelection
- All Implemented Interfaces:
Serializable,BasePopup.IPopupListener,ModalPopup.IModalPopupListener
public class IdAttributesSelection
extends Object
implements Serializable, ModalPopup.IModalPopupListener
Class for server side implementation of COMBOFIELD component. Opens
a pop up window with a list of valid values and calls back the
logic when the user selects a value. Use @link
ModalPopup.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).- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclass -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionAdds a line to the list of valid values.voidclear()Clears all items.static IdAttributesSelectioncreateInstance(String[] titles, String[] widths) Creates a normal instance that is presented to the user as straight list.static IdAttributesSelectioncreateInstance(String[] titles, String[] widths, boolean allDataToClient) getLines()getPopup()Popup instance that is opened.intbooleanbooleanstatic voidvoidonCancel(ActionEvent event) voidonOK(ActionEvent event) voidInternal usage.voidPreselects the corresponding item: the item is selected and the list is scrolled so that the item is visible.voidInternal usage.voidInternal usage.voidsetCallBack(ISetId callBack) Specifies a call back.voidsetCallBack(ISetIdAttributes callBack) Specifies a call back.voidsetPopupHeight(int height) Set the width of the popup that is opened.voidsetPopupWidth(int width) Set the height of the popup that is opened.voidsetRow(org.eclnt.jsfserver.elements.impl.ROWComponent row) Internally used.voidsetRowHeight(int rowHeight) Explicitly set the row height that is used within the grid.voidsetSuppressHeadline(boolean value) If set to "true" then the grid head line is not shown but only the grid content is shown.voidsetWithHeader(boolean value)
-
Field Details
-
PAGENAME_DEFAULT
-
m_explanation
-
-
Method Details
-
initialize
public static void initialize() -
createInstance
Creates a normal instance that is presented to the user as straight list. -
getRequestFocus
-
getPopup
Popup instance that is opened. -
createInstance
public static IdAttributesSelection createInstance(String[] titles, String[] widths, boolean allDataToClient) - Parameters:
allDataToClient- IF setting this parameter to true, then all data you pass will be transferred to the client in on step. By default the data in the value help popup is loaded by using server side scrolling - i.e. with every scrolling operation data is re-loaded from the server side.
You should ny default stay with allDatatoClient=false, and only switch to true when you are sure that the length of the list id not too long... "Too long" depends on your scenario, of course, but you should get suspicious when passing more than 100 items.
-
setRowHeight
public void setRowHeight(int rowHeight) Explicitly set the row height that is used within the grid. -
getRowHeight
public int getRowHeight() -
setRow
public void setRow(org.eclnt.jsfserver.elements.impl.ROWComponent row) Internally used. -
clear
public void clear()Clears all items. -
addLine
Adds a line to the list of valid values. -
setCallBack
Specifies a call back. The call back passes the selected id. -
setCallBack
Specifies a call back. The call back passes the selected id and the selected attributes. -
onPopupClosedByUser
Internal usage. -
getLines
-
processSelectLine
Internal usage. -
reactOnPopupClosedByUser
public void reactOnPopupClosedByUser()Internal usage.- Specified by:
reactOnPopupClosedByUserin interfaceBasePopup.IPopupListener
-
getWithHeader
public boolean getWithHeader() -
setWithHeader
public void setWithHeader(boolean value) -
onOK
-
onCancel
-
setPopupWidth
public void setPopupWidth(int width) Set the height of the popup that is opened. -
setPopupHeight
public void setPopupHeight(int height) Set the width of the popup that is opened. -
setSuppressHeadline
public void setSuppressHeadline(boolean value) If set to "true" then the grid head line is not shown but only the grid content is shown. -
getSuppressHeadline
public boolean getSuppressHeadline() -
preselect
Preselects the corresponding item: the item is selected and the list is scrolled so that the item is visible.
-