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
Modifier and TypeClassDescriptionstatic class
class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a line to the list of valid values.void
clear()
Clears all items.static IdAttributesSelection
createInstance
(String[] titles, String[] widths) Creates a normal instance that is presented to the user as straight list.static IdAttributesSelection
createInstance
(String[] titles, String[] widths, boolean allDataToClient) getLines()
getPopup()
Popup instance that is opened.int
boolean
boolean
static void
void
onCancel
(javax.faces.event.ActionEvent event) void
onOK
(javax.faces.event.ActionEvent event) void
onPopupClosedByUser
(javax.faces.event.ActionEvent ae) Internal usage.void
Preselects the corresponding item: the item is selected and the list is scrolled so that the item is visible.void
Internal usage.void
Internal usage.void
setCallBack
(ISetId callBack) Specifies a call back.void
setCallBack
(ISetIdAttributes callBack) Specifies a call back.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
setRow
(org.eclnt.jsfserver.elements.impl.ROWComponent row) Internally used.void
setRowHeight
(int rowHeight) Explicitly set the row height that is used within the grid.void
setSuppressHeadline
(boolean value) If set to "true" then the grid head line is not shown but only the grid content is shown.void
setWithHeader
(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
public void onPopupClosedByUser(javax.faces.event.ActionEvent ae) Internal usage. -
getLines
-
processSelectLine
Internal usage. -
reactOnPopupClosedByUser
public void reactOnPopupClosedByUser()Internal usage.- Specified by:
reactOnPopupClosedByUser
in interfaceBasePopup.IPopupListener
-
getWithHeader
public boolean getWithHeader() -
setWithHeader
public void setWithHeader(boolean value) -
onOK
public void onOK(javax.faces.event.ActionEvent event) -
onCancel
public void onCancel(javax.faces.event.ActionEvent event) -
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.
-