info.magnolia.cms.gui.controlx.list
Class ListColumn

java.lang.Object
  extended by info.magnolia.cms.gui.controlx.impl.AbstractControl
      extended by info.magnolia.cms.gui.controlx.list.ListColumn
All Implemented Interfaces:
Control

public class ListColumn
extends AbstractControl

This represents a column in a list.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
Philipp Bracher

Field Summary
static String RENDER_TYPE
           
 
Constructor Summary
ListColumn()
          Empty Constructor.
ListColumn(String columnName, String label, String width, boolean separator)
          Create a new column.
 
Method Summary
 String getColumnName()
           
 String getLabel()
           
 ListControl getListControl()
          Get the list control this column belongs to.
 Object getValue()
          Called by the renderer
 String getWidth()
           
 boolean isSeparator()
           
 void setColumnName(String columnName)
           
 void setLabel(String label)
           
 void setSeparator(boolean separator)
           
 void setWidth(String width)
           
 
Methods inherited from class info.magnolia.cms.gui.controlx.impl.AbstractControl
addChild, getChild, getChildren, getName, getParent, getRenderer, getRenderKit, getRenderType, removeAllChildren, removeChild, render, setName, setParent, setRenderer, setRenderKit, setRenderType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RENDER_TYPE

public static final String RENDER_TYPE
See Also:
Constant Field Values
Constructor Detail

ListColumn

public ListColumn()
Empty Constructor. Used for anonymous classes.


ListColumn

public ListColumn(String columnName,
                  String label,
                  String width,
                  boolean separator)
Create a new column.

Parameters:
columnName -
label -
width -
separator -
Method Detail

getListControl

public ListControl getListControl()
Get the list control this column belongs to.

Returns:
the list control

getLabel

public String getLabel()
Returns:
Returns the label.

setLabel

public void setLabel(String label)
Parameters:
label - The label to set.

isSeparator

public boolean isSeparator()
Returns:
Returns the separator.

setSeparator

public void setSeparator(boolean separator)
Parameters:
separator - The separator to set.

getWidth

public String getWidth()
Returns:
Returns the width.

setWidth

public void setWidth(String width)
Parameters:
width - The width to set.

getValue

public Object getValue()
Called by the renderer

Returns:
the object to render

getColumnName

public String getColumnName()
Returns:
Returns the columnName.

setColumnName

public void setColumnName(String columnName)
Parameters:
columnName - The columnName to set.


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.