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 java.lang.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 Constructor Description BooleanPermissionSwing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponentgetComponent(Role role, Permission permission, java.lang.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, wait
-
Methods inherited from interface jmri.swing.PermissionSwing
getLabel
-
-
-
-
Constructor Detail
-
BooleanPermissionSwing
public BooleanPermissionSwing()
-
-
Method Detail
-
getComponent
public javax.swing.JComponent getComponent(Role role, Permission permission, java.lang.Runnable onChange) throws java.lang.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:
java.lang.IllegalArgumentException- if this class does not support the class with the name given in parameter 'className'
-
-