org.alfresco.web.bean.generator
Class CategorySelectorGenerator

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

public class CategorySelectorGenerator
extends BaseComponentGenerator

Generates a category selector component.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator
BaseComponentGenerator.ControlType
 
Constructor Summary
CategorySelectorGenerator()
           
 
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  BaseComponentGenerator.ControlType getControlType()
          Returns the type of the control being generated
protected  void setupMandatoryValidation(javax.faces.context.FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item, javax.faces.component.UIComponent component, boolean realTimeChecking, java.lang.String idSuffix)
          Sets up a client mandatory validation rule with the property sheet for the given item.
 
Methods inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator
addStringConstraintParam, createAndSetConverter, createOutputTextComponent, generateAndAdd, getAssociationDefinition, getPropertyDefinition, isEnabledInEditMode, setupAssociation, setupConstraints, setupConverter, setupConverter, setupMandatoryAssociationIfNecessary, setupMandatoryMarker, setupMandatoryPropertyIfNecessary, setupMultiValuePropertyIfNecessary, setupNumericRangeConstraint, setupProperty, setupRegexConstraint, setupStringLengthConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategorySelectorGenerator

public CategorySelectorGenerator()
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

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

setupMandatoryValidation

protected void setupMandatoryValidation(javax.faces.context.FacesContext context,
                                        UIPropertySheet propertySheet,
                                        PropertySheetItem item,
                                        javax.faces.component.UIComponent component,
                                        boolean realTimeChecking,
                                        java.lang.String idSuffix)
Description copied from class: BaseComponentGenerator
Sets up a client mandatory validation rule with the property sheet for the given item.

Overrides:
setupMandatoryValidation in class BaseComponentGenerator
Parameters:
context - FacesContext
propertySheet - The property sheet to add the validation rule to
item - The item being generated
component - The component representing the item
realTimeChecking - true to make the client validate as the user types
idSuffix - An optional suffix to add to the client id

getControlType

protected BaseComponentGenerator.ControlType getControlType()
Description copied from class: BaseComponentGenerator
Returns the type of the control being generated

Overrides:
getControlType in class BaseComponentGenerator
Returns:
The type of the control either a FIELD or a SELECTOR


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