Oxygen XML Editor 15.0 Author API

ro.sync.ecss.extensions.commons.editor
Class SimpleURLChooserEditor

java.lang.Object
  extended by ro.sync.ecss.extensions.api.editor.AbstractInplaceEditor
      extended by ro.sync.ecss.extensions.commons.editor.SimpleURLChooserEditor
All Implemented Interfaces:
ro.sync.ecss.extensions.api.editor.InplaceEditor, ro.sync.ecss.extensions.api.editor.InplaceRenderer, ro.sync.ecss.extensions.api.Extension

@API(type=INTERNAL,
     src=PUBLIC)
public class SimpleURLChooserEditor
extends AbstractInplaceEditor
implements ro.sync.ecss.extensions.api.editor.InplaceRenderer

Simple URL Chooser in-place editor.


Constructor Summary
SimpleURLChooserEditor()
          Constructor.
 
Method Summary
 void cancelEditing()
           
protected  javax.swing.JTextField createTextField()
          Creates the text field used to display the selected URL and installs the UNDO support on it.
 CursorType getCursorType(AuthorInplaceContext context, int x, int y)
           
 CursorType getCursorType(int x, int y)
           
 java.lang.String getDescription()
           
 java.lang.Object getEditorComponent(AuthorInplaceContext context, ro.sync.exml.view.graphics.Rectangle allocation, ro.sync.exml.view.graphics.Point mouseLocation)
           
 java.lang.Object getRendererComponent(AuthorInplaceContext context)
           
 RendererLayoutInfo getRenderingInfo(AuthorInplaceContext context)
           
 ro.sync.exml.view.graphics.Rectangle getScrollRectangle()
           
 java.lang.String getTooltipText(AuthorInplaceContext context, int x, int y)
           
 java.lang.Object getValue()
           
 void requestFocus()
           
 void stopEditing()
           
 
Methods inherited from class ro.sync.ecss.extensions.api.editor.AbstractInplaceEditor
addEditingListener, fireCommitValue, fireEditingCanceled, fireEditingOccured, fireEditingStopped, fireNextEditLocationRequested, firePreviousEditLocationRequested, removeEditingListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleURLChooserEditor

public SimpleURLChooserEditor()
Constructor.

Method Detail

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ro.sync.ecss.extensions.api.Extension
See Also:
Extension.getDescription()

getRendererComponent

public java.lang.Object getRendererComponent(AuthorInplaceContext context)
Specified by:
getRendererComponent in interface ro.sync.ecss.extensions.api.editor.InplaceRenderer
See Also:
InplaceRenderer.getRendererComponent(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext)

getRenderingInfo

public RendererLayoutInfo getRenderingInfo(AuthorInplaceContext context)
Specified by:
getRenderingInfo in interface ro.sync.ecss.extensions.api.editor.InplaceRenderer
See Also:
InplaceRenderer.getRenderingInfo(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext)

getTooltipText

public java.lang.String getTooltipText(AuthorInplaceContext context,
                                       int x,
                                       int y)
Specified by:
getTooltipText in interface ro.sync.ecss.extensions.api.editor.InplaceRenderer
See Also:
InplaceRenderer.getTooltipText(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, int, int)

getEditorComponent

public java.lang.Object getEditorComponent(AuthorInplaceContext context,
                                           ro.sync.exml.view.graphics.Rectangle allocation,
                                           ro.sync.exml.view.graphics.Point mouseLocation)
Specified by:
getEditorComponent in interface ro.sync.ecss.extensions.api.editor.InplaceEditor
See Also:
InplaceEditor.getEditorComponent(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, ro.sync.exml.view.graphics.Rectangle, ro.sync.exml.view.graphics.Point)

getScrollRectangle

public ro.sync.exml.view.graphics.Rectangle getScrollRectangle()
Specified by:
getScrollRectangle in interface ro.sync.ecss.extensions.api.editor.InplaceEditor
See Also:
InplaceEditor.getScrollRectangle()

requestFocus

public void requestFocus()
Specified by:
requestFocus in interface ro.sync.ecss.extensions.api.editor.InplaceEditor
See Also:
InplaceEditor.requestFocus()

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface ro.sync.ecss.extensions.api.editor.InplaceEditor
See Also:
InplaceEditor.getValue()

stopEditing

public void stopEditing()
Specified by:
stopEditing in interface ro.sync.ecss.extensions.api.editor.InplaceEditor
See Also:
InplaceEditor.stopEditing()

cancelEditing

public void cancelEditing()
Specified by:
cancelEditing in interface ro.sync.ecss.extensions.api.editor.InplaceEditor
See Also:
InplaceEditor.cancelEditing()

createTextField

protected javax.swing.JTextField createTextField()
Creates the text field used to display the selected URL and installs the UNDO support on it.

Returns:
The text field used to display the selected URL.

getCursorType

public CursorType getCursorType(AuthorInplaceContext context,
                                int x,
                                int y)
Specified by:
getCursorType in interface ro.sync.ecss.extensions.api.editor.InplaceRenderer
See Also:
InplaceRenderer.getCursorType(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, int, int)

getCursorType

public CursorType getCursorType(int x,
                                int y)
Specified by:
getCursorType in interface ro.sync.ecss.extensions.api.editor.InplaceRenderer
See Also:
InplaceRenderer.getCursorType(int, int)

Oxygen XML Editor 15.0 Author API

© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.