org.musicontroller.gui.admin
Class RoleSelectionModel
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleSelectionModel
public RoleSelectionModel(java.util.List<Role> roles)
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.