org.musicontroller.gui.admin
Class RoleSelectionModel

java.lang.Object
  extended by org.musicontroller.gui.admin.RoleSelectionModel
All Implemented Interfaces:
org.apache.tapestry.form.IPropertySelectionModel

public class RoleSelectionModel
extends java.lang.Object
implements org.apache.tapestry.form.IPropertySelectionModel

Implements a Tapestry PropertySelectionModel for use as selector for Roles in the UserEditor.

Author:
Varienaja

Constructor Summary
RoleSelectionModel(java.util.List<Role> roles)
           
 
Method Summary
 java.lang.String getLabel(int index)
           
 Role getOption(int index)
           
 int getOptionCount()
           
 java.lang.String getValue(int index)
           
 boolean isDisabled(int index)
           
 Role translateValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleSelectionModel

public RoleSelectionModel(java.util.List<Role> roles)
Method Detail

getLabel

public java.lang.String getLabel(int index)
Specified by:
getLabel in interface org.apache.tapestry.form.IPropertySelectionModel

getOptionCount

public int getOptionCount()
Specified by:
getOptionCount in interface org.apache.tapestry.form.IPropertySelectionModel

translateValue

public Role translateValue(java.lang.String value)
Specified by:
translateValue in interface org.apache.tapestry.form.IPropertySelectionModel

getOption

public Role getOption(int index)
Specified by:
getOption in interface org.apache.tapestry.form.IPropertySelectionModel

getValue

public java.lang.String getValue(int index)
Specified by:
getValue in interface org.apache.tapestry.form.IPropertySelectionModel

isDisabled

public boolean isDisabled(int index)
Specified by:
isDisabled in interface org.apache.tapestry.form.IPropertySelectionModel


Copyright © 2010 A.J.V.. All Rights Reserved.