/** * @return only permanent head sort columns */ public List<IColumn<?>> getPermanentHeadSortColumns() { return CollectionUtility.arrayList(m_permanentHeadSortColumns); }
/** * form property */ public List<IDataModelAttribute> getAvailableAttributes() { return CollectionUtility.arrayList(m_validAttributes); }
/** * used by {@value #TYPE_COMPONENT_POPUP} and {@link #TYPE_NEW_POPUP} to collect actions */ public List<IMenu> getPopupMenus() { return CollectionUtility.arrayList(m_popupMenus); }
/** * used by TYPE_NEW_ACTIVITY_POPUP and TYPE_EDIT_ACTIVITY_POPUP to add actions */ public List<IMenu> getPopupMenus() { return CollectionUtility.arrayList(m_popupMenus); }
@Override public void deleteRow(ITableRow row) { if (row != null) { deleteRows(CollectionUtility.arrayList(row)); } }
@Override public void discardDeletedRow(ITableRow deletedRow) { if (deletedRow != null) { discardDeletedRows(CollectionUtility.arrayList(deletedRow)); } }
@Override public List<Object> getValues() { Set<Object> value = getValue(); if (value == null) { return null; } return CollectionUtility.arrayList((Object) value); }
@Override public List<String> getTexts() { return CollectionUtility.arrayList(getDisplayText()); } }
@Override public List<String> getTexts() { return CollectionUtility.arrayList(getDisplayText()); } }
@Override public List<IGroupBox> getGroupBoxes() { ensureCategorized(); return CollectionUtility.arrayList(m_groupBoxes); }
@Override public List<IFormField> getControlFields() { ensureCategorized(); return CollectionUtility.arrayList(m_controlFields); }
@Override public void updateRow(ITableRow row) { if (row != null) { updateRows(CollectionUtility.arrayList(row)); } }
public PlannerEvent(IPlanner source, int type, List<? extends Resource> resources) { super(source); m_type = type; if (CollectionUtility.hasElements(resources)) { m_resources = CollectionUtility.arrayList(resources); } }
@Override public List<Object> getValues() { if (getCheckedKeyCount() > 0) { return CollectionUtility.arrayList((Object) getValue()); } else { return null; } }
@Override public List<Object> getValues() { Object a = getFieldByClass(DateFromField.class).getValue(); Object b = getFieldByClass(DateToField.class).getValue(); if (a == null && b == null) { return null; } return CollectionUtility.arrayList(a, b); }
@Override public List<String> getTexts() { String a = getFieldByClass(DateTimeFromField.class).getDisplayText(); String b = getFieldByClass(DateTimeToField.class).getDisplayText(); return CollectionUtility.arrayList(a, b); } }
@Override public List<Object> getValues() { Object a = getFieldByClass(LongFromField.class).getValue(); Object b = getFieldByClass(LongToField.class).getValue(); if (a == null && b == null) { return null; } return CollectionUtility.arrayList(a, b); }
private void fireColumnBackgroundEffectChanged(IColumn<?> c) { Assertions.assertInstance(c, INumberColumn.class, "BackgroundEffect is only supported on NumberColumns."); TableEvent e = new TableEvent(m_table, TableEvent.TYPE_COLUMN_BACKGROUND_EFFECT_CHANGED); e.setColumns(CollectionUtility.arrayList(c)); m_table.fireTableEventInternal(e); }
@ConfigOperation protected void execAutoCheckChildNodes(List<? extends ITreeNode> nodes, boolean checked, boolean enabledNodesOnly) { for (ITreeNode node : nodes) { for (ITreeNode childNode : node.getFilteredChildNodes()) { childNode.setChecked(checked, enabledNodesOnly); interceptAutoCheckChildNodes(CollectionUtility.arrayList(childNode), checked, enabledNodesOnly); } } }
@Override public void setNodeEnabled(ITreeNode node, boolean enabled) { node = resolveNode(node); if (node != null) { boolean oldValue = node.isEnabled(); node.setEnabled(enabled, IDimensions.ENABLED); boolean newValue = node.isEnabled(); if (oldValue != newValue) { fireNodesUpdated(node.getParentNode(), CollectionUtility.arrayList(node)); } } }