Extension SDK 9.0.5

oracle.jdeveloper.palette
Class PaletteEditorContext

java.lang.Object
  extended byoracle.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


Constructor Summary
PaletteEditorContext()
           
PaletteEditorContext(Context context, PaletteEditor editor)
           
 
Method Summary
 void addImageToProject(java.net.URL url, Context context)
           
 void finish()
           
 CodeEditor getCodeEditor()
           
 Context getContext()
           
static java.lang.Integer getCurrentPosition(Context context)
           
 java.lang.String getDefinedScript(java.lang.String title, java.lang.String type)
           
 java.lang.String getEvents()
           
 PaletteEditor getPaletteEditor()
           
 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
 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
 java.lang.String getStyle()
           
 java.lang.String getValue()
           
 oracle.jdeveloper.jsp.tags.insight.WebTags getWebTags()
           
 void init()
           
 java.lang.Object invokeEditor(boolean useFormEditor, boolean showViewer)
           
 java.lang.Object invokeEditor(java.lang.String title)
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void setCodeEditor(CodeEditor editor)
           
 void setContext(Context context)
           
 void setPaletteEditor(PaletteEditor editor)
           
 void setValue(java.lang.String value, int pos)
           
 void setWebTags(oracle.jdeveloper.jsp.tags.insight.WebTags tags)
           
 java.net.URL showCssDialog(Context context)
           
 java.net.URL showImageDialog(Context context)
           
 java.net.URL showWebDocumentDialog(Context context)
           
 void stateChanged(javax.swing.event.ChangeEvent e)
          Handle the proper HELP_ID for HTML Editors.
 void updateViewer(java.lang.String text)
           
 void validateDialog(java.awt.event.KeyEvent e)
           
 void vetoableChange(java.beans.PropertyChangeEvent evt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaletteEditorContext

public PaletteEditorContext()

PaletteEditorContext

public PaletteEditorContext(Context context,
                            PaletteEditor editor)
Method Detail

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)

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.