com.ephox.editlive.view
Interface ViewManager


public interface ViewManager

Assists with locating views and determining how they are displayed on screen. Instance available via ELJBean.getViewManager().

Since:
7.5

Method Summary
 LiteralAttributeSet getLiteralAttributeSet(View view)
          Provides access to view attributes as raw strings.
 Shape getViewAllocationAt(int pos)
          Leaf View allocation at the given document position (combines getViewAt(int) and getViewAllocationFor(View)).
 Shape getViewAllocationFor(Element element)
          View allocation for the given element
 Shape getViewAllocationFor(View view)
          View allocation for the given view
 View getViewAt(int pos)
          Leaf View at the given document position
 View getViewAtPoint(Point p)
          Leaf view at the given point
 int getViewIndexInParent(View view)
          Determine a view's index in the parent view
 ViewInfo getViewInfo(Element element)
          View info for a given element
 

Method Detail

getViewAllocationAt

Shape getViewAllocationAt(int pos)
Leaf View allocation at the given document position (combines getViewAt(int) and getViewAllocationFor(View)).


getViewAt

View getViewAt(int pos)
Leaf View at the given document position


getViewAllocationFor

Shape getViewAllocationFor(View view)
View allocation for the given view


getViewAllocationFor

Shape getViewAllocationFor(Element element)
View allocation for the given element


getViewAtPoint

View getViewAtPoint(Point p)
Leaf view at the given point


getViewInfo

ViewInfo getViewInfo(Element element)
View info for a given element


getViewIndexInParent

int getViewIndexInParent(View view)
Determine a view's index in the parent view


getLiteralAttributeSet

LiteralAttributeSet getLiteralAttributeSet(View view)
Provides access to view attributes as raw strings. Details are in the LiteralAttributeSet documentation.

Parameters:
view - the view to obtain literal attibutes from
Throws:
RuntimeException - if the provided view is not an Ephox view
Since:
8.0
See Also:
LiteralAttributeSet

Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.