Package org.jitterbit.ui.util.decorator

Examples of org.jitterbit.ui.util.decorator.DateCell


            return null;
        }
        if (includeDate) {
            return new Object[] {
                    entity,
                    new DateCell(new Date(result.getTimestamp())),
                    result.getOutcome(),
                    result.getDetails(),
            };
        } else {
            return new Object[] {
View Full Code Here


            return new Object[] {
                new ServerName(serverManager, info.getName(), guid),
                info.getVersion(),
                info.getPlatform().getOS(),
                guid,
                new DateCell(props.getDateOfFirstLogin()),
                new DateCell(props.getDateOfLatestLogin()),
                props.getLatestUser(),
            };
        }
View Full Code Here

            ServerGuid guid = info.getGuid();
            return new Object[] {
                new ServerName(serverManager, info.getName(), guid),
                info.getVersion(),
                info.getPlatform().getOS(),
                new DateCell(props.getDateOfLatestLogin()),
                props.getLatestUser(),
            };
        }
View Full Code Here

        addVersionNode(Strings.get("Project.RequiresVersion"), project.getVersionRequired());
    }
   
    private void addDateNode(String property, Date date) {
        // XXX: Move this into a separate class, e.g. DateFormatter
        DateCell cell = new DateCell(date);
        String value = property + ": " + cell.getDisplayString();
        new PropertyNode(this, value);
    }
View Full Code Here

    @Override
    protected Object[] getColumnDataForTypedObject(ProjectLocation loc) {
        return new Object[] {
            new ProjectNameTableItem(loc.getProjectName()),
            new ProjectFileTableItem(loc.getLocation()),
            new DateCell(loc.getLastAccessed()),
            loc.getVersionRequired(),
        };
    }
View Full Code Here

        private String createToolTip() {
            Map<Object, Object> pairs = Maps.newLinkedHashMap();
            pairs.put(Strings.get("Project.Name") + ":", projectLocation.getProjectName());
            pairs.put(Strings.get("Project.Location") + ":", projectLocation.getLocationPath());
            pairs.put(Strings.get("Project.LastAccessed") + ":",
                    new DateCell(projectLocation.getLastAccessed()).getDisplayString());
            pairs.put(Strings.get("Project.RequiresVersion") + ":", projectLocation.getVersionRequired());
            return KeyValueToolTip.createTable(pairs);
        }
View Full Code Here

    @Override
    protected Object[] getColumnDataForTypedObject(ErrorLogEntry err) {
        return new Object[] {
            new MessageCapsule(err),
            new DateCell(new Date(err.timestamp()), DateCell.Mode.DETAILED),
            new SourceDataCapsule(err),
            err.level(),
            new CauseDataCapsule(err),
        };
    }
View Full Code Here

            addRows(project.getAllEntities().removeAll(Predicates.instanceOf(Folder.class)));
        }

        @Override
        protected Object[] getColumnDataForTypedObject(IntegrationEntity o) {
            return new Object[] { o, new DateCell(o.getModifiedAt()) };
        }
View Full Code Here

        public void updateModifiedDate(IntegrationEntity entity) {
            // XXX: Linear search, not very efficient.
            for (int row = 0; row < getRowCount(); ++row) {
                if (getRowObjectAt(row) == entity) {
                    rowToModify = row;
                    setValueAt(new DateCell(entity.getModifiedAt()), row, 1);
                    rowToModify = -1;
                    break;
                }
            }
        }
View Full Code Here

    }
   
    @Override
    protected Object[] getColumnDataForTypedObject(DeployResult r) {
        if (INCLUDE_MESSAGE) {
            return new Object[] { new DateCell(r.getTimestamp()), ServerTableItem.create(r), UserTableItem.create(r),
                    OutcomeTableItem.create(r), MessageTableItem.create(r), };
        } else {
            return new Object[] { new DateCell(r.getTimestamp()), ServerTableItem.create(r), UserTableItem.create(r),
                    OutcomeTableItem.create(r), };
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.util.decorator.DateCell

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.