jBPM Console NG - Business Domain Client 6.1.0.Beta1

org.jbpm.console.ng.bd.client.util
Class DataGridUtils

java.lang.Object
  extended by org.jbpm.console.ng.bd.client.util.DataGridUtils

public class DataGridUtils
extends Object


Field Summary
static int DOT_CHAR_SIZE_IN_PIXELS
           
static int LOWER_CASE_CHAR_SIZE_IN_PIXELS
           
static int pageSize
           
static int UPPER_CASE_CHAR_SIZE_IN_PIXELS
           
 
Constructor Summary
DataGridUtils()
           
 
Method Summary
static int calculateWidth(String value)
           
static com.google.gwt.safehtml.shared.SafeHtml createDivEnd()
           
static com.google.gwt.safehtml.shared.SafeHtml createDivStart(String title)
           
static com.google.gwt.safehtml.shared.SafeHtml createDivStart(String title, String defaultValue)
           
static int fixedCharacterSize(char c)
           
static com.google.gwt.dom.client.Element getCharacterMeasuringElement(String name)
           
static int getCharWidth(Character c, boolean useCache)
           
static int getColumnWith(com.google.gwt.user.cellview.client.AbstractCellTable table, com.google.gwt.user.cellview.client.Column col)
           
static int getColumnWith(com.google.gwt.user.cellview.client.AbstractCellTable table, int col)
           
static int getDistributedColumnWidth(com.google.gwt.user.cellview.client.AbstractCellTable table, com.google.gwt.user.cellview.client.Column col)
           
static void redrawVisibleRange(com.google.gwt.user.cellview.client.AbstractCellTable table)
           
static void setTooltip(com.github.gwtbootstrap.client.ui.DataGrid<KModuleDeploymentUnitSummary> kmoduleListGrid, String idCurrentRow, int column, String kModuleId)
           
static String trimToColumnWidth(com.google.gwt.user.cellview.client.AbstractCellTable table, com.google.gwt.user.cellview.client.Column column, String value)
           
static String trimToColumnWidthUsingFixedCharsWidth(com.google.gwt.user.cellview.client.AbstractCellTable table, com.google.gwt.user.cellview.client.Column column, String value)
           
static int weightedCharacterSize(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageSize

public static final int pageSize
See Also:
Constant Field Values

UPPER_CASE_CHAR_SIZE_IN_PIXELS

public static final int UPPER_CASE_CHAR_SIZE_IN_PIXELS
See Also:
Constant Field Values

LOWER_CASE_CHAR_SIZE_IN_PIXELS

public static final int LOWER_CASE_CHAR_SIZE_IN_PIXELS
See Also:
Constant Field Values

DOT_CHAR_SIZE_IN_PIXELS

public static final int DOT_CHAR_SIZE_IN_PIXELS
See Also:
Constant Field Values
Constructor Detail

DataGridUtils

public DataGridUtils()
Method Detail

setTooltip

public static void setTooltip(com.github.gwtbootstrap.client.ui.DataGrid<KModuleDeploymentUnitSummary> kmoduleListGrid,
                              String idCurrentRow,
                              int column,
                              String kModuleId)

trimToColumnWidthUsingFixedCharsWidth

public static String trimToColumnWidthUsingFixedCharsWidth(com.google.gwt.user.cellview.client.AbstractCellTable table,
                                                           com.google.gwt.user.cellview.client.Column column,
                                                           String value)

trimToColumnWidth

public static String trimToColumnWidth(com.google.gwt.user.cellview.client.AbstractCellTable table,
                                       com.google.gwt.user.cellview.client.Column column,
                                       String value)

weightedCharacterSize

public static int weightedCharacterSize(String text)

fixedCharacterSize

public static int fixedCharacterSize(char c)

redrawVisibleRange

public static void redrawVisibleRange(com.google.gwt.user.cellview.client.AbstractCellTable table)

getDistributedColumnWidth

public static int getDistributedColumnWidth(com.google.gwt.user.cellview.client.AbstractCellTable table,
                                            com.google.gwt.user.cellview.client.Column col)

getColumnWith

public static int getColumnWith(com.google.gwt.user.cellview.client.AbstractCellTable table,
                                int col)

getColumnWith

public static int getColumnWith(com.google.gwt.user.cellview.client.AbstractCellTable table,
                                com.google.gwt.user.cellview.client.Column col)

createDivStart

public static com.google.gwt.safehtml.shared.SafeHtml createDivStart(String title)

createDivStart

public static com.google.gwt.safehtml.shared.SafeHtml createDivStart(String title,
                                                                     String defaultValue)

createDivEnd

public static com.google.gwt.safehtml.shared.SafeHtml createDivEnd()

getCharacterMeasuringElement

public static com.google.gwt.dom.client.Element getCharacterMeasuringElement(String name)

calculateWidth

public static int calculateWidth(String value)

getCharWidth

public static int getCharWidth(Character c,
                               boolean useCache)

jBPM Console NG - Business Domain Client 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.