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 Object
implements PermissionSwing
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.swing.PermissionSwing
PermissionSwing.BooleanPermissionSwing -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponent(Role role, Permission permission, Runnable onChange) Get a component that configures this permission.getLabel(Permission permission) Get a label for the permission component.
-
Constructor Details
-
EditorPermissionSwing
public EditorPermissionSwing()
-
-
Method Details
-
getLabel
Description copied from interface:PermissionSwingGet a label for the permission component.- Specified by:
getLabelin interfacePermissionSwing- Parameters:
permission- the permission to configure with this component- Returns:
- a component that configures the permission or null if no label
- Throws:
IllegalArgumentException- if this class does not support the class with the name given in parameter 'className'
-
getComponent
public JComponent getComponent(Role role, Permission permission, Runnable onChange) throws IllegalArgumentException Description copied from interface:PermissionSwingGet a component that configures this permission. This method initializes the panel with an empty configuration.- Specified by:
getComponentin 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:
IllegalArgumentException- if this class does not support the class with the name given in parameter 'className'
-