org.kuali.kfs.sys.document.web
Class AccountingLineViewActionsField

java.lang.Object
  extended by org.kuali.kfs.sys.document.web.FieldTableJoining
      extended by org.kuali.kfs.sys.document.web.FieldTableJoiningWithHeader
          extended by org.kuali.kfs.sys.document.web.AccountingLineViewActionsField
All Implemented Interfaces:
ElementNamable, RenderableElement, TableJoining, TableJoiningWithHeader

public class AccountingLineViewActionsField
extends FieldTableJoiningWithHeader

A field that can join tables and also be rendered, this represents a table cell that displays the actions available on an accounting line


Constructor Summary
AccountingLineViewActionsField()
           
 
Method Summary
 void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
          This doesn't hold a field, so this imlementation does nothing
protected  AccountingLineTableCell createBlankTableCell(int rowSpan)
          Builds a blank cell for the action so the actions always appear below that
 HeaderLabel createHeaderLabel()
          Returns the property of the accounting line business object that can be used to find the label for the given renderable element
 String getName()
          Returns the name of this actions field
 boolean isActionBlock()
          We are an action block.
 void joinTable(List<AccountingLineTableRow> rows)
          Requests that this layout element property join a number of rows which will make up a table
 void populateWithTabIndexIfRequested(int reallyHighIndex)
          Doesn't do anything
 void renderElement(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, AccountingLineRenderingContext renderingContext)
          Renders this element
 void setName(String name)
          Sets the name of this actions field
 
Methods inherited from class org.kuali.kfs.sys.document.web.FieldTableJoiningWithHeader
createHeaderLabelTableCell, getRequestedRowCount, joinRow
 
Methods inherited from class org.kuali.kfs.sys.document.web.FieldTableJoining
createTableCell, isEmpty, isHidden, performFieldTransformations, readOnlyizeReadOnlyBlocks, removeAllActionBlocks, removeUnviewableBlocks, setEditableBlocks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.kfs.sys.document.web.TableJoiningWithHeader
isHidden
 
Methods inherited from interface org.kuali.kfs.sys.document.web.TableJoining
performFieldTransformations, readOnlyizeReadOnlyBlocks, removeAllActionBlocks, removeUnviewableBlocks, setEditableBlocks
 

Constructor Detail

AccountingLineViewActionsField

public AccountingLineViewActionsField()
Method Detail

getName

public String getName()
Returns the name of this actions field

Returns:
the names of this table joining element
See Also:
ElementNamable.getName()

setName

public void setName(String name)
Sets the name of this actions field

Parameters:
name - the name of this block

isActionBlock

public boolean isActionBlock()
We are an action block. For real, even

Specified by:
isActionBlock in interface RenderableElement
Overrides:
isActionBlock in class FieldTableJoining
Returns:
true if this is an action block, false otherwise
See Also:
FieldTableJoining.isActionBlock()

joinTable

public void joinTable(List<AccountingLineTableRow> rows)
Description copied from interface: TableJoining
Requests that this layout element property join a number of rows which will make up a table

Specified by:
joinTable in interface TableJoining
Overrides:
joinTable in class FieldTableJoiningWithHeader
Parameters:
rows - the rows to join
See Also:
FieldTableJoiningWithHeader.joinTable(java.util.List)

createBlankTableCell

protected AccountingLineTableCell createBlankTableCell(int rowSpan)
Builds a blank cell for the action so the actions always appear below that

Parameters:
rowSpan - the row span of the blank cell
Returns:
the blank row-spanning table cell

renderElement

public void renderElement(javax.servlet.jsp.PageContext pageContext,
                          javax.servlet.jsp.tagext.Tag parentTag,
                          AccountingLineRenderingContext renderingContext)
                   throws javax.servlet.jsp.JspException
Description copied from interface: RenderableElement
Renders this element

Parameters:
pageContext - the context to render to
parentTag - the parent tag that is requesting this rendering
renderingContext - the context about the accounting line that this element would end up rendering
Throws:
javax.servlet.jsp.JspException
See Also:
org.kuali.kfs.sys.document.web.RenderableElement#renderElement(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag)

createHeaderLabel

public HeaderLabel createHeaderLabel()
Description copied from interface: TableJoiningWithHeader
Returns the property of the accounting line business object that can be used to find the label for the given renderable element

Returns:
the property to lookup the label in the data dictionary
See Also:
TableJoiningWithHeader.createHeaderLabel()

appendFields

public void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
This doesn't hold a field, so this imlementation does nothing

See Also:
org.kuali.kfs.sys.document.web.RenderableElement#appendFieldNames(java.util.List)

populateWithTabIndexIfRequested

public void populateWithTabIndexIfRequested(int reallyHighIndex)
Doesn't do anything

Parameters:
reallyHighIndex - a really high index for elements who should not be tabbed to
See Also:
org.kuali.kfs.sys.document.web.RenderableElement#populateWithTabIndexIfRequested(int[], int)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.