|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay
Display Template handles the insertion of attribute values into an HTML template, in order to display filtered information to the user in an attractive manner.
It also implements a simple web browser for viewing help links etc.
Form submission is done in the @MyHTMLEditorKit class.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static java.lang.String |
ATTRIBTAG
|
static java.lang.String |
AVIEXTENSION
|
protected java.lang.String |
currentDN
|
static java.lang.String |
DEFAULTTEXT
|
static java.lang.String |
DOCEXTENSION
|
protected MyHTMLEditorKit |
htmlEditorKit
|
protected com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay.MyHyperlinkListener |
hyperlinkListener
|
static java.lang.String |
ILLEGAL_VALUE
|
static java.lang.String |
JPEGEXTENSION
|
static int |
MAX_LEGAL_VALUE_LENGTH
|
static java.lang.String |
MIDEXTENSION
|
static java.lang.String |
NODATA
|
static java.lang.String |
NOVALUEFOUND
|
protected boolean |
settingUpTemplates
|
boolean |
showHTMLErrors
|
static java.lang.String |
startFile
|
static java.lang.String |
WAVEXTENSION
|
static java.lang.String |
XLSEXTENSION
|
| 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 | |
HTMLTemplateDisplay(java.awt.Component owner,
java.util.Properties props,
CBResourceLoader resourceLoader)
Default Constructor for HTMLTemplateDisplay |
|
HTMLTemplateDisplay(java.awt.Component owner,
java.lang.String templateURL,
java.util.Properties props,
CBResourceLoader resourceLoader)
Constructor that attempts to open a new template |
|
| Method Summary | |
protected void |
attemptToSetOCSpecificTemplate(DXAttributes entry,
java.lang.String[] templates)
This attempts to match a list of template names with the deepest possible object class. |
boolean |
canCreateEntry()
Indicates whether the editor can create a new entry, given a unique name. |
protected void |
displayData(DXEntry entry)
Checks if the HTML page has any custom tags such as... |
void |
displayEntry(DXEntry entry,
DataSource formDataSource)
Displays information about a given tree node, expressed as a DXEntry (an attribute set and associated distinguished name of a node). |
java.lang.String |
formattedAllAttributes(DXEntry attributes,
java.lang.String modifier)
|
java.lang.String |
formattedAttribute(javax.naming.directory.Attribute theAttribute,
java.lang.String modifier)
This takes a attribute type name and the complete attribute list, as well as an optional modifier, and returns the formatted html necessary to display the attribute in the html text. |
java.lang.String |
formattedAttribute(java.lang.String attType,
javax.naming.directory.Attributes attributes,
java.lang.String modifier)
This takes a attribute type name and the complete attribute list, as well as an optional modifier, and returns the formatted html necessary to display the attribute in the html text. |
java.lang.String |
formattedListAttribute(javax.naming.NamingEnumeration attlist,
java.lang.String modifier,
java.lang.String syntaxOID,
java.lang.String syntaxID)
Takes a list of attribute values, and formats them as an html list, possibly of a type specified by the modifier. |
protected java.lang.String |
getAttValue(java.lang.String name,
DXEntry entry)
Get the value of an attribute corresponding to a particular name. |
protected java.lang.String |
getAttValue(java.lang.String name,
DXEntry entry,
int position)
Get the value of an attribute corresponding to a particular name. |
DataSink |
getDataSink()
Returns the data sink that will be used to slurp data. |
javax.swing.JComponent |
getDisplayComponent()
This returns the swing component being used to display the data, so that another component can set its visibility. |
javax.swing.ImageIcon |
getIcon()
Returns the icon of the editor. |
java.lang.String |
getMediaTags(java.lang.String listStart,
java.lang.String listEnd,
java.lang.String itemStart,
java.lang.String itemEnd,
java.lang.String type)
Returns a string representation of all HTML code need to display all of the jpegPhoto or audio attributes in the template. |
java.lang.String |
getName()
Returns the title of the editor. |
protected javax.swing.JEditorPane |
getNewEditor()
As advised in the doco, it is apparently better to re-create an editor pane every time, rather than reuse the old one. |
java.lang.String[] |
getObjectClasses(DXAttributes atts)
|
java.lang.String |
getObjectClassSignature(java.lang.String[] objectClasses)
Concatenates a string array of alphabetically ordered object Classes into one long string, providing a unique String for this combination of classes. |
javax.swing.JPopupMenu |
getPopupMenu(java.lang.String rdn)
Use the default popupmenu. |
java.awt.Component |
getPrintComponent()
Return the thingumy that should be printed. |
protected java.lang.String |
getTagValue(java.lang.String tagName,
java.lang.String tag)
|
java.io.File |
getTemplateFile(java.lang.String fileNameAndPath)
Returns a template file given the root path and name of the file. |
java.lang.String |
getToolTip()
Returns the Tool Tip of the editor. |
javax.swing.ImageIcon |
getTreeIcon(java.lang.String rdn)
Use the default tree icon system based on naming value or object class. |
boolean |
hideSubEntries(java.lang.String rdn)
Don't hide sub entries. |
void |
initToolBar()
Sets up the initial tool bar. |
protected java.lang.String |
insertFormAudioData(java.lang.String htmlString,
DXEntry entry)
Inserts audio hyperlinks into the html file/template. |
protected java.lang.String |
insertFormData(java.lang.String htmlString,
DXEntry entry)
This method looks for form elements, and fills in the initial form values based on the entry data received. |
protected java.lang.String |
insertFormImageData(java.lang.String htmlString,
DXEntry entry)
Inserts jpegPhoto values into the html file/template. |
protected java.lang.String |
insertFormInputData(java.lang.String htmlString,
DXEntry entry)
Goes through the html template, checking for any field tags of text type for example: <tr> <th align="right" width="200">Common Name:</th> <td width="230"><input type="text" name="cn" value=""/></td> </tr> If one is found, it checks the name and gets (in this example) the cn value from the entry and inserts it into the value part of the tag (for example value="Trudi"). |
protected java.lang.String |
insertFormSelectData(java.lang.String htmlString,
DXEntry entry)
|
protected java.lang.String |
insertFormTextAreaData(java.lang.String htmlString,
DXEntry entry)
Goes through the html template, checking for any text area tags for example: <tr> <th align="right" valign="top" width="200">Address:</th> <td width="230"><textarea name="postalAddress" rows="4"></textarea></td> </tr> If one is found, it checks the name and gets (in this example) the postalAddress value from the entry and inserts it into the value part of the tag (for example value="21 Jump Street"). |
protected java.lang.String |
insertFormValue(java.lang.String tag,
DXEntry entry,
java.lang.String name)
Inserts the attribute value into the tag. |
protected java.lang.String |
insertFormValue(java.lang.String tag,
DXEntry entry,
java.lang.String name,
int position)
Inserts the attribute value into the tag. |
boolean |
isUnique()
This sets whether the component expects to be the only editor used for its object class, or whether it will co-exist with any other applicable editors, and the default (html/table) editor. |
void |
launchMailClient(java.lang.String desc)
Tricky method that launches the users default mail client. |
protected void |
mediaCheck(DXEntry entry,
java.lang.String type)
Checks if there is any jpegPhoto, audio or odDocumentDOC attributes in the entry if so creates temporary files for them only if there isn't any already. |
boolean |
objectClassesChanged(java.lang.String classesSignature)
Checks if the list of object classes has changed. |
boolean |
openDocumentURL(java.lang.String docURL)
Convenience wrapper for openPage, that prefixes parameter URL with the document URL directory path. |
boolean |
openLocalURL(java.lang.String localURL)
Convenience wrapper for openPage, that prefixes parameter URL with the local URL directory path. |
boolean |
openNewTemplate(java.lang.String subdir,
java.lang.String templateURL)
Try to open a new template. |
boolean |
openPage(java.lang.String urlString)
identical in intent to openPage(URL) (see). |
boolean |
openPage(java.net.URL url)
this opens a page for viewing. |
java.lang.StringBuffer |
parseNewTemplate(java.lang.StringBuffer templateText,
java.net.URL url)
|
static java.lang.String |
parseXHTML(java.lang.String html)
Changes XHTML into standard HTML for display. |
java.lang.String[] |
readTemplateNames(java.lang.String[] objectClassNames)
Reads the template names by examining available template files on... disk... |
void |
registerComponents(javax.swing.JMenuBar menu,
javax.swing.JToolBar buttons,
javax.swing.JTree tree,
javax.swing.JPopupMenu treeMenu,
javax.swing.JFrame jx)
Registers Swing components that the pluggable editor may manipulate. |
protected void |
setEditor(java.net.URL url)
Sets the editor to display the particular (html only, no DNs...) url. |
void |
setEditorText(java.lang.String htmlText)
Recreates the editor, and sets the text. |
void |
setNewTemplate(java.lang.String templateName)
|
protected void |
setToDefault()
|
java.lang.String |
syntaxParse(java.lang.String s,
java.lang.String syntaxOID)
|
protected boolean |
templateExists(java.lang.String candidate)
Checks whether a particular candidate string corresponds to the name of a template in the viewTemplates combo box. |
java.lang.String |
toString()
|
void |
unload()
This method is called when the editor is being unloaded by the browser, and allows for any required clean up activity. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULTTEXT
public static final java.lang.String ATTRIBTAG
public static java.lang.String NOVALUEFOUND
public static final java.lang.String JPEGEXTENSION
public static final java.lang.String DOCEXTENSION
public static final java.lang.String XLSEXTENSION
public static final java.lang.String WAVEXTENSION
public static final java.lang.String AVIEXTENSION
public static final java.lang.String MIDEXTENSION
public static final java.lang.String startFile
public static final int MAX_LEGAL_VALUE_LENGTH
public static final java.lang.String ILLEGAL_VALUE
public static java.lang.String NODATA
public boolean showHTMLErrors
protected com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay.MyHyperlinkListener hyperlinkListener
protected MyHTMLEditorKit htmlEditorKit
protected boolean settingUpTemplates
protected java.lang.String currentDN
| Constructor Detail |
public HTMLTemplateDisplay(java.awt.Component owner,
java.util.Properties props,
CBResourceLoader resourceLoader)
public HTMLTemplateDisplay(java.awt.Component owner,
java.lang.String templateURL,
java.util.Properties props,
CBResourceLoader resourceLoader)
owner - the parent component.templateURL - the URL of the html format template fileprops - a properties object containing values for 'dir.templates',
'dir.local' and 'dir.htmldocs')| Method Detail |
protected void setToDefault()
public void setEditorText(java.lang.String htmlText)
htmlText - the Text (possibly html) to displayprotected javax.swing.JEditorPane getNewEditor()
protected boolean templateExists(java.lang.String candidate)
public void initToolBar()
public void setNewTemplate(java.lang.String templateName)
public java.lang.String[] readTemplateNames(java.lang.String[] objectClassNames)
public boolean openNewTemplate(java.lang.String subdir,
java.lang.String templateURL)
public java.lang.StringBuffer parseNewTemplate(java.lang.StringBuffer templateText,
java.net.URL url)
public java.io.File getTemplateFile(java.lang.String fileNameAndPath)
fileNameAndPath - the name and path, but not the extension,
of the template file
public java.lang.String[] getObjectClasses(DXAttributes atts)
public java.lang.String getObjectClassSignature(java.lang.String[] objectClasses)
public boolean objectClassesChanged(java.lang.String classesSignature)
public void displayEntry(DXEntry entry,
DataSource formDataSource)
DataSink
displayEntry in interface DataSinkentry - the directory entry to display. If null, indicates that a
blank or 'empty' entry should be displayed.formDataSource - the datasource used for data modification/schema access etc.
May be null, in which case no schema checking/prompting will be done,
and no editing will be possible.
protected void attemptToSetOCSpecificTemplate(DXAttributes entry,
java.lang.String[] templates)
protected void displayData(DXEntry entry)
entry - the entry that we are trying to display.
protected void mediaCheck(DXEntry entry,
java.lang.String type)
entry - the entry that is to be displayed.type - the type of media being checked for (jpegPhoto, audio or odDocumentDOC).public static java.lang.String parseXHTML(java.lang.String html)
protected java.lang.String insertFormData(java.lang.String htmlString,
DXEntry entry)
Note that if anything is wrong with the form, this will simply fail with an exception (probably a substring exception).
protected java.lang.String getTagValue(java.lang.String tagName,
java.lang.String tag)
protected java.lang.String insertFormInputData(java.lang.String htmlString,
DXEntry entry)
<tr> <th align="right" width="200">Common Name:</th> <td width="230"><input type="text" name="cn" value=""/></td> </tr>
If one is found, it checks the name and gets (in this example) the cn value from the entry and inserts it into the value part of the tag (for example value="Trudi"). If the attribute is multivalued, the input tag (<input type="text" name="cn" value=""/>) is copied and reused until all of the attribute values are inserted. For layout, a </br> is added to the end of multivalued attribute tags. The tag is then inserted back into the html template and returned.
htmlString - the actual html file that is to be displayed.entry - the current entry that the html file is trying to display.
protected java.lang.String insertFormSelectData(java.lang.String htmlString,
DXEntry entry)
protected java.lang.String insertFormTextAreaData(java.lang.String htmlString,
DXEntry entry)
<tr> <th align="right" valign="top" width="200">Address:</th> <td width="230"><textarea name="postalAddress" rows="4"></textarea></td> </tr>
If one is found, it checks the name and gets (in this example) the postalAddress value from the entry and inserts it into the value part of the tag (for example value="21 Jump Street"). If the attribute is multivalued, the input tag (<textarea name="postalAddress" rows="4"></textarea>) is copied and reused until all of the attribute values are inserted. For layout, a </br> is added to the end of multivalued attribute tags. The tag is then inserted back into the html template and returned.
htmlString - the actual html file that is to be displayed.entry - the current entry that the html file is trying to display.
protected java.lang.String insertFormImageData(java.lang.String htmlString,
DXEntry entry)
For example: <br/><img src="..\..\temp\cn=Allison MOODY,o=DEMOCORP,c=AU0.jpg" border="1" /> <br/><img src="..\..\temp\cn=Allison MOODY,o=DEMOCORP,c=AU1.jpg" border="1" /> <br/><img src="..\..\temp\cn=Allison MOODY,o=DEMOCORP,c=AU2.jpg" border="1" />
It gets the names of the files from searching the temp directory for names that begin with the DN of the current entry and end in '.jpg'. The string buffer is inserted in the place of the removed image tag (the last ">" is removed), and then returned.
The html files/templates reside in jxplorer>templates>inetOrgPerson (inetOrgPerson being the only object class that contains the jpegPhoto attribute that we provide templates for) whereas the temp directory resides in the jxplorer directory. This is why the image tag needs "..\..\temp\".
htmlString - the actual html file that is to be displayed & that the jpegPhoto image is to be set.entry - the current entry that the html file is trying to display.
protected java.lang.String insertFormAudioData(java.lang.String htmlString,
DXEntry entry)
For example: <a href="..\..\temp\cn=Allison MOODY,o=DEMOCORP,c=AU0.wav">Sound File<a/><br/> <a href="..\..\temp\cn=Allison MOODY,o=DEMOCORP,c=AU1.wav">Sound File<a/><br/> <a href="..\..\temp\cn=Allison MOODY,o=DEMOCORP,c=AU2.wav">Sound File<a/><br/>
It gets the names of the files from searching the temp directory for names that begin with the DN of the current entry & that don't end in '.jpg'. The string buffer is inserted in the place of the removed audio tag , and then returned.
The html files/templates reside in jxplorer>templates>inetOrgPerson (inetOrgPerson being the only object class that contains the audio attribute that we provide templates for) whereas the temp directory resides in the jxplorer directory. This is why the image tag needs "..\..\temp\".
htmlString - the actual html file that the audio hyperlinks need to be inserted into.entry - the current entry that the html file is trying to display.
protected java.lang.String insertFormValue(java.lang.String tag,
DXEntry entry,
java.lang.String name)
tag - the html tag that the value needs to be inserted into e.g. <input type="text" name="cn" value=""/>.entry - the current entry (or the entry that needs to be displayed).name - the name of the attribute (e.g. 'cn').
protected java.lang.String insertFormValue(java.lang.String tag,
DXEntry entry,
java.lang.String name,
int position)
tag - the html tag that the value needs to be inserted into e.g. <input type="text" name="cn" value=""/>.entry - the current entry (or the entry that needs to be displayed).name - the name of the attribute (e.g. 'cn').position - the position of the value to be inserted (an attribute may be multivalued).
protected java.lang.String getAttValue(java.lang.String name,
DXEntry entry)
name - the name of the attribute(e.g. 'cn').entry - the current entry (or the entry that needs to be displayed).
protected java.lang.String getAttValue(java.lang.String name,
DXEntry entry,
int position)
Get the value of an attribute corresponding to a particular name.
For simplicity elsewhere in the code (!) we make sure that for naming attributes the first value (in position 0) is *always* the naming value.
name - the actual attribute name (e.g. 'cn').entry - the current entry (or the entry that needs to be displayed).position - the position of the value to be inserted (an attribute may be multivalued).
public java.lang.String formattedAttribute(java.lang.String attType,
javax.naming.directory.Attributes attributes,
java.lang.String modifier)
attType - the type of the attribute being formattedattributes - a list of all available attributesmodifier - one of list|table|plain, or a null value
(which is equivalent to list) that sets the html list display
type
public java.lang.String formattedAttribute(javax.naming.directory.Attribute theAttribute,
java.lang.String modifier)
modifier - one of list|table|plain, or a null value
(which is equivalent to list) that sets the html list display
type
public java.lang.String syntaxParse(java.lang.String s,
java.lang.String syntaxOID)
public java.lang.String formattedListAttribute(javax.naming.NamingEnumeration attlist,
java.lang.String modifier,
java.lang.String syntaxOID,
java.lang.String syntaxID)
attlist - a list of objects to display.modifier - one of list|table|plain, or a null value
(which is equivalent to list) that sets the html list display
type.syntaxOID - eg 1.3.6.1.4.1.1466.155.121.1.41 for postalAddress.syntaxID - eg postalAddress.
public java.lang.String getMediaTags(java.lang.String listStart,
java.lang.String listEnd,
java.lang.String itemStart,
java.lang.String itemEnd,
java.lang.String type)
listStart - the start tag for the display type (bullet or table).listEnd - the end tag for the display type.itemStart - the start tag for the display inserts.itemEnd - the end tag for the display inserts.
public java.lang.String formattedAllAttributes(DXEntry attributes,
java.lang.String modifier)
public boolean openLocalURL(java.lang.String localURL)
localURL - the URL to convert to a fully defined pathpublic boolean openDocumentURL(java.lang.String docURL)
docURL - the URL to convert to a fully defined pathpublic void launchMailClient(java.lang.String desc)
public boolean openPage(java.lang.String urlString)
urlString - the string form of the url to be opened.
public boolean openPage(java.net.URL url)
url - the location of the page (help file, template etc.) to be opened
protected void setEditor(java.net.URL url)
throws java.io.IOException
url - the url of the local file/web page to display
java.io.IOExceptionpublic javax.swing.JComponent getDisplayComponent()
PluggableEditorIn many cases this may be the editor itself.
getDisplayComponent in interface PluggableEditorpublic java.lang.String toString()
toString in class java.awt.Componentpublic java.lang.String getName()
PluggableEditor
getName in interface PluggableEditorgetName in class java.awt.Componentpublic javax.swing.ImageIcon getIcon()
PluggableEditor
getIcon in interface PluggableEditorpublic java.lang.String getToolTip()
PluggableEditor
getToolTip in interface PluggableEditorpublic java.awt.Component getPrintComponent()
getPrintComponent in interface PluggableEditorpublic boolean isUnique()
PluggableEditor
isUnique in interface PluggableEditorpublic DataSink getDataSink()
PluggableEditorIn many cases this may be the editor itself.
getDataSink in interface PluggableEditorpublic boolean canCreateEntry()
DataSink
canCreateEntry in interface DataSink
public void registerComponents(javax.swing.JMenuBar menu,
javax.swing.JToolBar buttons,
javax.swing.JTree tree,
javax.swing.JPopupMenu treeMenu,
javax.swing.JFrame jx)
PluggableEditorAny changes made by the editor should be removed when the editor is unloaded.
registerComponents in interface PluggableEditormenu - the main menu that appears on the top of JXplorerbuttons - the JXplorer button bartree - the JXplorer treetreeMenu - the popup menu that JXplorer uses for tree itemsjx - the root JXplorer object, from which the entire GUI tree descends. (You need this for
look & feel updates, and possibly for paintology)public void unload()
PluggableEditor
unload in interface PluggableEditorpublic javax.swing.ImageIcon getTreeIcon(java.lang.String rdn)
getTreeIcon in interface PluggableEditorrdn - the name of the tree node being displayed (i.e. the rdn of the entry)
public javax.swing.JPopupMenu getPopupMenu(java.lang.String rdn)
getPopupMenu in interface PluggableEditorrdn - the name of the tree node being displayed (i.e. the rdn of the entry)
public boolean hideSubEntries(java.lang.String rdn)
hideSubEntries in interface PluggableEditorrdn - the name of the tree node being displayed (i.e. the rdn of the entry)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||