Spring for Apache Hadoop

org.springframework.yarn.support.console
Class TableHeader

java.lang.Object
  extended by org.springframework.yarn.support.console.TableHeader

public class TableHeader
extends java.lang.Object

Defines table column headers used by Table.

Author:
Gunnar Hillert, Janne Valkealahti
See Also:
UiUtils

Constructor Summary
TableHeader(java.lang.String name)
          Constructor that initializes the table header with the provided header name.
TableHeader(java.lang.String name, int width)
          Constructor that initializes the table header with the provided header name and the with of the table header.
 
Method Summary
 int getMaxWidth()
           
 java.lang.String getName()
           
 int getWidth()
           
 void setMaxWidth(int maxWidth)
          Defaults to -1 indicating to ignore the property.
 void setName(java.lang.String name)
           
 void setWidth(int width)
           
 void updateWidth(int width)
          Updated the width for this particular column, but only if the value of the passed-in width is higher than the value of the pre-existing width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableHeader

public TableHeader(java.lang.String name,
                   int width)
Constructor that initializes the table header with the provided header name and the with of the table header.

Parameters:
name -
width -

TableHeader

public TableHeader(java.lang.String name)
Constructor that initializes the table header with the provided header name. The with of the table header is calculated and assigned based on the provided header name.

Parameters:
name -
Method Detail

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

updateWidth

public void updateWidth(int width)
Updated the width for this particular column, but only if the value of the passed-in width is higher than the value of the pre-existing width.

Parameters:
width -

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getMaxWidth

public int getMaxWidth()

setMaxWidth

public void setMaxWidth(int maxWidth)
Defaults to -1 indicating to ignore the property.

Parameters:
maxWidth - If negative or zero this property will be ignored.

Spring for Apache Hadoop