Style Intelligence v12.0

inetsoft.report
Class GroupableCellBinding

java.lang.Object
  extended by inetsoft.report.CellBinding
      extended by inetsoft.report.GroupableCellBinding
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Serializable, Cloneable

public class GroupableCellBinding
extends CellBinding

Defines the cell binding for groupable layout. A cell can be bound to a static text, a column, a formula, it contains external infomation for the cell is bound to group or aggregate or detail field.

See Also:
Serialized Form

Field Summary
static int EXPAND_H
          Expand horizontal.
static int EXPAND_NONE
          No expansion.
static int EXPAND_V
          Expand vertical.
 
Fields inherited from class inetsoft.report.CellBinding
BIND_COLUMN, BIND_FORMULA, BIND_TEXT, DETAIL, GROUP, SUMMARY, UNKNOWN
 
Constructor Summary
GroupableCellBinding()
          Default constructor.
GroupableCellBinding(int type, String value)
          Create a binding with specified type.
 
Method Summary
 boolean equals(Object obj)
          Check the obj is eqauls with this object or not.
 int getExpansion()
          Get cell expansion type.
 inetsoft.report.internal.binding.Field getField()
          Get the cell binding field.
 int hashCode()
           
protected  void parseAttributes(Element tag)
          Parse contents.
 void setExpansion(int expansion)
          Set the cell expansion type.
 void setField(inetsoft.report.internal.binding.Field cfield)
          Set cell binding field.
protected  void writeAttributes(PrintWriter writer)
          Write attributes.
 
Methods inherited from class inetsoft.report.CellBinding
clone, equalsContent, getBType, getType, getValue, isAsGroup, isEmpty, parseContents, parseXML, setAsGroup, setBType, setFormula, setType, setValue, toString, writeContents, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EXPAND_NONE

public static final int EXPAND_NONE
No expansion.

See Also:
Constant Field Values

EXPAND_H

public static final int EXPAND_H
Expand horizontal.

See Also:
Constant Field Values

EXPAND_V

public static final int EXPAND_V
Expand vertical.

See Also:
Constant Field Values
Constructor Detail

GroupableCellBinding

public GroupableCellBinding()
Default constructor.


GroupableCellBinding

public GroupableCellBinding(int type,
                            String value)
Create a binding with specified type.

Parameters:
type - one of the binding types defined in TableLayout.
value - the binding value. See getValue().
Method Detail

getExpansion

public int getExpansion()
Get cell expansion type.


setExpansion

public void setExpansion(int expansion)
Set the cell expansion type. Use one of the expansion constants: EXPAND_NONE, EXPAND_H, EXPAND_V.


setField

public void setField(inetsoft.report.internal.binding.Field cfield)
Set cell binding field.


getField

public inetsoft.report.internal.binding.Field getField()
Get the cell binding field.


writeAttributes

protected void writeAttributes(PrintWriter writer)
Write attributes.

Overrides:
writeAttributes in class CellBinding
Parameters:
writer - the specified writer.

parseAttributes

protected void parseAttributes(Element tag)
                        throws Exception
Parse contents.

Overrides:
parseAttributes in class CellBinding
Parameters:
tag - the specified xml element.
Throws:
Exception

equals

public boolean equals(Object obj)
Description copied from class: CellBinding
Check the obj is eqauls with this object or not.

Overrides:
equals in class CellBinding

hashCode

public int hashCode()
Overrides:
hashCode in class CellBinding

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.