Search in sources :

Example 1 with MultiButtonEntityView

use of com.codename1.rad.ui.entityviews.MultiButtonEntityView in project CodeRAD by shannah.

the class DefaultEntityListCellRenderer method getListCellRendererComponent.

@Override
public EntityView getListCellRendererComponent(EntityListView list, Entity value, int index, boolean isSelected, boolean isFocused) {
    ListNode listNode = (ListNode) list.getViewNode();
    MultiButtonEntityView out = new MultiButtonEntityView(value, listNode.getRowTemplate());
    ActionNode node = listNode.getAction(ActionCategories.LIST_SELECT_ACTION);
    if (node != null) {
        out.setAction(node);
    }
    return makeSwipeable(value, listNode.getRowTemplate(), out);
}
Also used : ActionNode(com.codename1.rad.nodes.ActionNode) MultiButtonEntityView(com.codename1.rad.ui.entityviews.MultiButtonEntityView) ListNode(com.codename1.rad.nodes.ListNode)

Aggregations

ActionNode (com.codename1.rad.nodes.ActionNode)1 ListNode (com.codename1.rad.nodes.ListNode)1 MultiButtonEntityView (com.codename1.rad.ui.entityviews.MultiButtonEntityView)1