public class RightsRelationComponent
extends javax.swing.JPanel
,
Serialized FormModifier and Type | Class and Description |
---|---|
protected class |
RightsRelationComponent.RelationListModel
The the relation list model.
|
protected class |
RightsRelationComponent.RelationMouseListener
The relation list mouse listener.
|
protected class |
RightsRelationComponent.RelName
The relation name class to cache relation names.
|
protected class |
RightsRelationComponent.RightsListModel
The the rights relation list model.
|
protected class |
RightsRelationComponent.RightsMouseListener
The rights list mouse listener.
|
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.Action |
addRelationRights |
protected java.lang.String |
borderTitle |
protected javax.swing.Action |
deleteRelationRights |
protected RightsRelationComponent.RelName[] |
initialRightsRelations |
protected RightsRelationComponent.RelName[] |
relations |
protected javax.swing.JList |
relList |
protected javax.swing.JPopupMenu |
relPopup |
protected javax.swing.JList |
rightsList |
protected javax.swing.JPopupMenu |
rightsPopup |
protected int[] |
rightsRelations |
protected javax.swing.JSplitPane |
splitter |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RightsRelationComponent(ApplicationElement aeObj)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRelationRights()
Add relation rights
|
void |
commit(ApplicationElement aeObj)
Commit the changes (Transaction must be activated before.)
|
protected javax.swing.JPanel |
createButtonPanel(boolean space,
javax.swing.JButton[] arr)
Create a button panel.
|
void |
createPanel()
Create the panel.
|
javax.swing.JPopupMenu |
createRelationPopup()
Create the relation popup menu.
|
javax.swing.JPopupMenu |
createRightsPopup()
Create the rights popup menu.
|
void |
deleteRelationRights()
Delete relation rights
|
java.lang.String |
getBorderTitle()
get the border title.
|
javax.swing.JPopupMenu |
getRelationPopup()
Get the relation popup menu.
|
javax.swing.JPopupMenu |
getRightsPopup()
Get the rights popup menu.
|
ApplicationRelation[] |
getRightsToRemove()
Get all relations to be removed.
|
ApplicationRelation[] |
getRightsToWrite()
Get all relations to be written.
|
protected void |
initialize(ApplicationRelation[] rel,
ApplicationRelation[] initialRel)
Initialize the component.
|
void |
setBorderTitle(java.lang.String borderTitle)
Set the border title.
|
void |
setSensitivity()
Set the action sensitivity.
|
void |
sort()
Sort the arrays.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected RightsRelationComponent.RelName[] relations
protected RightsRelationComponent.RelName[] initialRightsRelations
protected int[] rightsRelations
protected javax.swing.JList rightsList
protected javax.swing.JList relList
protected javax.swing.JSplitPane splitter
protected java.lang.String borderTitle
protected javax.swing.Action addRelationRights
protected javax.swing.Action deleteRelationRights
protected javax.swing.JPopupMenu rightsPopup
protected javax.swing.JPopupMenu relPopup
public RightsRelationComponent(ApplicationElement aeObj) throws AoException
AoException
protected void initialize(ApplicationRelation[] rel, ApplicationRelation[] initialRel) throws AoException
rel
- The available relations belongs to the current application element.initilRel
- The current initial rights relations of the current application element.AoException
public void createPanel()
protected javax.swing.JPanel createButtonPanel(boolean space, javax.swing.JButton[] arr)
public javax.swing.JPopupMenu getRightsPopup()
public javax.swing.JPopupMenu createRightsPopup()
public javax.swing.JPopupMenu getRelationPopup()
public javax.swing.JPopupMenu createRelationPopup()
public void setSensitivity()
public void deleteRelationRights()
public void addRelationRights()
public ApplicationRelation[] getRightsToWrite()
public ApplicationRelation[] getRightsToRemove()
public void commit(ApplicationElement aeObj) throws AoException
aeObj
- the application element.AoException
public java.lang.String getBorderTitle()
public void setBorderTitle(java.lang.String borderTitle)
public void sort()