oracle.jdeveloper.palette
Class PaletteEditorContext
java.lang.Object
oracle.jdeveloper.palette.PaletteEditorContext
- All Implemented Interfaces:
- javax.swing.event.ChangeListener, java.util.EventListener, java.awt.event.KeyListener, java.beans.VetoableChangeListener
- public class PaletteEditorContext
- extends java.lang.Object
- implements java.beans.VetoableChangeListener, javax.swing.event.ChangeListener, java.awt.event.KeyListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaletteEditorContext
public PaletteEditorContext()
PaletteEditorContext
public PaletteEditorContext(Context context,
PaletteEditor editor)
setPaletteEditor
public void setPaletteEditor(PaletteEditor editor)
getPaletteEditor
public PaletteEditor getPaletteEditor()
setValue
public void setValue(java.lang.String value,
int pos)
getValue
public java.lang.String getValue()
setCodeEditor
public void setCodeEditor(CodeEditor editor)
getCodeEditor
public CodeEditor getCodeEditor()
setWebTags
public void setWebTags(oracle.jdeveloper.jsp.tags.insight.WebTags tags)
getWebTags
public oracle.jdeveloper.jsp.tags.insight.WebTags getWebTags()
setContext
public void setContext(Context context)
getContext
public Context getContext()
init
public void init()
finish
public void finish()
invokeEditor
public java.lang.Object invokeEditor(java.lang.String title)
invokeEditor
public java.lang.Object invokeEditor(boolean useFormEditor,
boolean showViewer)
updateViewer
public void updateViewer(java.lang.String text)
vetoableChange
public void vetoableChange(java.beans.PropertyChangeEvent evt)
throws java.beans.PropertyVetoException
-
- Specified by:
vetoableChange
in interface java.beans.VetoableChangeListener
-
- Throws:
java.beans.PropertyVetoException
showWebDocumentDialog
public java.net.URL showWebDocumentDialog(Context context)
showImageDialog
public java.net.URL showImageDialog(Context context)
addImageToProject
public final void addImageToProject(java.net.URL url,
Context context)
getRelativeString
public java.lang.String getRelativeString(Context context,
java.net.URL url)
- Get a relative url for any document under the document root in a web application
-
- Parameters:
context
- the current context
url
- the url to make relative
- Returns:
- relative if possible, otherwise, a string represenation of the full url.
getRelativeStringForImage
public java.lang.String getRelativeStringForImage(Context context,
java.net.URL url)
- Get a relative url for any document under the document root in a web application
-
- Parameters:
context
- the current context
url
- the url to make relative
- Returns:
- relative if possible, otherwise, a string represenation of the full url.
getEvents
public java.lang.String getEvents()
getStyle
public java.lang.String getStyle()
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
- Handle the proper HELP_ID for HTML Editors.
-
- Specified by:
stateChanged
in interface javax.swing.event.ChangeListener
showCssDialog
public java.net.URL showCssDialog(Context context)
getDefinedScript
public final java.lang.String getDefinedScript(java.lang.String title,
java.lang.String type)
validateDialog
public void validateDialog(java.awt.event.KeyEvent e)
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
-
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
-
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
-
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
getCurrentPosition
public static final java.lang.Integer getCurrentPosition(Context context)
Copyright © 1997, 2004, Oracle. All rights reserved.