org.jboss.as.console.client.shared.expr.ExpressionColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switchyard-console-as7-core
Show all versions of switchyard-console-as7-core
Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.
package org.jboss.as.console.client.shared.expr;
import com.google.gwt.user.cellview.client.TextColumn;
/**
* @author Heiko Braun
* @date 10/17/11
*/
public abstract class ExpressionColumn extends TextColumn {
private String javaName;
protected ExpressionColumn(String javaName) {
this.javaName = javaName;
}
@Override
public String getValue(T object) {
String columnValue = ExpressionAdapter.getExpressionValue(object, javaName);
if(null==columnValue)
columnValue = getRealValue(object);
return columnValue;
}
abstract protected String getRealValue(T object);
}