org.kuali.student.lum.common.client.configuration
Class AbstractConfiguration

java.lang.Object
  extended by org.kuali.student.lum.common.client.configuration.AbstractConfiguration
All Implemented Interfaces:
Configuration
Direct Known Subclasses:
AbstractSectionConfiguration

public abstract class AbstractConfiguration
extends Object
implements Configuration

Skeletal implementation of Configuration.

Author:
Igor

Field Summary
protected  Configurer configurer
           
 
Constructor Summary
AbstractConfiguration()
           
 
Method Summary
 void applyRestrictions()
           
 boolean checkPermission(DataModel model)
           
 MessageKeyInfo generateMessageInfo(String labelKey)
          Generates a message info to be used in your field descriptor to get the label for the field.
 String getLabel(String labelKey)
          Gets the string corresponding to the label key passed in from the application messages
 void removeRestrictions()
           
 void setConfigurer(Configurer configurer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.student.lum.common.client.configuration.Configuration
asWidget, getName, getView
 

Field Detail

configurer

protected Configurer configurer
Constructor Detail

AbstractConfiguration

public AbstractConfiguration()
Method Detail

setConfigurer

public void setConfigurer(Configurer configurer)
Specified by:
setConfigurer in interface Configuration

applyRestrictions

public void applyRestrictions()
Specified by:
applyRestrictions in interface Configuration

checkPermission

public boolean checkPermission(DataModel model)
Specified by:
checkPermission in interface Configuration

removeRestrictions

public void removeRestrictions()
Specified by:
removeRestrictions in interface Configuration

generateMessageInfo

public MessageKeyInfo generateMessageInfo(String labelKey)
Generates a message info to be used in your field descriptor to get the label for the field. Used by the field descriptor with the application context to determine the label to show based on the labelKey

Parameters:
labelKey - key of the message - must match a message in your messages (stored in the db)
Returns:

getLabel

public String getLabel(String labelKey)
Gets the string corresponding to the label key passed in from the application messages

Parameters:
labelKey -
Returns:


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