issrg.policywizard.slides
Class PWizardPanel7c

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by issrg.editor2.DomainPolicyEditor
                      extended by issrg.policywizard.slides.PWizardPanel7c
All Implemented Interfaces:
DITSelectionListener, WebDAVMultiBrowser_Listener, XMLChangeListener, java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeSelectionListener, javax.swing.tree.TreeModel

public class PWizardPanel7c
extends DomainPolicyEditor
implements java.awt.event.ItemListener

This slide will display Targets to be selected specifically from an LDAP.

Author:
Christian Azzopardi
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class issrg.editor2.DomainPolicyEditor
config, constraints, count, defaultName, domainPolicy, domainSpecName, domainTree, domainViewDisplay, editDisplay, idTextField, LDAP_Component, LDAPComponent_Option, ldapDirectly, ldapLabelText, listBoxDisplay, readableDisplay, readableNode, resourcesButton, resTextField, specTextField, splitPane, urlDropDownList, urlTextField, urlTextField_Option, viewDisplay, viewXML, WebDAV_Component, xmlED
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PWizardPanel7c()
          Creates a new instance of PWizardPanel7c
 
Method Summary
 void addDomainItem()
          Adds a new DomainSpec node.
 void addResource()
          Adds a resource type from the resource type textfield.
 void excludeEditItem()
           
 javax.swing.JPanel getContentPanel()
          Creates a panel with the main content this slide contains.
 javax.swing.JPanel getEditPanel()
          Constructs the Edit Panel.
 void includeEditItem()
           
 boolean isValidURL(java.lang.String url)
           
 void itemStateChanged(java.awt.event.ItemEvent ev)
           
 void replaceEditItem()
          Method that replaces the selected item in the multiLDAP Tree with the selected value of the Domain Policy Tree
 void setCaption(java.lang.String internalName, java.lang.String internationalName)
          Sets the text the component will show.
 
Methods inherited from class issrg.editor2.DomainPolicyEditor
actionPerformed, addComponent, addTreeModelListener, checkAttribute, communicationError, connectionError_WebDAVMultiBrowser, copyDomainItem, deleteDomainItem, doubleclick, fireEvent, getChild, getChildCount, getCurrentTreePath, getCurrentTreeSelection, getDomainViewPanel, getElementIndex, getIndexOfChild, getRoot, initDomainPolicyEditor, initDomainTree, isChildOfLDAPElement, isDomainSpecID, isInSubTree, isLeaf, isValidLDAPDN, notifyRoleAssignment, removeExcludeEditButton, removeIncludeEditButton, removeLDAPDirectly, removeLDAPLabel, removeReplaceEditButton, removeTreeModelListener, replacePreviousEditingItem, select, setCurrentTreePath, setCurrentTreeSelection, setInitialSettings, treeCollapsed, treeExpanded, unselect, valueChanged_WebDAVMultiBrowser, valueChanged, valueForPathChanged, XMLChanged
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, 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
 
Methods inherited from class java.awt.Container
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, hide, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PWizardPanel7c

public PWizardPanel7c()
Creates a new instance of PWizardPanel7c

See Also:
TargetDomainPolicy
Method Detail

getContentPanel

public javax.swing.JPanel getContentPanel()
Creates a panel with the main content this slide contains.

Overrides:
getContentPanel in class DomainPolicyEditor
Returns:
a JPanel with the GUI components that will be displayed when this slide is shown

getEditPanel

public javax.swing.JPanel getEditPanel()
Constructs the Edit Panel. (the ldap side)

Overrides:
getEditPanel in class DomainPolicyEditor
Returns:
a JPanel with the GUI components for this particular section.

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent ev)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

setCaption

public void setCaption(java.lang.String internalName,
                       java.lang.String internationalName)
Sets the text the component will show. If component parameter is not found in the list of parameters, the method will call its super method to attempt to find the component there.

Overrides:
setCaption in class DomainPolicyEditor
Parameters:
internalName - The internal name used in the program.
internationalName - The international name to set the text to.

addResource

public void addResource()
Adds a resource type from the resource type textfield. The Resource Type text field, must not be empty, and the selected node must be right.

Overrides:
addResource in class DomainPolicyEditor

includeEditItem

public void includeEditItem()
Overrides:
includeEditItem in class DomainPolicyEditor

excludeEditItem

public void excludeEditItem()
Overrides:
excludeEditItem in class DomainPolicyEditor

replaceEditItem

public void replaceEditItem()
Description copied from class: DomainPolicyEditor
Method that replaces the selected item in the multiLDAP Tree with the selected value of the Domain Policy Tree

Overrides:
replaceEditItem in class DomainPolicyEditor

addDomainItem

public void addDomainItem()
Description copied from class: DomainPolicyEditor
Adds a new DomainSpec node.

Overrides:
addDomainItem in class DomainPolicyEditor

isValidURL

public boolean isValidURL(java.lang.String url)