Package jmri.jmrit.display.swing
Class EditorPermissionsSwing.EditorPermissionSwing
- java.lang.Object
-
- jmri.jmrit.display.swing.EditorPermissionsSwing.EditorPermissionSwing
-
- All Implemented Interfaces:
PermissionSwing
- Enclosing class:
- EditorPermissionsSwing
public static class EditorPermissionsSwing.EditorPermissionSwing extends java.lang.Object implements PermissionSwing
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jmri.swing.PermissionSwing
PermissionSwing.BooleanPermissionSwing
-
-
Constructor Summary
Constructors Constructor Description EditorPermissionSwing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponent
getComponent(Role role, Permission permission, java.lang.Runnable onChange)
Get a component that configures this permission.javax.swing.JLabel
getLabel(Permission permission)
Get a label for the permission component.
-
-
-
Constructor Detail
-
EditorPermissionSwing
public EditorPermissionSwing()
-
-
Method Detail
-
getLabel
public javax.swing.JLabel getLabel(Permission permission) throws java.lang.IllegalArgumentException
Description copied from interface:PermissionSwing
Get a label for the permission component.- Specified by:
getLabel
in interfacePermissionSwing
- Parameters:
permission
- the permission to configure with this component- Returns:
- a component that configures the permission or null if no label
- Throws:
java.lang.IllegalArgumentException
- if this class does not support the class with the name given in parameter 'className'
-
getComponent
public javax.swing.JComponent getComponent(Role role, Permission permission, java.lang.Runnable onChange) throws java.lang.IllegalArgumentException
Description copied from interface:PermissionSwing
Get a component that configures this permission. This method initializes the panel with an empty configuration.- Specified by:
getComponent
in interfacePermissionSwing
- Parameters:
role
- the rolepermission
- the permission to configure with this componentonChange
- executes on change, used mainly to set dirty flag- Returns:
- a component that configures the permission
- Throws:
java.lang.IllegalArgumentException
- if this class does not support the class with the name given in parameter 'className'
-
-