org.alfresco.web.ui.repo.component
Class UIDialogButtons

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
              extended by org.alfresco.web.ui.repo.component.UIDialogButtons
All Implemented Interfaces:
javax.faces.component.StateHolder

public class UIDialogButtons
extends org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent

Component that displays the buttons for a dialog.

The standard OK and Cancel buttons are always generated. Any additional buttons, either configured or generated dynamically by the dialog, are generated in between the standard buttons.


Field Summary
protected static java.lang.String BINDING_EXPRESSION_START
           
 
Constructor Summary
UIDialogButtons()
           
 
Method Summary
protected  void addSpacingRow(javax.faces.context.FacesContext context)
          Creates an output text component to represent a spacing row.
 void encodeBegin(javax.faces.context.FacesContext context)
           
 void encodeChildren(javax.faces.context.FacesContext context)
           
 void encodeEnd(javax.faces.context.FacesContext context)
           
protected  void generateAdditionalButtons(javax.faces.context.FacesContext context)
          If there are any additional buttons to add as defined by the dialog configuration and the dialog at runtime they are generated in this method.
protected  void generateButtons(javax.faces.context.FacesContext context)
          Generates the buttons for the dialog currently being shown.
 java.lang.String getFamily()
           
 boolean getRendersChildren()
           
 
Methods inherited from class org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
outputAttribute
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BINDING_EXPRESSION_START

protected static final java.lang.String BINDING_EXPRESSION_START
See Also:
Constant Field Values
Constructor Detail

UIDialogButtons

public UIDialogButtons()
Method Detail

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context)
                 throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context)
                    throws java.io.IOException
Overrides:
encodeChildren in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.component.UIComponentBase

generateButtons

protected void generateButtons(javax.faces.context.FacesContext context)
Generates the buttons for the dialog currently being shown.

Parameters:
context - Faces context

generateAdditionalButtons

protected void generateAdditionalButtons(javax.faces.context.FacesContext context)
If there are any additional buttons to add as defined by the dialog configuration and the dialog at runtime they are generated in this method.

Parameters:
context - Faces context

addSpacingRow

protected void addSpacingRow(javax.faces.context.FacesContext context)
Creates an output text component to represent a spacing row.

Parameters:
context - Faces context


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.