public class XSelect extends Object implements IXItem, IXValuableItem, IXDataSourceOptions
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
XSelect() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addValidationAttributes(IXFormRenderConfig config,
com.hp.gagawa.java.Node node,
XItemRenderData renderData,
XItemRenderCtx renderCtx) |
Map<String,List<org.apache.commons.lang3.Range<Integer>>> |
getAllowedDataSourceParameterCount()
Use this method to indicate how many parameters each data source type must have in order to be selectable.
|
ArrayList<XItemPropertyDesc> |
getAvailableProperties(Locale locale) |
String |
getIcon() |
String |
getPrefix()
Finds the prefix for form items of this type, such as
cb for checkboxes or tf for input fields. |
boolean |
isShowDefaultOption(XItemRenderData renderData) |
boolean |
isSubmitsValues()
Checks whether form items of this type can send values to the server when the form is submitted.
|
void |
renderItem(com.hp.gagawa.java.elements.Div container,
XItemRenderData renderData,
XItemRenderCtx renderCtx,
IXFormRenderContext formRenderCtx)
Creates the HTML for this form item that is included in the final rendered form.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAutoReRender, renderItemPreview, validate, validate, validateGlobalpublic ArrayList<XItemPropertyDesc> getAvailableProperties(Locale locale)
getAvailableProperties in interface IXItemBasiclocale - The current locale that can be used for locale dependent properties.public boolean isShowDefaultOption(XItemRenderData renderData)
protected void addValidationAttributes(IXFormRenderConfig config, com.hp.gagawa.java.Node node, XItemRenderData renderData, XItemRenderCtx renderCtx)
public String getIcon()
getIcon in interface IXItemBasicico-fc-XCheckbox.public String getPrefix()
IXItemBasiccb for checkboxes or tf for input fields.
This prefix is used, for example, in the designer to generate a default name for newly added form items
(tf-1, cb-2).getPrefix in interface IXItemBasicpublic boolean isSubmitsValues()
IXItemBasicisSubmitsValues in interface IXItemBasicpublic void renderItem(com.hp.gagawa.java.elements.Div container,
XItemRenderData renderData,
XItemRenderCtx renderCtx,
IXFormRenderContext formRenderCtx)
IXItemBasicrenderItem in interface IXItemBasiccontainer - The container that will contain this form item in the final form. You should append children to
this container.renderData - The current render data with the properties and options of the item.renderCtx - The current render context giving you access to the global configuration.formRenderCtx - The form render context giving you access to the global form configuration.IXItemBasic.renderItemPreview(Div, XItemRenderData, XItemRenderCtx, IXFormRenderContext)public Map<String,List<org.apache.commons.lang3.Range<Integer>>> getAllowedDataSourceParameterCount()
IXDataSourceOptions
@Override
public Map<String, List<Range<Integer>>> getAllowedDataSourceParameterCount() {
final Map<String, List<Range<Integer>>> ranges = new HashMap<>();
ranges.put(EDatasource.CSV.name(), Arrays.asList(Range.is(0)));
ranges.put(EDatasource.DB.name(), Arrays.asList(Range.is(0)));
ranges.put(EDatasource.PLUGIN.name(), Arrays.asList(Range.is(0)));
return ranges;
}
getAllowedDataSourceParameterCount in interface IXDataSourceOptionsnull is returned, the defaults (which may change) are used. When a key for a data source
type is missing or is mapped to null, no data sources of that type are selectable.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.