org.alfresco.web.bean.generator
Class LinkGenerator

java.lang.Object
  extended by org.alfresco.web.bean.generator.BaseComponentGenerator
      extended by org.alfresco.web.bean.generator.LinkGenerator
All Implemented Interfaces:
IComponentGenerator

public class LinkGenerator
extends BaseComponentGenerator

Link Generator. Generates a link tag which opend the URL into a new browsers window.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator
BaseComponentGenerator.ControlType
 
Constructor Summary
LinkGenerator()
           
 
Method Summary
protected  javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item)
          Creates the component for the given proerty sheet item.
 javax.faces.component.UIComponent generate(javax.faces.context.FacesContext context, java.lang.String id)
          Dynamically generates a component in a default state
protected  void setupProperty(javax.faces.context.FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item, org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef, javax.faces.component.UIComponent component)
          Sets up the property component i.e.
 
Methods inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator
addStringConstraintParam, createAndSetConverter, createOutputTextComponent, generateAndAdd, getAssociationDefinition, getControlType, getPropertyDefinition, isEnabledInEditMode, setupAssociation, setupConstraints, setupConverter, setupConverter, setupMandatoryAssociationIfNecessary, setupMandatoryMarker, setupMandatoryPropertyIfNecessary, setupMandatoryValidation, setupMultiValuePropertyIfNecessary, setupNumericRangeConstraint, setupRegexConstraint, setupStringLengthConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkGenerator

public LinkGenerator()
Method Detail

generate

public javax.faces.component.UIComponent generate(javax.faces.context.FacesContext context,
                                                  java.lang.String id)
Description copied from interface: IComponentGenerator
Dynamically generates a component in a default state

Parameters:
context - FacesContext
id - Optional id for the newly created component, if null is passed a unique id is generated
Returns:
The component instance
See Also:
IComponentGenerator.generate(javax.faces.context.FacesContext, java.lang.String)

createComponent

protected javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context,
                                                            UIPropertySheet propertySheet,
                                                            PropertySheetItem item)
Description copied from class: BaseComponentGenerator
Creates the component for the given proerty sheet item.

Overrides:
createComponent in class BaseComponentGenerator
Parameters:
context - FacesContext
propertySheet - The property sheet being generated
item - The property or association being generated
Returns:
The newly created component
See Also:
BaseComponentGenerator.createComponent(javax.faces.context.FacesContext, org.alfresco.web.ui.repo.component.property.UIPropertySheet, org.alfresco.web.ui.repo.component.property.PropertySheetItem)

setupProperty

protected void setupProperty(javax.faces.context.FacesContext context,
                             UIPropertySheet propertySheet,
                             PropertySheetItem item,
                             org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef,
                             javax.faces.component.UIComponent component)
Description copied from class: BaseComponentGenerator
Sets up the property component i.e. setting the value binding

Overrides:
setupProperty in class BaseComponentGenerator
Parameters:
context - FacesContext
propertySheet - The property sheet
item - The parent component
propertyDef - The property definition
component - The component representing the property
See Also:
BaseComponentGenerator.setupProperty(javax.faces.context.FacesContext, org.alfresco.web.ui.repo.component.property.UIPropertySheet, org.alfresco.web.ui.repo.component.property.PropertySheetItem, org.alfresco.service.cmr.dictionary.PropertyDefinition, javax.faces.component.UIComponent)


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