Examples of TimestampCellFormatter


Examples of org.rhq.coregui.client.components.table.TimestampCellFormatter

    protected ListGridField createStartedTimeField() {
        ListGridField startedTimeField = new ListGridField(Field.STARTED_TIME,
            MSG.view_operationHistoryDetails_dateSubmitted());
        startedTimeField.setAlign(Alignment.LEFT);
        startedTimeField.setCellAlign(Alignment.LEFT);
        startedTimeField.setCellFormatter(new TimestampCellFormatter() {
            public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
                if (value != null) {
                    String timestamp = super.format(value, record, rowNum, colNum);
                    Integer opHistoryId = record.getAttributeAsInt("id");
                    String url = LinkManager.getEntityTabLink(entityContext, "Operations", "History") + "/"
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.