wt.clients.beans
Class PermissionPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
wt.clients.beans.PermissionPropertyEditor
- All Implemented Interfaces:
- PropertyEditor
- public class PermissionPropertyEditor
- extends PropertyEditorSupport
Defines the property editor to be used when visually manipulating the
permission attribute of the FolderPanel
javabean. This
class creates a property editor which appears as a choicebox initialized
with all of the selectable AccessPermission
values.
- See Also:
FolderPanel
,
Supported API:true
Extendable:true
Method Summary |
String |
getAsText()
Returns the current permission value as a string. |
String |
getJavaInitializationString()
Returns the Java code to be used to set the value of the permission
attribute to the currently selected permission. |
String[] |
getTags()
Return a string array containing the string representation of
the permissions that the user can choose from in the property sheet
when visually manipulating a bean with a permission attribute. |
void |
setAsText(String value)
Sets the value of the permission to the given string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionID
private static final String versionID
- See Also:
- Constant Field Values
PermissionPropertyEditor
public PermissionPropertyEditor()
getTags
public String[] getTags()
- Return a string array containing the string representation of
the permissions that the user can choose from in the property sheet
when visually manipulating a bean with a permission attribute.
- Returns:
- a string array containing the string representation of the
permissions
getJavaInitializationString
public String getJavaInitializationString()
- Returns the Java code to be used to set the value of the permission
attribute to the currently selected permission.
- Returns:
- a string representing the Java code which is generated into
an IDE to set the value of a permission attribute
getAsText
public String getAsText()
- Returns the current permission value as a string.
- Returns:
- the current string value of the permission
setAsText
public void setAsText(String value)
- Sets the value of the permission to the given string.
- Parameters:
value
- the String value of the permission