Package org.jitterbit.integration.uidelegate.entity

Examples of org.jitterbit.integration.uidelegate.entity.EntityIcons$Key


    validateQuery(query);
    validateSplitSize(numSplits);

    List<Query> splits = new ArrayList<Query>(numSplits);
    List<Key> scatterKeys = getScatterKeys(numSplits, query, datastore);
    Key lastKey = null;
    for (Key nextKey : getSplitKey(scatterKeys, numSplits)) {
      splits.add(createSplit(lastKey, nextKey, query));
      lastKey = nextKey;
    }
    splits.add(createSplit(lastKey, null, query));
View Full Code Here


            }
        };
    }

    private Icon getIcon() {
        EntityIcons icons = EntityIcons.forType(EntityType.Operation);
        ValidationStatus status = getOperation().getValidationStatus();
        return icons.getIcon(EntityIcons.Category.fromValidationStatus(status), Size.LARGE);
    }
View Full Code Here

     * Adds an icon corresponding to the specified <code>EntityType</code> to the given label. The
     * icon is looked up from the <code>EntityIconRepository</code>.
     *
     */
    public static void decorateRenderer(JLabel renderer, EntityType type) {
        EntityIcons icons = EntityIcons.forType(type);
        Icon icon = icons.getDefaultIcon(Size.SMALL);
        renderer.setIcon(icon);
    }
View Full Code Here

                type = ((RootFolder) entity).getItemType();
            } else {
                size = Size.SMALL;
                type = entity.getEntityType();
            }
            EntityIcons icons = EntityIcons.forType(type);
            ValidationStatus status = validationModel.getStatus(entity, true);
            return icons.getIcon(Category.fromValidationStatus(status), size);
        }
View Full Code Here

        return ToolTipStringFactory.getToolTip(getDataObject().getActivity());
    }

    @Override
    protected Icon getIcon() {
        EntityIcons icons = EntityIcons.forType(EntityType.EmailMessage);
        ValidationStatus status = getDataObject().getActivity().getValidationStatus();
        return icons.getIcon(EntityIcons.Category.fromValidationStatus(status), Size.LARGE);
    }
View Full Code Here

    private final KongaLabel label;

    public CheckBoxCapsule(EntityType type) {
        checkBox = new KongaCheckBox();
        EntityIcons icons = EntityIcons.forType(type);
        label = new KongaLabel(type.getDisplayName(), icons.getDefaultIcon(Size.SMALL), JLabel.LEFT);
        TextStyles.DefaultCheckBoxText.makeOver(label);
        label.addMouseListener(this);
    }
View Full Code Here

        public Icon getNodeIcon(NodeStatus nodeStatus) {
            EntityType type = getUserObject().getType();
            if (type == EntityType.RootFolder) {
                return null;
            } else {
                EntityIcons icons = EntityIcons.forType(type);
                return icons.getDefaultIcon(Size.SMALL);
            }
        }
View Full Code Here

            // a more natural assignment of mnemonics within each group.
            // For the non-wizard items we reserve 'C' for "Connect".
            EntityTypeMnemonics normalItemsMnemonics = new EntityTypeMnemonics(nonWizardTypes(), 'C');
            EntityTypeMnemonics wizardItemsMnemonics = new EntityTypeMnemonics(wizardTypes());
            for (EntityType type : types()) {
                EntityIcons icons = EntityIcons.forType(type);
                String actionID = InterchangeActionFactory.getNewEntityFactory(type).getId();
                EntityTypeMnemonics mnemonics = type.isWizardType() ? wizardItemsMnemonics : normalItemsMnemonics;
                names.put(actionID, new NewEntityActionName(type, mnemonics));
                smallIcons.put(actionID, icons.getIcon(Category.VALID, Size.SMALL));
                mediumIcons.put(actionID, icons.getIcon(Category.VALID, Size.MEDIUM));
                largeIcons.put(actionID, icons.getIcon(Category.VALID, Size.LARGE));
            }
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.uidelegate.entity.EntityIcons$Key

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.