Package jmri.swing
Class PermissionSwing.BooleanPermissionSwing
java.lang.Object
jmri.swing.PermissionSwing.BooleanPermissionSwing
- All Implemented Interfaces:
PermissionSwing
- Direct Known Subclasses:
LoadAndStorePermissionOwnerSwing.LoadXmlFilePermissionSwing,LoadAndStorePermissionOwnerSwing.StoreXmlFilePermissionSwing,PermissionsProgrammerSwing.PermissionProgrammingOnMainSwing,PermissionsProgrammerSwing.PermissionProgrammingTrackSwing,PermissionsSystemAdminSwing.PermissionEditOwnPasswordSwing,PermissionsSystemAdminSwing.PermissionEditPermissionsSwing,PermissionsSystemAdminSwing.PermissionEditPreferencesSwing
- Enclosing interface:
- PermissionSwing
public abstract static class PermissionSwing.BooleanPermissionSwing
extends Object
implements PermissionSwing
The default swing implementation for BooleanPermission.
The class is abstract since it should never be instantiated directly.
-
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.swing.PermissionSwing
getLabel
-
Constructor Details
-
BooleanPermissionSwing
public BooleanPermissionSwing()
-
-
Method Details
-
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'
-