public ICallbackResult onBeforeDisplay(AbstractWrappedCallbackContext<Inbox> ctx) {
if (Device.TABLET.equals(ctx.getDevice())) {
AttributeMetaData amd = ctx.getBusinessObject().getAttribute(InboxFieldsEnum.FILTER_REFRESHDATE).getAttributeMetaData();
UIElementParam paramRefreshDate = (UIElementParam) BeanUtils.cloneBean(amd.getUiElementParam());
paramRefreshDate.setLabelSpan(UIElementParam.Span.DEFAULT);
ctx.getElementParams().put(InboxFieldsEnum.FILTER_REFRESHDATE.getName(), paramRefreshDate);
}
}
UIElementParam paramRefreshDate = new UIElementParam();
paramRefreshDate.setLabelSpan(UIElementParam.Span.DEFAULT);
paramRefreshDate.setCalcWidthByLength(true);
paramRefreshDate.setLengthIndicator(true);
ctx.getElementParams().put(InboxFieldsEnum.FILTER_REFRESHDATE.getName(), paramRefreshDate);
public ICallbackResult onBeforeDisplay(AbstractWrappedCallbackContext<Inbox> ctx) {
if (Device.TABLET.equals(ctx.getDevice())) {
//Tables
AttributeMetaData amdTaskTable = ctx.getBusinessObject().getAttribute(InboxFieldsEnum.TASKTABLE).getAttributeMetaData();
TableParam paramTaskTable = (TableParam) BeanUtils.cloneBean(amdTaskTable.getUiElementParam());
paramTaskTable.setHorizontalScrollable(true);
ctx.getElementParams().put(InboxFieldsEnum.TASKTABLE.getName(), paramTaskTable);
//TextView
TextViewParam paramPriority = new TextViewParam();
paramPriority.setColumnWidth("180px");
paramPriority.setNoFrame(true);
ctx.getElementParams().put(TaskTableFieldsEnum.TASKTABLE_PRIORITY.getName(), paramPriority);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
14 | |
12 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |